|
@ -377,15 +377,15 @@ public class IcPartyUnitServiceImpl extends BaseServiceImpl<IcPartyUnitDao, IcPa |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @param formDTO |
|
|
* @param agencyId |
|
|
* @Description 按类型统计单位数量 |
|
|
* @Description 按类型统计单位数量、可视化平台-社区党建-联建单位分析-饼图展示分类下的联建单位数量 |
|
|
* @Param formDTO |
|
|
* @Param formDTO |
|
|
* @Return {@link List<OptionDataResultDTO>} |
|
|
* @Return {@link List<OptionDataResultDTO>} |
|
|
* @Author zhaoqifeng |
|
|
* @Author zhaoqifeng |
|
|
* @Date 2021/12/8 14:56 |
|
|
* @Date 2021/12/8 14:56 |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public List<OptionDataResultDTO> typeStatistics(PartyActivityFormDTO formDTO) { |
|
|
public List<OptionDataResultDTO> typeStatistics(String agencyId) { |
|
|
DictListFormDTO dictFromDTO = new DictListFormDTO(); |
|
|
DictListFormDTO dictFromDTO = new DictListFormDTO(); |
|
|
dictFromDTO.setDictType(DictTypeEnum.PARTY_UNIT_TYPE.getCode()); |
|
|
dictFromDTO.setDictType(DictTypeEnum.PARTY_UNIT_TYPE.getCode()); |
|
|
Result<List<DictListResultDTO>> dictResult = epmetAdminOpenFeignClient.dictList(dictFromDTO); |
|
|
Result<List<DictListResultDTO>> dictResult = epmetAdminOpenFeignClient.dictList(dictFromDTO); |
|
@ -393,7 +393,7 @@ public class IcPartyUnitServiceImpl extends BaseServiceImpl<IcPartyUnitDao, IcPa |
|
|
throw new EpmetException(dictResult.getCode()); |
|
|
throw new EpmetException(dictResult.getCode()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
List<OptionDataResultDTO> list = baseDao.getTypeStatistics(formDTO.getAgencyId()); |
|
|
List<OptionDataResultDTO> list = baseDao.getTypeStatistics(agencyId); |
|
|
Map<String, String> map = list.stream().collect(Collectors.toMap(OptionDataResultDTO::getCode, OptionDataResultDTO::getValue)); |
|
|
Map<String, String> map = list.stream().collect(Collectors.toMap(OptionDataResultDTO::getCode, OptionDataResultDTO::getValue)); |
|
|
|
|
|
|
|
|
return dictResult.getData().stream().map(item -> { |
|
|
return dictResult.getData().stream().map(item -> { |
|
|