|
|
@ -885,6 +885,21 @@ public class BmsSupplierController { |
|
|
|
if(!StringUtils.hasText(a.getSalesRegionName())){ |
|
|
|
a.setErrorInfo(a.getErrorInfo()+"销售区域不能为空;"); |
|
|
|
} |
|
|
|
if(a.getSupplierInfoFlag()==null){ |
|
|
|
a.setErrorInfo(a.getErrorInfo()+"供应商信息是否必填不能空;"); |
|
|
|
} |
|
|
|
if(a.getSupplierInfoFlag()!=null&&a.getSupplierInfoFlag().equals(1)){ |
|
|
|
if(!StringUtils.hasText(a.getSupplierTaxNumber())){ |
|
|
|
a.setErrorInfo(a.getErrorInfo()+"税号不能为空;"); |
|
|
|
} |
|
|
|
if(!StringUtils.hasText(a.getSupplierUser())){ |
|
|
|
a.setErrorInfo(a.getErrorInfo()+"供应商联系人不能为空;"); |
|
|
|
} |
|
|
|
if(!StringUtils.hasText(a.getSupplierLicenseImg())){ |
|
|
|
a.setErrorInfo(a.getErrorInfo()+"营业执照地址不能为空;"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(!StringUtils.hasText(a.getFirstLevelAdministrativeRegionName())){ |
|
|
|
a.setErrorInfo(a.getErrorInfo()+"省不能为空;"); |
|
|
|
} |
|
|
|