diff --git a/src/weaver/formmode/recruit/modeexpand/internal/InterviewRatingModeExpand.java b/src/weaver/formmode/recruit/modeexpand/internal/InterviewRatingModeExpand.java index 6068d12..ff77b98 100644 --- a/src/weaver/formmode/recruit/modeexpand/internal/InterviewRatingModeExpand.java +++ b/src/weaver/formmode/recruit/modeexpand/internal/InterviewRatingModeExpand.java @@ -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);