|
|
@@ -17,6 +17,7 @@ import com.sckw.core.utils.BeanUtils;
|
|
|
import com.sckw.core.utils.CollectionUtils;
|
|
|
import com.sckw.core.utils.NumberUtils;
|
|
|
import com.sckw.core.utils.StringUtils;
|
|
|
+import com.sckw.core.web.constant.HttpStatus;
|
|
|
import com.sckw.core.web.context.LoginUserHolder;
|
|
|
import com.sckw.excel.utils.DateUtil;
|
|
|
import com.sckw.payment.api.dubbo.PayCenterDubboService;
|
|
|
@@ -355,7 +356,7 @@ public class KwpGoodsService {
|
|
|
*/
|
|
|
private String judgeParameters(UpdateGoodsParam param) {
|
|
|
if (StringUtils.isBlank(param.getName())) {
|
|
|
- return "商品名称不能为空!";
|
|
|
+ return "商品名称不能为空!";
|
|
|
}
|
|
|
if (StringUtils.isBlank(param.getGoodsType())) {
|
|
|
return "商品类型不能为空!";
|
|
|
@@ -663,7 +664,7 @@ public class KwpGoodsService {
|
|
|
updateParam.setAddressInfo(BeanUtils.copyProperties(kwpGoodsAddressService.getByGoodsId(id), AddressInfo.class));
|
|
|
String msg = judgeParameters(updateParam);
|
|
|
if (StringUtils.isNotBlank(msg)) {
|
|
|
- throw new CustomPromptException(msg);
|
|
|
+ throw new CustomPromptException(HttpStatus.GOODS_PUT_ON_SHELVES_FAIL_CODE, msg);
|
|
|
}
|
|
|
}
|
|
|
LambdaUpdateWrapper<KwpGoods> updateWrapper = new LambdaUpdateWrapper<>();
|