From 8e9e92d306fa150e94a2de45b4672ab15b15acb4 Mon Sep 17 00:00:00 2001 From: dxfeng Date: Wed, 18 Dec 2024 10:48:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=9D=A2=E8=AF=95=E8=AF=84?= =?UTF-8?q?=E5=88=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modeexpand/internal/InterviewRatingModeExpand.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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);