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

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));