|
@ -3,9 +3,11 @@ package com.epmet.service.screen.impl; |
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.dao.indexcoll.FactIndexPartyAblityCpcMonthlyDao; |
|
|
import com.epmet.dao.indexcoll.FactIndexPartyAblityCpcMonthlyDao; |
|
|
|
|
|
import com.epmet.dto.indexcal.CalculateCommonFormDTO; |
|
|
import com.epmet.dto.screen.form.IndexCalculateForm; |
|
|
import com.epmet.dto.screen.form.IndexCalculateForm; |
|
|
import com.epmet.entity.indexcoll.FactIndexPartyAblityCpcMonthlyEntity; |
|
|
import com.epmet.entity.indexcoll.FactIndexPartyAblityCpcMonthlyEntity; |
|
|
import com.epmet.feign.EpmetCommonServiceOpenFeignClient; |
|
|
import com.epmet.feign.EpmetCommonServiceOpenFeignClient; |
|
|
|
|
|
import com.epmet.service.indexcal.GridCorreLationService; |
|
|
import com.epmet.service.screen.IndexCalculateService; |
|
|
import com.epmet.service.screen.IndexCalculateService; |
|
|
import com.epmet.util.DimIdGenerator; |
|
|
import com.epmet.util.DimIdGenerator; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
@ -27,6 +29,8 @@ public class IndexCalculateServiceImpl implements IndexCalculateService { |
|
|
private EpmetCommonServiceOpenFeignClient epmetCommonServiceOpenFeignClient; |
|
|
private EpmetCommonServiceOpenFeignClient epmetCommonServiceOpenFeignClient; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private FactIndexPartyAblityCpcMonthlyDao factIndexPartyAblityCpcMonthlyDao; |
|
|
private FactIndexPartyAblityCpcMonthlyDao factIndexPartyAblityCpcMonthlyDao; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private GridCorreLationService gridCorreLationService; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public Boolean indexCalculate(IndexCalculateForm formDTO) { |
|
|
public Boolean indexCalculate(IndexCalculateForm formDTO) { |
|
@ -44,6 +48,7 @@ public class IndexCalculateServiceImpl implements IndexCalculateService { |
|
|
formDTO.setCustomerIds(externalCustomerIdsResult.getData()); |
|
|
formDTO.setCustomerIds(externalCustomerIdsResult.getData()); |
|
|
} |
|
|
} |
|
|
formDTO.getCustomerIds().forEach(customerId -> { |
|
|
formDTO.getCustomerIds().forEach(customerId -> { |
|
|
|
|
|
CalculateCommonFormDTO calculateCommonFormDTO=new CalculateCommonFormDTO(customerId, formDTO.getMonthId()); |
|
|
//计算党员
|
|
|
//计算党员
|
|
|
try { |
|
|
try { |
|
|
List<FactIndexPartyAblityCpcMonthlyEntity> list = factIndexPartyAblityCpcMonthlyDao.getCountByMonthId(customerId, formDTO.getMonthId()); |
|
|
List<FactIndexPartyAblityCpcMonthlyEntity> list = factIndexPartyAblityCpcMonthlyDao.getCountByMonthId(customerId, formDTO.getMonthId()); |
|
@ -53,7 +58,7 @@ public class IndexCalculateServiceImpl implements IndexCalculateService { |
|
|
|
|
|
|
|
|
//计算网格
|
|
|
//计算网格
|
|
|
//TODO
|
|
|
//TODO
|
|
|
|
|
|
gridCorreLationService.calculateGridCorreLation(calculateCommonFormDTO); |
|
|
//计算社区
|
|
|
//计算社区
|
|
|
//TODO
|
|
|
//TODO
|
|
|
|
|
|
|
|
|