Browse Source

党员统计

dev_shibei_match
zxc 5 years ago
parent
commit
7d9da3f938
  1. 2
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/constant/StatsConstant.java
  2. 2
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/stats/impl/DimCustomerPartymemberServiceImpl.java

2
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/constant/StatsConstant.java

@ -6,7 +6,7 @@ package com.epmet.constant;
*/
public interface StatsConstant {
String PARTY_INFO_LIST = "查询党员信息集合为空......";
String PARTY_INFO_LIST = "客户【%s】查询党员信息集合为空......";
String CUSTOMER_INFO_NULL = "查询所有客户ID为空";

2
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/stats/impl/DimCustomerPartymemberServiceImpl.java

@ -136,7 +136,7 @@ public class DimCustomerPartymemberServiceImpl extends BaseServiceImpl<DimCustom
String dateId = customerIdAndDateIdFormDTO.getDateId();
List<DimCustomerPartyMemberFormDTO> partyMemberList = partyMemberService.selectPartyMemberInfo(customerId, dateId);
if (CollectionUtils.isEmpty(partyMemberList)){
throw new RenException(StatsConstant.PARTY_INFO_LIST);
throw new RenException(String.format(StatsConstant.PARTY_INFO_LIST,customerId));
}
List<String> gridIds = partyMemberList.stream().map(party -> party.getGridId()).distinct().collect(Collectors.toList());
List<GridBelongAgencyResultDTO> agencyInfos = dimGridService.selectGridBelongAgencyInfo(gridIds);

Loading…
Cancel
Save