|
|
@ -149,14 +149,15 @@ public class PersonalCompScoreServiceImpl extends ServiceImpl<PersonalCompScoreM |
|
|
|
if (ObjectUtils.isEmpty(managementList)) return; |
|
|
|
if (ObjectUtils.isEmpty(managementList)) return; |
|
|
|
|
|
|
|
|
|
|
|
//modify 7.12 新需求
|
|
|
|
//modify 7.12 新需求
|
|
|
|
//3、计算积分 项目分值*项目级别权得百分比*获奖奖项权重百分比
|
|
|
|
//3、计算积分 项目分值*项目层次权得百分比*获奖奖项权重百分比
|
|
|
|
// log.info("***************年度比赛项目-{},项目分值:{},奖项权重值:{}", annualCompPoint.getObjName(), compweight_val, weightVal);
|
|
|
|
// log.info("***************年度比赛项目-{},项目分值:{},奖项权重值:{}", annualCompPoint.getObjName(), compweight_val, weightVal);
|
|
|
|
Projectlevel projectlevel = iProjectlevelService.getById(annualCompPoint.getObjLevel()); |
|
|
|
Projectlevel projectlevel = iProjectlevelService.getById(annualCompPoint.getObjLevel()); |
|
|
|
double scale_ratio = ComputeUtils.div2(new Double(projectlevel.getScale()), ONE_HUNDRED); |
|
|
|
double scale_ratio = ComputeUtils.div2(new Double(projectlevel.getScale()), ONE_HUNDRED); |
|
|
|
double baseScore = ComputeUtils.mul2(ComputeUtils.mul2(compweight_val, ComputeUtils.div2(new Double(weightVal), ONE_HUNDRED)),scale_ratio); |
|
|
|
double baseScore = ComputeUtils.mul2(ComputeUtils.mul2(compweight_val, ComputeUtils.div2(new Double(weightVal), ONE_HUNDRED)),scale_ratio); |
|
|
|
log.info("***************年度比赛项目-{},项目分值:{}", annualCompPoint.getObjName(), compweight_val); |
|
|
|
log.info("***************年度比赛项目-{},项目分值:{}", annualCompPoint.getObjName(), compweight_val); |
|
|
|
log.info("***************年度比赛项目-级别权重比值:{}", scale_ratio); |
|
|
|
log.info("***************年度比赛项目-层次权重比值:{}", scale_ratio); |
|
|
|
log.info("***************获奖奖项权重百分比:{}", weightVal); |
|
|
|
log.info("***************获奖奖项权重百分比:{}", weightVal); |
|
|
|
|
|
|
|
log.info("***************基础积分:{}", baseScore); |
|
|
|
AtomicReference<Double> score = new AtomicReference<>((double) 0); |
|
|
|
AtomicReference<Double> score = new AtomicReference<>((double) 0); |
|
|
|
if (StringUtils.equals("Y", entryForm)) { //团队赛
|
|
|
|
if (StringUtils.equals("Y", entryForm)) { //团队赛
|
|
|
|
Optional.ofNullable(managementList).orElse(new ArrayList<>()).forEach(e -> { |
|
|
|
Optional.ofNullable(managementList).orElse(new ArrayList<>()).forEach(e -> { |
|
|
|