Browse Source

fix:【灵山大屏】代办服务类型分析报错

master
wxz 2 years ago
parent
commit
51fc695173
  1. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LingShanAgentServiceServiceImpl.java

2
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LingShanAgentServiceServiceImpl.java

@ -563,7 +563,7 @@ public class LingShanAgentServiceServiceImpl implements LingShanAgentServiceServ
return cateogries.stream().map(c -> {
LingshanAgentServiceRecordEntity data = categoryAndData.get(c.getId());
return new ScreenAgentServiceCategoryAnalysisRstDTO(c.getCategoryName(), data.getQty());
return new ScreenAgentServiceCategoryAnalysisRstDTO(c.getCategoryName(), data == null ? 0 : data.getQty());
}).collect(Collectors.toList());
}

Loading…
Cancel
Save