This commit is contained in:
xd 2024-06-11 20:23:21 +08:00
parent 7bf5215b90
commit e4f78a7f66
1 changed files with 5 additions and 0 deletions

View File

@ -237,6 +237,11 @@ public class CustomerController extends BaseController
@PostMapping("/commitSAPCustomer")
public AjaxResult commitSAPCustomer(@RequestBody Customer customer)
{
//校验客户名-税号 SAP是否存在
Boolean isExist = SapHanaUtils.isExist(customer.getCusName(),customer.getCusVatNo());
if(isExist){
return error("已存在该客户,请勿重复提交");
}
if(StringUtils.isNotEmpty(customer.getCusId())){// 数据组 提交业务员创建的客户数据提交SAP
customer.setUpdateBy(getUsername());