diff --git a/src/main/java/com/qs/serve/modules/bms/controller/BmsSupplierController.java b/src/main/java/com/qs/serve/modules/bms/controller/BmsSupplierController.java index 27c16a9d..be090b40 100644 --- a/src/main/java/com/qs/serve/modules/bms/controller/BmsSupplierController.java +++ b/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()+"是否投放费用字段不能为空;"); }