禅道bug修改
This commit is contained in:
parent
a4bb4895f1
commit
246b4bc390
|
|
@ -107,6 +107,15 @@ public class SubCompareServiceImpl implements SubCompareService{
|
||||||
bean.setEvaId(evaId);
|
bean.setEvaId(evaId);
|
||||||
String uuid = IdUtils.simpleUUID();
|
String uuid = IdUtils.simpleUUID();
|
||||||
bean.setUuid(uuid);
|
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);
|
int person = dao.updateComparesonInfo(bean);
|
||||||
//字表数据进行保存
|
//字表数据进行保存
|
||||||
//保存字表信息
|
//保存字表信息
|
||||||
|
|
|
||||||
|
|
@ -282,7 +282,7 @@ function isEvaluate(value,id , proName,benchmarkScore,subName,contractName,evaMo
|
||||||
if(value == upDown){
|
if(value == upDown){
|
||||||
add(id, proName, subName, contractName, evaMonth, evaYear);
|
add(id, proName, subName, contractName, evaMonth, evaYear);
|
||||||
}else {
|
}else {
|
||||||
layer.msg("非本年度数据,无法评价,请到相应年度对核心人员进行评价" ,{time:3000});
|
layer.msg("当前数据是本年"+ value +"度数据,无法评价" ,{time:3000});
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
layer.msg("非本年度数据,无法评价,请到相应年度对核心人员进行评价" ,{time:7000});
|
layer.msg("非本年度数据,无法评价,请到相应年度对核心人员进行评价" ,{time:7000});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue