完善商品导入的提示,校验基本条码为空

This commit is contained in:
季圣华 2023-09-20 00:42:48 +08:00
parent cb5c667117
commit 0935ac5c25

View File

@ -664,7 +664,7 @@ public class MaterialService {
throw new BusinessRunTimeException(ExceptionConstants.MATERIAL_ENABLED_ERROR_CODE,
String.format(ExceptionConstants.MATERIAL_ENABLED_ERROR_MSG, i+1));
}
//校验基本条码长度为空
//基本条码为空
if(StringUtil.isEmpty(barCode)) {
throw new BusinessRunTimeException(ExceptionConstants.MATERIAL_BARCODE_EMPTY_CODE,
String.format(ExceptionConstants.MATERIAL_BARCODE_EMPTY_MSG, i+1));
@ -679,7 +679,7 @@ public class MaterialService {
throw new BusinessRunTimeException(ExceptionConstants.MATERIAL_BARCODE_LENGTH_ERROR_CODE,
String.format(ExceptionConstants.MATERIAL_BARCODE_LENGTH_ERROR_MSG, manyBarCode));
}
// 批量校验excel中有无重复商品是指名称规格型号颜色单位多属性
//批量校验excel中有无重复商品是指名称规格型号颜色单位多属性
batchCheckExistMaterialListByParam(mList, name, standard, model, color, unit, sku);
//批量校验excel中有无重复条码
batchCheckExistBarCodeByParam(mList, barCode, manyBarCode);