|
|
@ -1038,26 +1038,31 @@ public class CompeteService implements ICompeteService { |
|
|
|
if(competeJudgment.getChiefJudgment()!=(byte)0){ |
|
|
|
//不是主裁判
|
|
|
|
//先判断主裁判提交了没
|
|
|
|
Integer ti= new Integer(0);//0代表没提交 1代表提交了
|
|
|
|
CompeteVarietyScoreExample competeVarietyScoreExample=new CompeteVarietyScoreExample(); |
|
|
|
competeVarietyScoreExample.createCriteria().andSiteOrderIdEqualTo(param.getSiteOrderId()).andRecStatusEqualTo((byte) 0); |
|
|
|
List<CompeteVarietyScore> competeVarietyScoresList = competeVarietyScoreMapper.selectByExample(competeVarietyScoreExample); |
|
|
|
//下面就是想看看主裁判提交了没
|
|
|
|
if(competeVarietyScoresList.size()>0){ |
|
|
|
for (CompeteVarietyScore competeVarietyScore:competeVarietyScoresList){ |
|
|
|
CompeteJudgment competeJudgment1 = competeJudgmentMapper.selectByPrimaryKey(competeVarietyScore.getJudgmentId()); |
|
|
|
if(competeJudgment1.getChiefJudgment()==(byte)0){ |
|
|
|
ti=1; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(ti>0){ |
|
|
|
//主裁判提交了,
|
|
|
|
if(competeStartOrder1.getWaiver()!=(byte)0){ |
|
|
|
for(int j=0;j<param.getFractionsList().size();j++){ |
|
|
|
param.getFractionsList().get(j).setScore(new BigDecimal(0)); |
|
|
|
} |
|
|
|
// Integer ti= new Integer(0);//0代表没提交 1代表提交了
|
|
|
|
// CompeteVarietyScoreExample competeVarietyScoreExample=new CompeteVarietyScoreExample();
|
|
|
|
// competeVarietyScoreExample.createCriteria().andSiteOrderIdEqualTo(param.getSiteOrderId()).andRecStatusEqualTo((byte) 0);
|
|
|
|
// List<CompeteVarietyScore> competeVarietyScoresList = competeVarietyScoreMapper.selectByExample(competeVarietyScoreExample);
|
|
|
|
// //下面就是想看看主裁判提交了没
|
|
|
|
// if(competeVarietyScoresList.size()>0){
|
|
|
|
// for (CompeteVarietyScore competeVarietyScore:competeVarietyScoresList){
|
|
|
|
// CompeteJudgment competeJudgment1 = competeJudgmentMapper.selectByPrimaryKey(competeVarietyScore.getJudgmentId());
|
|
|
|
// if(competeJudgment1.getChiefJudgment()==(byte)0){
|
|
|
|
// ti=1;
|
|
|
|
// break;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// if(ti>0){
|
|
|
|
// //主裁判提交了,则看一下他里面是否选择了弃权
|
|
|
|
// if(competeStartOrder1.getWaiver()!=(byte)0){
|
|
|
|
// for(int j=0;j<param.getFractionsList().size();j++){
|
|
|
|
// param.getFractionsList().get(j).setScore(new BigDecimal(0));
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
if(competeStartOrder1.getWaiver()!=(byte)0){ |
|
|
|
for(int j=0;j<param.getFractionsList().size();j++){ |
|
|
|
param.getFractionsList().get(j).setScore(new BigDecimal(0)); |
|
|
|
} |
|
|
|
} |
|
|
|
}else { |
|
|
@ -1067,9 +1072,9 @@ public class CompeteService implements ICompeteService { |
|
|
|
CompeteVarietyScoreExample competeVarietyScoreExample=new CompeteVarietyScoreExample(); |
|
|
|
competeVarietyScoreExample.createCriteria().andRecStatusEqualTo((byte)0).andSiteOrderIdEqualTo(param.getSiteOrderId()); |
|
|
|
List<CompeteVarietyScore> competeVarietyScoresList = competeVarietyScoreMapper.selectByExample(competeVarietyScoreExample); |
|
|
|
for (CompeteVarietyScore competeVarietyScore : competeVarietyScoresList) { |
|
|
|
competeVarietyScore.setScore(new BigDecimal(0)); |
|
|
|
competeVarietyScoreMapper.updateByPrimaryKeySelective(competeVarietyScore); |
|
|
|
for (int i = 0; i < competeVarietyScoresList.size(); i++) { |
|
|
|
competeVarietyScoresList.get(i).setScore(new BigDecimal(0)); |
|
|
|
competeVarietyScoreMapper.updateByPrimaryKeySelective(competeVarietyScoresList.get(i)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|