From 613a4e1f212cea66bdb7b6d1f96ce1a2d6845988 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Fri, 22 Mar 2024 18:10:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basicdata/service/impl/BasicdataClientServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java index 7a7148d77..ce8255162 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java @@ -45,6 +45,7 @@ import org.springframework.transaction.annotation.Transactional; import java.security.NoSuchAlgorithmException; import java.util.*; +import java.util.stream.Collectors; /** * 基础客户表 服务实现类 @@ -326,6 +327,9 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl basicdataClientEntities = basicdataClients.stream().filter(ii -> ii.getClientCode().equals(basicdataClient.getClientCode()) + || ii.getClientName().equals(basicdataClient.getClientName())).collect(Collectors.toList()); + log.info("###############basicdataClientEntities重复客户:{}",basicdataClientEntities); throw new ServiceException("客户编码或客户名称已存在"); } // Optional first = dictBizs.stream().filter(ii -> ii.getDictValue().equals(i.getTypeService())).findFirst(); @@ -355,6 +359,7 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl