| 
						
						
							
								
							
						
						
					 | 
					@ -50,7 +50,7 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Autowired | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private FactIndexPartyAblityCpcMonthlyDao factIndexPartyAblityCpcMonthlyDao; | 
					 | 
					 | 
					    private FactIndexPartyAblityCpcMonthlyDao factIndexPartyAblityCpcMonthlyDao; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Autowired | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    private IndexGroupDetailService getDetailListByParentCode; | 
					 | 
					 | 
					    private IndexGroupDetailService indexGroupDetailService; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    @Autowired | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private IndexCodeFieldReService indexCodeFieldReService; | 
					 | 
					 | 
					    private IndexCodeFieldReService indexCodeFieldReService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Autowired | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -72,7 +72,7 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     */ | 
					 | 
					 | 
					     */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private void calculateTotalScore(CalculateCommonFormDTO formDTO) { | 
					 | 
					 | 
					    private void calculateTotalScore(CalculateCommonFormDTO formDTO) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //获取指标权重
 | 
					 | 
					 | 
					        //获取指标权重
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        List<IndexGroupDetailEntity> parentIndexDetails = getDetailListByParentCode.getDetailListByParentCode(formDTO.getCustomerId(), IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode()); | 
					 | 
					 | 
					        List<IndexGroupDetailEntity> parentIndexDetails = indexGroupDetailService.getDetailListByParentCode(formDTO.getCustomerId(), IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        if (CollectionUtils.isEmpty(parentIndexDetails)) { | 
					 | 
					 | 
					        if (CollectionUtils.isEmpty(parentIndexDetails)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            log.warn("cpcIndexCalculate customerId:{} have not any indexGroupDetail", formDTO.getCustomerId()); | 
					 | 
					 | 
					            log.warn("cpcIndexCalculate customerId:{} have not any indexGroupDetail", formDTO.getCustomerId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            throw new RenException("客户【党员相关】指标权重信息不存在"); | 
					 | 
					 | 
					            throw new RenException("客户【党员相关】指标权重信息不存在"); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -113,6 +113,7 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            totalEntity.setIndexCode(IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode()); | 
					 | 
					 | 
					                            totalEntity.setIndexCode(IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            totalEntity.setScore(new BigDecimal(NumConstant.ZERO)); | 
					 | 
					 | 
					                            totalEntity.setScore(new BigDecimal(NumConstant.ZERO)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            totalEntity.setAllParentIndexCode(NumConstant.ZERO_STR); | 
					 | 
					 | 
					                            totalEntity.setAllParentIndexCode(NumConstant.ZERO_STR); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                            totalEntity.setWeight(new BigDecimal(NumConstant.ONE_NEG)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            if (preLastCpcScoreTotalMap.containsKey(part.getUserId())) { | 
					 | 
					 | 
					                            if (preLastCpcScoreTotalMap.containsKey(part.getUserId())) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                                preLastCpcScoreTotalMap.put(part.getUserId(), part); | 
					 | 
					 | 
					                                preLastCpcScoreTotalMap.put(part.getUserId(), part); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -265,6 +266,9 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                cpcScoreEntity.setScore(new BigDecimal(NumConstant.ZERO)); | 
					 | 
					 | 
					                cpcScoreEntity.setScore(new BigDecimal(NumConstant.ZERO)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                cpcScoreEntity.setIndexCode(parentIndexCode); | 
					 | 
					 | 
					                cpcScoreEntity.setIndexCode(parentIndexCode); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                cpcScoreEntity.setAllParentIndexCode(value.getAllParentIndexCode()); | 
					 | 
					 | 
					                cpcScoreEntity.setAllParentIndexCode(value.getAllParentIndexCode()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                String vallPath = value.getAllParentIndexCode().concat(StrConstant.COLON).concat(parentIndexCode); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                BigDecimal weight = indexGroupDetailService.getWeightByAllPathIndexCode(formDTO.getCustomerId(), vallPath); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                cpcScoreEntity.setWeight(weight); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                scoreEntityMap.put(userId, cpcScoreEntity); | 
					 | 
					 | 
					                scoreEntityMap.put(userId, cpcScoreEntity); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                //构造样本值对象
 | 
					 | 
					 | 
					                //构造样本值对象
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -311,6 +315,7 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                child.setIndexCode(o.getIndexCode()); | 
					 | 
					 | 
					                child.setIndexCode(o.getIndexCode()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                child.setAllParentIndexCode(o.getAllParentIndexCode()); | 
					 | 
					 | 
					                child.setAllParentIndexCode(o.getAllParentIndexCode()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                child.setScore(o.getScore()); | 
					 | 
					 | 
					                child.setScore(o.getScore()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                child.setWeight(o.getWeight()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                subList.add(child); | 
					 | 
					 | 
					                subList.add(child); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            }); | 
					 | 
					 | 
					            }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -403,17 +408,17 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     */ | 
					 | 
					 | 
					     */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private Map<String, List<IndexGroupDetailEntity>> getIndexDetailMap(CalculateCommonFormDTO formDTO) { | 
					 | 
					 | 
					    private Map<String, List<IndexGroupDetailEntity>> getIndexDetailMap(CalculateCommonFormDTO formDTO) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //获取指标权重信息 -参与议事
 | 
					 | 
					 | 
					        //获取指标权重信息 -参与议事
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        List<IndexGroupDetailEntity> canyuyishiIndexDetails = getDetailListByParentCode.getDetailListByParentCode(formDTO.getCustomerId(), IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode(), IndexCodeEnum.CAN_YU_YI_SHI.getCode()); | 
					 | 
					 | 
					        List<IndexGroupDetailEntity> canyuyishiIndexDetails = indexGroupDetailService.getDetailListByParentCode(formDTO.getCustomerId(), IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode(), IndexCodeEnum.CAN_YU_YI_SHI.getCode()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        if (CollectionUtils.isEmpty(canyuyishiIndexDetails)) { | 
					 | 
					 | 
					        if (CollectionUtils.isEmpty(canyuyishiIndexDetails)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            log.error("cpcIndexCalculate customerId:{} have not any indexGroupDetail", formDTO.getCustomerId()); | 
					 | 
					 | 
					            log.error("cpcIndexCalculate customerId:{} have not any indexGroupDetail", formDTO.getCustomerId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            return null; | 
					 | 
					 | 
					            return null; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        List<IndexGroupDetailEntity> dangwuhongdongIndexDetails = getDetailListByParentCode.getDetailListByParentCode(formDTO.getCustomerId(), IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode(), IndexCodeEnum.DANG_WU_HUO_DONG.getCode()); | 
					 | 
					 | 
					        List<IndexGroupDetailEntity> dangwuhongdongIndexDetails = indexGroupDetailService.getDetailListByParentCode(formDTO.getCustomerId(), IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode(), IndexCodeEnum.DANG_WU_HUO_DONG.getCode()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        if (CollectionUtils.isEmpty(canyuyishiIndexDetails)) { | 
					 | 
					 | 
					        if (CollectionUtils.isEmpty(canyuyishiIndexDetails)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            log.error("cpcIndexCalculate customerId:{} have not any indexGroupDetail", formDTO.getCustomerId()); | 
					 | 
					 | 
					            log.error("cpcIndexCalculate customerId:{} have not any indexGroupDetail", formDTO.getCustomerId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            return null; | 
					 | 
					 | 
					            return null; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        List<IndexGroupDetailEntity> lianxiqunzhongIndexDetails = getDetailListByParentCode.getDetailListByParentCode(formDTO.getCustomerId(), IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode(), IndexCodeEnum.LIAN_XI_QUN_ZHONG.getCode()); | 
					 | 
					 | 
					        List<IndexGroupDetailEntity> lianxiqunzhongIndexDetails = indexGroupDetailService.getDetailListByParentCode(formDTO.getCustomerId(), IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode(), IndexCodeEnum.LIAN_XI_QUN_ZHONG.getCode()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        if (CollectionUtils.isEmpty(canyuyishiIndexDetails)) { | 
					 | 
					 | 
					        if (CollectionUtils.isEmpty(canyuyishiIndexDetails)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            log.error("cpcIndexCalculate customerId:{} have not any indexGroupDetail", formDTO.getCustomerId()); | 
					 | 
					 | 
					            log.error("cpcIndexCalculate customerId:{} have not any indexGroupDetail", formDTO.getCustomerId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            return null; | 
					 | 
					 | 
					            return null; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |