|
@ -602,6 +602,15 @@ public class IcPartyUnitServiceImpl extends BaseServiceImpl<IcPartyUnitDao, IcPa |
|
|
public PageData getListbrief(PartyUnitListbriefFormDTO form, TokenDto tokenDto) { |
|
|
public PageData getListbrief(PartyUnitListbriefFormDTO form, TokenDto tokenDto) { |
|
|
PageHelper.startPage(form.getPageNo(), form.getPageSize()); |
|
|
PageHelper.startPage(form.getPageNo(), form.getPageSize()); |
|
|
List<PartyUnitListbrieResultDTO> dto = baseDao.getListbrief(form, tokenDto.getCustomerId()); |
|
|
List<PartyUnitListbrieResultDTO> dto = baseDao.getListbrief(form, tokenDto.getCustomerId()); |
|
|
|
|
|
// 获取gridName
|
|
|
|
|
|
for (PartyUnitListbrieResultDTO item:dto) { |
|
|
|
|
|
if (StringUtils.isNotEmpty(item.getGridId())) { |
|
|
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(item.getGridId()); |
|
|
|
|
|
if (null != gridInfo) { |
|
|
|
|
|
item.setGridName(gridInfo.getGridName()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
PageInfo<PartyUnitListbrieResultDTO> info = new PageInfo<>(dto); |
|
|
PageInfo<PartyUnitListbrieResultDTO> info = new PageInfo<>(dto); |
|
|
return new PageData<>(dto, info.getTotal()); |
|
|
return new PageData<>(dto, info.getTotal()); |
|
|
} |
|
|
} |
|
|