|
@ -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("精网号重复"); |
|
|
} |
|
|
} |
|
|
//精网号不能为空 |
|
|
//精网号不能为空 |
|
|