Commit 9d851ca9 by 陶光胜

门店品牌变更

parent 61533684
......@@ -151,15 +151,8 @@ public class StoreOpenApiServiceImpl implements StoreOpenApiService {
if (StringUtils.isBlank(storeOpenDTO.getStoreName())) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "门店名称不能为空");
}
if(storeOpenDTO.getStoreInfoId() == null){
if(storeOpenDTO.getRegionId() == null || StringUtils.isBlank(storeOpenDTO.getStoreCode())){
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "门店域或者门店code不能为空");
}
StoreDTO store = storeService.getStoreByRegionIdAndStoreCode(enterpriseId, storeOpenDTO.getRegionId(), storeOpenDTO.getStoreCode());
if (store == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "门店code或者域数据错误,无此门店");
}
storeOpenDTO.setStoreInfoId(store.getStoreInfoId());
if(storeOpenDTO.getRegionId() == null || StringUtils.isBlank(storeOpenDTO.getStoreCode())){
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "门店域或者门店code不能为空");
}
if (storeOpenDTO.getStoreBrandId() == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "店招品牌不能为空");
......
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