From e4f78a7f662aae3ed9dadf4d34147c89e0edd8ca Mon Sep 17 00:00:00 2001 From: xd Date: Tue, 11 Jun 2024 20:23:21 +0800 Subject: [PATCH] 123 --- .../ruoyi/web/controller/customer/CustomerController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/customer/CustomerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/customer/CustomerController.java index 2313eb6..f371e4f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/customer/CustomerController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/customer/CustomerController.java @@ -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());