|
|
@ -8,7 +8,6 @@ import com.epmet.service.evaluationindex.screen.ScreenCpcBaseDataService; |
|
|
|
import com.epmet.service.evaluationindex.screen.ScreenCustomerAgencyService; |
|
|
|
import com.epmet.service.evaluationindex.screen.ScreenCustomerGridService; |
|
|
|
import com.epmet.service.stats.DimCustomerPartymemberService; |
|
|
|
import com.epmet.service.stats.user.FactParticipationUserAgencyDailyService; |
|
|
|
import com.epmet.service.stats.user.FactParticipationUserGridDailyService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.collections4.ListUtils; |
|
|
@ -45,8 +44,6 @@ public class PartyBaseInfoServiceImpl implements PartyBaseInfoService { |
|
|
|
@Autowired |
|
|
|
private FactParticipationUserGridDailyService userGridDailyService; |
|
|
|
@Autowired |
|
|
|
private FactParticipationUserAgencyDailyService userAgencyDailyService; |
|
|
|
@Autowired |
|
|
|
private ScreenCpcBaseDataService cpcBaseDataService; |
|
|
|
|
|
|
|
/** |
|
|
@ -104,7 +101,6 @@ public class PartyBaseInfoServiceImpl implements PartyBaseInfoService { |
|
|
|
List<PartyBaseInfoFormDTO> result = new ArrayList<>(); |
|
|
|
if (isGrid == true){ |
|
|
|
// 是 community 级别,子级为gridId
|
|
|
|
List<UserCountResultDTO> userCountList = userGridDailyService.selectUserCount(customerId, dateId); |
|
|
|
agencyIdList.forEach(agency -> { |
|
|
|
GridPartyDTO gridPartyDTO = gridParty(customerId, dateId, agency); |
|
|
|
result.addAll(gridPartyDTO.getResult()); |
|
|
@ -142,7 +138,7 @@ public class PartyBaseInfoServiceImpl implements PartyBaseInfoService { |
|
|
|
}else { |
|
|
|
// 级别为 street,district,city,province
|
|
|
|
List<GridInfoResultDTO> directGridIds = gridService.selectDirectGrid(orgIds); |
|
|
|
List<UserCountResultDTO> userCountList = userGridDailyService.selectUserCount(customerId, dateId); |
|
|
|
List<UserCountResultDTO> userCountList = userGridDailyService.selectUserCount(customerId); |
|
|
|
agencyIdList.forEach(agency -> { |
|
|
|
String agencyId = agency.getAgencyId(); |
|
|
|
List<String> dGridId = new ArrayList<>(); |
|
|
@ -334,7 +330,7 @@ public class PartyBaseInfoServiceImpl implements PartyBaseInfoService { |
|
|
|
public GridPartyDTO gridParty(String customerId,String dateId,CustomerAgencyInfoResultDTO agency){ |
|
|
|
List<PartyBaseInfoFormDTO> result = new ArrayList<>(); |
|
|
|
List<String> orgIds = new ArrayList<>(); |
|
|
|
List<UserCountResultDTO> userCountList = userGridDailyService.selectUserCount(customerId, dateId); |
|
|
|
List<UserCountResultDTO> userCountList = userGridDailyService.selectUserCount(customerId); |
|
|
|
// 1. 处理社区下的所有网格中的党员信息
|
|
|
|
String agencyId = agency.getAgencyId(); |
|
|
|
// 获取下级所有agencyId【根据agencyMap中的level判断下级orgId是否是gridId】(此处直接作为gridId)
|
|
|
|