| 
						
						
						
					 | 
					@ -1,13 +1,13 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					package com.epmet.service.screen.impl; | 
					 | 
					 | 
					package com.epmet.service.indexcal.impl; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.alibaba.fastjson.JSON; | 
					 | 
					 | 
					import com.alibaba.fastjson.JSON; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dao.indexcoll.FactIndexPartyAblityCpcMonthlyDao; | 
					 | 
					 | 
					import com.epmet.dao.indexcoll.FactIndexPartyAblityCpcMonthlyDao; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dao.screen.IndexCodeFieldReDao; | 
					 | 
					 | 
					import com.epmet.dao.screen.IndexCodeFieldReDao; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dao.screen.IndexGroupDetailDao; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.indexcal.CalculateCommonFormDTO; | 
					 | 
					 | 
					import com.epmet.dto.indexcal.CalculateCommonFormDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.entity.screen.IndexGroupDetailEntity; | 
					 | 
					 | 
					import com.epmet.entity.screen.IndexGroupDetailEntity; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.eum.IndexCodeEnum; | 
					 | 
					 | 
					import com.epmet.eum.IndexCodeEnum; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					import com.epmet.service.screen.CpcIndexCalculateService; | 
					 | 
					 | 
					import com.epmet.service.indexcal.CpcIndexCalculateService; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.epmet.service.screen.IndexGroupDetailService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import lombok.extern.slf4j.Slf4j; | 
					 | 
					 | 
					import lombok.extern.slf4j.Slf4j; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.stereotype.Service; | 
					 | 
					 | 
					import org.springframework.stereotype.Service; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -25,7 +25,7 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Autowired | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private IndexCodeFieldReDao indexCodeFieldReDao; | 
					 | 
					 | 
					    private IndexCodeFieldReDao indexCodeFieldReDao; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Autowired | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    private IndexGroupDetailDao indexGroupDetailDao; | 
					 | 
					 | 
					    private IndexGroupDetailService getDetailListByParentCode; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    @Override | 
					 | 
					 | 
					    @Override | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public Boolean cpcIndexCalculate(CalculateCommonFormDTO formDTO) { | 
					 | 
					 | 
					    public Boolean cpcIndexCalculate(CalculateCommonFormDTO formDTO) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //计算最大最小值
 | 
					 | 
					 | 
					        //计算最大最小值
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -35,12 +35,13 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            return false; | 
					 | 
					 | 
					            return false; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //获取指标权重信息
 | 
					 | 
					 | 
					        //获取指标权重信息
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        List<IndexGroupDetailEntity> indexDetails = indexGroupDetailDao.getDetailListByParentCode(formDTO.getCustomerId(), IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode()); | 
					 | 
					 | 
					        List<IndexGroupDetailEntity> indexDetails = getDetailListByParentCode.getDetailListByParentCode(formDTO.getCustomerId(), IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode(),IndexCodeEnum.CAN_YU_YI_SHI.getCode()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        if (CollectionUtils.isEmpty(indexDetails)){ | 
					 | 
					 | 
					        if (CollectionUtils.isEmpty(indexDetails)){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            log.warn("customerId:{} have not any indexGroupDetail",formDTO.getCustomerId()); | 
					 | 
					 | 
					            log.warn("customerId:{} have not any indexGroupDetail",formDTO.getCustomerId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            return false; | 
					 | 
					 | 
					            return false; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        log.info(JSON.toJSONString(minAndMaxList)); | 
					 | 
					 | 
					        log.info(JSON.toJSONString(minAndMaxList)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Map<String, BigDecimal> list = factIndexPartyAblityCpcMonthlyDao.getCountByMonthId(formDTO.getCustomerId(), formDTO.getMonthId()); | 
					 | 
					 | 
					        Map<String, BigDecimal> list = factIndexPartyAblityCpcMonthlyDao.getCountByMonthId(formDTO.getCustomerId(), formDTO.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        return null; | 
					 | 
					 | 
					        return null; |