禅道bug修改

This commit is contained in:
lSun 2024-12-09 14:23:03 +08:00
parent a4bb4895f1
commit 246b4bc390
2 changed files with 10 additions and 1 deletions

View File

@ -107,6 +107,15 @@ public class SubCompareServiceImpl implements SubCompareService{
bean.setEvaId(evaId);
String uuid = IdUtils.simpleUUID();
bean.setUuid(uuid);
int avgScore =0;
if(StringUtils.isNotEmpty(bean.getPersonNameList())){
for (int i = 0; i < bean.getPersonNameList().size(); i++) {
for (int j = 0; j < bean.getPersonNameList().get(i).getPersonScoreList().size(); j++){
avgScore = avgScore + Integer.parseInt (bean.getPersonNameList().get(i).getPersonScoreList().get(j).getEvaScore()) ;
}
}
}
bean.setAvgScore(avgScore+".00");
int person = dao.updateComparesonInfo(bean);
//字表数据进行保存
//保存字表信息

View File

@ -282,7 +282,7 @@ function isEvaluate(value,id , proName,benchmarkScore,subName,contractName,evaMo
if(value == upDown){
add(id, proName, subName, contractName, evaMonth, evaYear);
}else {
layer.msg("非本年度数据,无法评价,请到相应年度对核心人员进行评价" ,{time:3000});
layer.msg("当前数据是本年"+ value +"度数据,无法评价" ,{time:3000});
}
}else {
layer.msg("非本年度数据,无法评价,请到相应年度对核心人员进行评价" ,{time:7000});