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