|
|
@ -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()+"是否投放费用字段不能为空;"); |
|
|
|
} |
|
|
|