|
|
@ -98,8 +98,10 @@ public class IcPartymemberStyleServiceImpl extends BaseServiceImpl<IcPartymember |
|
|
|
List<IcPartymemberStyleDTO> dtoList = ConvertUtils.sourceToTarget(list, IcPartymemberStyleDTO.class); |
|
|
|
//设置网格名
|
|
|
|
dtoList.forEach(item -> { |
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(item.getGridId()); |
|
|
|
item.setGridName(gridInfo.getGridName()); |
|
|
|
if (StringUtils.isNotBlank(item.getGridId())) { |
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(item.getGridId()); |
|
|
|
item.setGridName(gridInfo.getGridName()); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
return dtoList; |
|
|
@ -187,8 +189,10 @@ public class IcPartymemberStyleServiceImpl extends BaseServiceImpl<IcPartymember |
|
|
|
PageInfo<IcPartymemberStyleDTO> pageInfo = new PageInfo<>(dtoList); |
|
|
|
//设置网格名
|
|
|
|
dtoList.forEach(item -> { |
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(item.getGridId()); |
|
|
|
item.setGridName(gridInfo.getGridName()); |
|
|
|
if (StringUtils.isNotBlank(item.getGridId())) { |
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(item.getGridId()); |
|
|
|
item.setGridName(gridInfo.getGridName()); |
|
|
|
} |
|
|
|
}); |
|
|
|
return new PageData<>(dtoList, pageInfo.getTotal()); |
|
|
|
} |
|
|
|