Commit 77d42f04 by guojuxing

同步门店营业时间给一个默认值

parent 8245517b
......@@ -361,6 +361,9 @@ public class WmMallStoreController {
public RestResponse getHasConfigMemberCard(Integer wmMallStoreId) {
ServiceResponse<Long> result = weimobMerchantService.getMcuAreaId(wmMallStoreId);
if (result.isSuccess()) {
if (result.getResult() == null) {
return RestResponse.failure(ErrorCode.SYSTEM_ERROR.getCode(), "未配置会员卡,数据为空");
}
return RestResponse.success(result.getResult().toString());
}
return RestResponse.failure(result.getCode(), result.getMessage());
......
......@@ -721,7 +721,11 @@ public class WmStoreSyncController {
return e.getWeekdayShow() + businessHours;
}).forEach(businessTime::append);
}
weimobPhysicalStoreDTO.setBussinessHours(businessTime.toString());
if (StringUtils.isBlank(businessTime.toString())) {
weimobPhysicalStoreDTO.setBussinessHours("08:00-22:00");
} else {
weimobPhysicalStoreDTO.setBussinessHours(businessTime.toString());
}
WeimobStoreAccountDTO accountDTO = new WeimobStoreAccountDTO();
ClerkDTO headClerk = getHeadClerk(storeDTO.getEnterpriseId(), storeDTO.getStoreId());
......@@ -807,7 +811,11 @@ public class WmStoreSyncController {
return e.getWeekdayShow() + businessHours;
}).forEach(businessTime::append);
}
weimobPhysicalStoreDTO.setBussinessHours(businessTime.toString());
if (StringUtils.isBlank(businessTime.toString())) {
weimobPhysicalStoreDTO.setBussinessHours("08:00-22:00");
} else {
weimobPhysicalStoreDTO.setBussinessHours(businessTime.toString());
}
WeimobStoreAccountDTO accountDTO = new WeimobStoreAccountDTO();
ClerkDTO headClerk = getHeadClerk(storeDTO.getEnterpriseId(), storeDTO.getStoreId());
......
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