Commit 41da726f authored by wangxl's avatar wangxl

1

parent ecfe5163
......@@ -172,7 +172,7 @@ public class ComTalentAssignServiceImpl extends BaseServiceImpl<ComTalentAssignD
BigDecimal totalScore = comEvaluationValueService.insertListByAssignId(dto.getScoreList(), dto.getId());
entity.setTotalScore(totalScore);
this.update(entity);
if (Objects.nonNull(dto.getAuditState())){
if (Objects.nonNull(dto.getAuditState())) {
this.updateAssignState(entity.getTalentId());
}
return entity.getId();
......@@ -223,8 +223,10 @@ public class ComTalentAssignServiceImpl extends BaseServiceImpl<ComTalentAssignD
}
totalScore = totalScore.add(obj.getTotalScore());
}
BigDecimal personCountBD = BigDecimal.valueOf(personCount);
averageScore = totalScore.divide(personCountBD, 2, RoundingMode.HALF_UP);
if (personCount != 0) {
BigDecimal personCountBD = BigDecimal.valueOf(personCount);
averageScore = totalScore.divide(personCountBD, 2, RoundingMode.HALF_UP);
}
if (list.size() > personCount)
completed = 0;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment