From 024568c5d6035ef59adf9a43e80939ef772bd921 Mon Sep 17 00:00:00 2001 From: lenghui Date: Fri, 20 Dec 2024 17:31:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lh/service/CrowdfundingServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/lh/service/CrowdfundingServiceImpl.java b/src/main/java/com/lh/service/CrowdfundingServiceImpl.java index b4638dd..f1f0977 100644 --- a/src/main/java/com/lh/service/CrowdfundingServiceImpl.java +++ b/src/main/java/com/lh/service/CrowdfundingServiceImpl.java @@ -49,7 +49,7 @@ public class CrowdfundingServiceImpl implements CrowdfundingService { @Transactional(rollbackFor = Exception.class) public void addCrowdUser(Participant participant) throws MyException { //精网号重复 - if (crowdfundingMapper.queryCrowdUser(new Participant(null,participant.getJwcode(),null,null)) != null) { + if (!crowdfundingMapper.queryCrowdUser(participant).isEmpty()) { throw new MyException("精网号重复"); } //精网号不能为空