|
|
@ -7,6 +7,7 @@ import com.epmet.dto.indexcal.CalculateCommonFormDTO; |
|
|
|
import com.epmet.entity.screen.IndexGroupDetailEntity; |
|
|
|
import com.epmet.eum.IndexCodeEnum; |
|
|
|
import com.epmet.service.indexcal.CpcIndexCalculateService; |
|
|
|
import com.epmet.service.indexcal.IndexCodeFieldReService; |
|
|
|
import com.epmet.service.screen.IndexGroupDetailService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -26,6 +27,8 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService { |
|
|
|
private IndexCodeFieldReDao indexCodeFieldReDao; |
|
|
|
@Autowired |
|
|
|
private IndexGroupDetailService getDetailListByParentCode; |
|
|
|
@Autowired |
|
|
|
private IndexCodeFieldReService indexCodeFieldReService; |
|
|
|
@Override |
|
|
|
public Boolean cpcIndexCalculate(CalculateCommonFormDTO formDTO) { |
|
|
|
//计算最大最小值
|
|
|
@ -40,7 +43,11 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService { |
|
|
|
log.warn("customerId:{} have not any indexGroupDetail",formDTO.getCustomerId()); |
|
|
|
return false; |
|
|
|
} |
|
|
|
Map<String, String> indexCodeFieldReList = indexCodeFieldReService.getIndexCodeFieldReMap(); |
|
|
|
if (CollectionUtils.isEmpty(indexCodeFieldReList)) |
|
|
|
indexDetails.forEach(indexDetail->{ |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
log.info(JSON.toJSONString(minAndMaxList)); |
|
|
|
Map<String, BigDecimal> list = factIndexPartyAblityCpcMonthlyDao.getCountByMonthId(formDTO.getCustomerId(), formDTO.getMonthId()); |
|
|
|