|
|
@ -34,17 +34,20 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService { |
|
|
|
//计算最大最小值
|
|
|
|
Map<String, BigDecimal> minAndMaxList = factIndexPartyAblityCpcMonthlyDao.getExtremeValue(formDTO.getCustomerId()); |
|
|
|
if (CollectionUtils.isEmpty(minAndMaxList)){ |
|
|
|
log.warn("customerId:{} have not any fact record",formDTO.getCustomerId()); |
|
|
|
log.warn("cpcIndexCalculate customerId:{} have not any fact record",formDTO.getCustomerId()); |
|
|
|
return false; |
|
|
|
} |
|
|
|
//获取指标权重信息
|
|
|
|
List<IndexGroupDetailEntity> indexDetails = getDetailListByParentCode.getDetailListByParentCode(formDTO.getCustomerId(), IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode(),IndexCodeEnum.CAN_YU_YI_SHI.getCode()); |
|
|
|
if (CollectionUtils.isEmpty(indexDetails)){ |
|
|
|
log.warn("customerId:{} have not any indexGroupDetail",formDTO.getCustomerId()); |
|
|
|
log.warn("cpcIndexCalculate customerId:{} have not any indexGroupDetail",formDTO.getCustomerId()); |
|
|
|
return false; |
|
|
|
} |
|
|
|
Map<String, String> indexCodeFieldReList = indexCodeFieldReService.getIndexCodeFieldReMap(); |
|
|
|
if (CollectionUtils.isEmpty(indexCodeFieldReList)) |
|
|
|
if (CollectionUtils.isEmpty(indexCodeFieldReList)){ |
|
|
|
log.warn("cpcIndexCalculate have any indexcodefieldre"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
indexDetails.forEach(indexDetail->{ |
|
|
|
|
|
|
|
}); |
|
|
|