Browse Source

客户导入,删除校验调整

v1.0
15989082884@163.com 2 years ago
parent
commit
a375936d75
  1. 9
      src/main/java/com/qs/serve/modules/bms/controller/BmsSupplierController.java

9
src/main/java/com/qs/serve/modules/bms/controller/BmsSupplierController.java

@ -850,6 +850,9 @@ public class BmsSupplierController {
if(!StringUtils.hasText(a.getCustomerCode())){
a.setErrorInfo(a.getErrorInfo()+"客户编号不能为空;");
}
if(a.getType().equals("3")){
return;
}
if(!StringUtils.hasText(a.getCustomerName())){
a.setErrorInfo(a.getErrorInfo()+"客户名称不能为空;");
}
@ -868,9 +871,9 @@ public class BmsSupplierController {
if(a.getIsSupplier()==null){
a.setErrorInfo(a.getErrorInfo()+"是否供应商字段不能为空;");
}
if(!StringUtils.hasText(a.getMinorHeadCodes()) && !StringUtils.hasText(a.getMainHeadCode())){
a.setErrorInfo(a.getErrorInfo()+"负责人不能为空;");
}
// if(!StringUtils.hasText(a.getMinorHeadCodes()) && !StringUtils.hasText(a.getMainHeadCode())){
// a.setErrorInfo(a.getErrorInfo()+"负责人不能为空;");
// }
if(a.getIsExpendableExpense()==null){
a.setErrorInfo(a.getErrorInfo()+"是否投放费用字段不能为空;");
}

Loading…
Cancel
Save