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