优化面试评分逻辑

This commit is contained in:
dxfeng 2024-12-18 10:48:49 +08:00
parent bb2cff29d4
commit 8e9e92d306
1 changed files with 5 additions and 3 deletions

View File

@ -47,11 +47,13 @@ public class InterviewRatingModeExpand extends AbstractModeExpandJavaCodeNew {
scopeList.add(zhpf);
}
}
int sum = 0;
if (scopeList.size() <= 2) {
return result;
sum = scopeList.stream().mapToInt(Integer::intValue).sum();
} else {
// scopeList去掉一个最高分一个最低分 求总分
sum = calculateSum(scopeList);
}
// scopeList去掉一个最高分一个最低分 求总分
int sum = calculateSum(scopeList);
if (sum > 0) {
// 更新内部应聘者台账的分数
rs.executeUpdate("update uf_jcl_nbzwsq set mspfhz = ? where id = ? ", sum, nbjp);