|
@@ -47,44 +47,82 @@ public class EvaluationDeptRatingServiceImpl extends ServiceImpl<EvaluationDeptR
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
- int count = 0;
|
|
|
+ int countA = 0;
|
|
|
if (StringUtils.isNotEmpty(evaluationDeptRating.getJan()) && "A".equals(evaluationDeptRating.getJan())){
|
|
|
- count += 1;
|
|
|
+ countA += 1;
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(evaluationDeptRating.getFeb()) && "A".equals(evaluationDeptRating.getFeb())){
|
|
|
- count += 1;
|
|
|
+ countA += 1;
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(evaluationDeptRating.getMar()) && "A".equals(evaluationDeptRating.getMar())){
|
|
|
- count += 1;
|
|
|
+ countA += 1;
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(evaluationDeptRating.getApr()) && "A".equals(evaluationDeptRating.getApr())){
|
|
|
- count += 1;
|
|
|
+ countA += 1;
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(evaluationDeptRating.getMay()) && "A".equals(evaluationDeptRating.getMay())){
|
|
|
- count += 1;
|
|
|
+ countA += 1;
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(evaluationDeptRating.getJun()) && "A".equals(evaluationDeptRating.getJun())){
|
|
|
- count += 1;
|
|
|
+ countA += 1;
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(evaluationDeptRating.getJul()) && "A".equals(evaluationDeptRating.getJul())){
|
|
|
- count += 1;
|
|
|
+ countA += 1;
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(evaluationDeptRating.getAug()) && "A".equals(evaluationDeptRating.getAug())){
|
|
|
- count += 1;
|
|
|
+ countA += 1;
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(evaluationDeptRating.getSep()) && "A".equals(evaluationDeptRating.getSep())){
|
|
|
- count += 1;
|
|
|
+ countA += 1;
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(evaluationDeptRating.getOct()) && "A".equals(evaluationDeptRating.getOct())){
|
|
|
- count += 1;
|
|
|
+ countA += 1;
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(evaluationDeptRating.getNov()) && "A".equals(evaluationDeptRating.getNov())){
|
|
|
- count += 1;
|
|
|
+ countA += 1;
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(evaluationDeptRating.getDece()) && "A".equals(evaluationDeptRating.getDece())){
|
|
|
- count += 1;
|
|
|
+ countA += 1;
|
|
|
}
|
|
|
- evaluationDeptRating.setAcount(Convert.toStr(count));
|
|
|
+ evaluationDeptRating.setAcount(Convert.toStr(countA));
|
|
|
+ int countC = 0;
|
|
|
+ if (StringUtils.isNotEmpty(evaluationDeptRating.getJan()) && "C".equals(evaluationDeptRating.getJan())){
|
|
|
+ countC += 1;
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(evaluationDeptRating.getFeb()) && "C".equals(evaluationDeptRating.getFeb())){
|
|
|
+ countC += 1;
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(evaluationDeptRating.getMar()) && "C".equals(evaluationDeptRating.getMar())){
|
|
|
+ countC += 1;
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(evaluationDeptRating.getApr()) && "C".equals(evaluationDeptRating.getApr())){
|
|
|
+ countC += 1;
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(evaluationDeptRating.getMay()) && "C".equals(evaluationDeptRating.getMay())){
|
|
|
+ countC += 1;
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(evaluationDeptRating.getJun()) && "C".equals(evaluationDeptRating.getJun())){
|
|
|
+ countC += 1;
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(evaluationDeptRating.getJul()) && "C".equals(evaluationDeptRating.getJul())){
|
|
|
+ countC += 1;
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(evaluationDeptRating.getAug()) && "C".equals(evaluationDeptRating.getAug())){
|
|
|
+ countC += 1;
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(evaluationDeptRating.getSep()) && "C".equals(evaluationDeptRating.getSep())){
|
|
|
+ countC += 1;
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(evaluationDeptRating.getOct()) && "C".equals(evaluationDeptRating.getOct())){
|
|
|
+ countC += 1;
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(evaluationDeptRating.getNov()) && "C".equals(evaluationDeptRating.getNov())){
|
|
|
+ countC += 1;
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(evaluationDeptRating.getDece()) && "C".equals(evaluationDeptRating.getDece())){
|
|
|
+ countC += 1;
|
|
|
+ }
|
|
|
+ evaluationDeptRating.setCcount(Convert.toStr(countC));
|
|
|
return super.saveOrUpdate(evaluationDeptRating);
|
|
|
}
|
|
|
|