generated from dxfeng/secondev-chapanda-feishu
优化面试评分逻辑
This commit is contained in:
parent
bb2cff29d4
commit
8e9e92d306
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue