Commit 89a3cef5 by zhiwj

门店新增修改

parent 1c6dc1e5
......@@ -83,7 +83,7 @@ public class StoreOpenApiServiceImpl implements StoreOpenApiService {
return ServiceResponse.success();
}
private Map<String, String> getApiFieldMap(Integer enterpriseId, Integer regionId) {
public Map<String, String> getApiFieldMap(Integer enterpriseId, Integer regionId) {
ServiceResponse<List<ApiFieldDTO>> result = apiFieldApiService.listApiField(2, enterpriseId, Long.parseLong(regionId.toString()));
if (result.isSuccess()) {
List<ApiFieldDTO> list = result.getResult();
......@@ -235,6 +235,7 @@ public class StoreOpenApiServiceImpl implements StoreOpenApiService {
List<StoreBusinessTimeDTO> businessTimeResultList = new ArrayList<>();
for (BusinessTimeOpenDTO businessTimeOpenDTO : businessTimeList) {
StoreBusinessTimeDTO businessTimeDTO = new StoreBusinessTimeDTO();
businessTimeDTO.setWeekday(businessTimeOpenDTO.getWeekday());
businessTimeDTO.setOpenTime(DateUtil.strToDate(businessTimeOpenDTO.getOpenTime(), DateUtil.FORMAT_MINUTE_TIME));
businessTimeDTO.setCloseTime(DateUtil.strToDate(businessTimeOpenDTO.getCloseTime(), DateUtil.FORMAT_MINUTE_TIME));
businessTimeResultList.add(businessTimeDTO);
......@@ -252,6 +253,7 @@ public class StoreOpenApiServiceImpl implements StoreOpenApiService {
for (String imageUrl : photoList) {
StorePhotoDTO storePhotoDTO = new StorePhotoDTO();
storePhotoDTO.setImageUrl(imageUrl);
photoResultList.add(storePhotoDTO);
}
storeDTO.setPhotoList(photoResultList);
}
......@@ -304,6 +306,7 @@ public class StoreOpenApiServiceImpl implements StoreOpenApiService {
storeDTO.setReason(StoreLogReasonEnum.EXTERNAL.getCode());
storeDTO.setCreateType(CreateTypeEnum.API.getCode());
// 保存门店
// return null;
ServiceResponse<Integer> serviceResponse = storeApiService.saveOrUpdate(storeDTO);
if (!serviceResponse.isSuccess()) {
return EnterpriseServiceResponse.failure(serviceResponse.getCode(), serviceResponse.getMessage());
......
......@@ -49,7 +49,7 @@ public class FieldBase {
}
public String validate(String value){
if (getIsMust() && (StringUtils.isNotBlank(value))) {
if (getIsMust() && (StringUtils.isBlank(value))) {
return "不能为空";
}else {
return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment