Browse Source

加了个网格

master
zxc 3 years ago
parent
commit
5c6b538bce
  1. 10
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcEpidemicSpecialAttentionServiceImpl.java

10
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcEpidemicSpecialAttentionServiceImpl.java

@ -173,11 +173,13 @@ public class IcEpidemicSpecialAttentionServiceImpl extends BaseServiceImpl<IcEpi
}
if (CollectionUtils.isNotEmpty(result.getList())){
result.getList().forEach(r -> {
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(r.getGridId());
if (null == gridInfo){
throw new EpmetException("查询网格失败:"+r.getGridId());
if (StringUtils.isNotBlank(r.getGridId())){
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(r.getGridId());
if (null == gridInfo){
throw new EpmetException("查询网格失败:"+r.getGridId());
}
r.setGridName(gridInfo.getGridNamePath());
}
r.setGridName(gridInfo.getGridNamePath());
});
}
}

Loading…
Cancel
Save