springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/dao/EventMapper.java
@@ -130,4 +130,6 @@ EventTypeWorkVO getComplete(@Param("communityId") Long communityId); EventTypeWorkVO getNoComplete(@Param("communityId") Long communityId); Map<String,Integer> getSSPEventTotal(@Param("communityId") Long communityId); } springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventServiceImpl.java
@@ -1939,6 +1939,16 @@ statisticsDetailVO.setNoEventZFTotal(0); } //查询网格 EventGridDataDO gridDataDO = eventGridDataMapper.selectById(statisticsDTO.getGridId()); if(gridDataDO != null){ Map<String,Integer> sspCountMap = this.baseMapper.getSSPEventTotal(gridDataDO.getGridCommunityId()); if(!sspCountMap.isEmpty()){ statisticsDetailVO.setEventSSPTotal(sspCountMap.get("eventSSPTotal")!=null?sspCountMap.get("eventSSPTotal"):0); statisticsDetailVO.setNoEventSSPTotal(sspCountMap.get("noEventSSPTotal")!=null?sspCountMap.get("noEventSSPTotal"):0); } } //统计数据 Integer sum = statisticsDetailVO.getEventTFTotal() + statisticsDetailVO.getEventMDTotal() + statisticsDetailVO.getEventZATotal() + statisticsDetailVO.getEventBWDTotal() + statisticsDetailVO.getEventTSTotal() + statisticsDetailVO.getEventGGTotal() springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/mapper/EventMapper.xml
@@ -1270,4 +1270,15 @@ AND egd.grid_community_id = #{communityId} </select> <select id="getSSPEventTotal" resultType="Map"> SELECT count( id ) as noEventSSPTotal, ( SELECT count( id ) FROM com_act_easy_photo WHERE handle_status = 2 AND community_id = #{communityId} ) AS eventSSPTotal FROM com_act_easy_photo WHERE handle_status = 2 AND community_id = #{communityId} </select> </mapper>