|
|
@ -143,8 +143,7 @@ public class ProvinceService implements IProvinceService { |
|
|
|
if(CollectionUtil.isNotEmpty(groupList)){ |
|
|
|
competeGroup = groupList.get(0); |
|
|
|
} |
|
|
|
// if(ObjectUtil.isNull(param.getGroupId())){ throw new BaseException(CodeEnum.MT_NOT_GROUP); }
|
|
|
|
|
|
|
|
// if(ObjectUtil.isNull(param.getGroupId())){ throw new BaseException(CodeEnum.MT_NOT_GROUP);
|
|
|
|
// //检查性别与组别是否匹配
|
|
|
|
// CompeteGroup competeGroup = competeGroupMapper.selectByPrimaryKey(param.getGroupId());
|
|
|
|
// if(ObjectUtil.isNull(competeGroup) || param.getGender() != competeGroup.getSex()){
|
|
|
@ -515,7 +514,9 @@ public class ProvinceService implements IProvinceService { |
|
|
|
CompeteProjectPlayerExample projectPlayerExample1 = new CompeteProjectPlayerExample(); |
|
|
|
projectPlayerExample1.createCriteria().andPlayerIdEqualTo(joinPlayer.getPlayerId()) |
|
|
|
.andProjectIdEqualTo(Constant.CERTIFICATE); |
|
|
|
throw new BaseException(CodeEnum.mtCertificateJoin("")); |
|
|
|
if(projectPlayerMapper.countByExample(projectPlayerExample1) != 0) { |
|
|
|
throw new BaseException(CodeEnum.mtCertificateJoin("")); |
|
|
|
} |
|
|
|
} |
|
|
|
projectPlayer.setRecStatus((byte) 2); |
|
|
|
projectPlayerMapper.updateByPrimaryKeySelective(projectPlayer); |
|
|
|