Browse Source

修bug

lh_java
lenghui 5 months ago
parent
commit
024568c5d6
  1. 2
      src/main/java/com/lh/service/CrowdfundingServiceImpl.java

2
src/main/java/com/lh/service/CrowdfundingServiceImpl.java

@ -49,7 +49,7 @@ public class CrowdfundingServiceImpl implements CrowdfundingService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void addCrowdUser(Participant participant) throws MyException { 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("精网号重复"); throw new MyException("精网号重复");
} }
//精网号不能为空 //精网号不能为空

Loading…
Cancel
Save