|
@ -116,7 +116,6 @@ public class DeptScoreServiceImpl extends BaseServiceImpl<DeptScoreDao, DeptScor |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void calculateSelfSubScore(CalculateCommonFormDTO formDTO) { |
|
|
private void calculateSelfSubScore(CalculateCommonFormDTO formDTO) { |
|
|
//todo 指标添加缓存
|
|
|
|
|
|
List<IndexGroupDetailEntity> indexList = indexGroupDetailService.getDetailListByParentCode(formDTO.getCustomerId(), |
|
|
List<IndexGroupDetailEntity> indexList = indexGroupDetailService.getDetailListByParentCode(formDTO.getCustomerId(), |
|
|
IndexCodeEnum.QU_ZHI_BU_MEN.getCode()); |
|
|
IndexCodeEnum.QU_ZHI_BU_MEN.getCode()); |
|
|
if (CollectionUtils.isEmpty(indexList)) { |
|
|
if (CollectionUtils.isEmpty(indexList)) { |
|
@ -143,7 +142,7 @@ public class DeptScoreServiceImpl extends BaseServiceImpl<DeptScoreDao, DeptScor |
|
|
Map<String, BigDecimal> weightMap = new HashMap<>(); |
|
|
Map<String, BigDecimal> weightMap = new HashMap<>(); |
|
|
selfSubIndexList.forEach(o -> { |
|
|
selfSubIndexList.forEach(o -> { |
|
|
//找出自身 和下级的指标
|
|
|
//找出自身 和下级的指标
|
|
|
if (o.getAllIndexCodePath().indexOf(ProjectConstant.XIA_JI) > -1) { |
|
|
if (o.getAllIndexCodePath().contains(ProjectConstant.XIA_JI)) { |
|
|
selfSubParentMap.get(ProjectConstant.XIA_JI).add(o.getIndexCode()); |
|
|
selfSubParentMap.get(ProjectConstant.XIA_JI).add(o.getIndexCode()); |
|
|
weightMap.put(ProjectConstant.XIA_JI, weightMap.getOrDefault(ProjectConstant.XIA_JI, new BigDecimal(0)).add(o.getWeight())); |
|
|
weightMap.put(ProjectConstant.XIA_JI, weightMap.getOrDefault(ProjectConstant.XIA_JI, new BigDecimal(0)).add(o.getWeight())); |
|
|
} else { |
|
|
} else { |
|
|