From 590e6a152837bdc1074782339e16bc6d8d776859 Mon Sep 17 00:00:00 2001 From: zhc077 <565291854> Date: Wed, 1 Nov 2023 11:37:35 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=B8=AA=E4=BA=BA=E5=B9=B4=E5=BA=A6?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/PersonalCompScoreServiceImpl.java | 32 +++++++++++++++---- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualScore/service/impl/PersonalCompScoreServiceImpl.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualScore/service/impl/PersonalCompScoreServiceImpl.java index 74c443e2..8bab7b9f 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualScore/service/impl/PersonalCompScoreServiceImpl.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualScore/service/impl/PersonalCompScoreServiceImpl.java @@ -57,6 +57,11 @@ public class PersonalCompScoreServiceImpl extends ServiceImpl score = new AtomicReference<>((double) 0); if (StringUtils.equals("Y", entryForm)) { //团队赛 Optional.ofNullable(managementList).orElse(new ArrayList<>()).forEach(e -> { // 参与形式是团队时,队长积分*0.5,职员积分*0.2 //captain 是否队长,自关联表如果是队长则是为0.如果不是存储队长学号 if (StringUtils.equals("0", e.getCaptain())) { - score.set(mul(baseScore, new Double(0.5))); + score.set(mul(baseScore, ZERO_POINT_FIVE)); } else { - score.set(mul(baseScore, new Double(0.2))); + score.set(mul(baseScore, ZERO_POINT_TWO)); } PersonalCompScore bean = new PersonalCompScore(); @@ -161,9 +167,9 @@ public class PersonalCompScoreServiceImpl extends ServiceImpl