huanghongfa
2021-06-07 62c0d18b76729935c6a1b30efa83452a32d02c83
springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/resources/mapper/EventGridDataMapper.xml
@@ -158,7 +158,7 @@
      SELECT  IFNULL(count(e.id), 0) as todoNums
      FROM EVENT  e
      WHERE e.event_category = 1 AND event_status = 2
      AND event_process_status = 1 AND process_type = 1
      AND (event_process_status = 1 OR event_process_status=3) AND process_type = 1
      AND grid_id = #{eventGridTodoDataDTO.gridId}
      AND e.event_type = 1
      GROUP BY e.event_type
@@ -169,7 +169,7 @@
      SELECT  IFNULL(count(e.id), 0) as todoNums
      FROM EVENT  e
      WHERE e.event_category = 1 AND event_status = 2
      AND event_process_status = 1 AND process_type = 1
      AND (event_process_status = 1 OR event_process_status=3) AND process_type = 1
      AND grid_id = #{eventGridTodoDataDTO.gridId}
      AND e.event_type =2
      GROUP BY e.event_type
@@ -180,7 +180,7 @@
      SELECT  IFNULL(count(e.id), 0) as todoNums
      FROM EVENT  e
      WHERE e.event_category = 1 AND event_status = 2
      AND event_process_status = 1 AND process_type = 1
      AND (event_process_status = 1 OR event_process_status=3) AND process_type = 1
      AND grid_id = #{eventGridTodoDataDTO.gridId}
      AND e.event_type =3
      GROUP BY e.event_type
@@ -191,7 +191,7 @@
      SELECT  IFNULL(count(e.id), 0) as todoNums
      FROM EVENT  e
      WHERE e.event_category = 1 AND event_status = 2
      AND event_process_status = 1 AND process_type = 1
      AND (event_process_status = 1 OR event_process_status=3) AND process_type = 1
      AND grid_id = #{eventGridTodoDataDTO.gridId}
      AND e.event_type =4
      GROUP BY e.event_type
@@ -202,7 +202,7 @@
      SELECT  IFNULL(count(e.id), 0) as todoNums
      FROM EVENT  e
      WHERE e.event_category = 1 AND event_status = 2
      AND event_process_status = 1 AND process_type = 1
      AND (event_process_status = 1 OR event_process_status=3) AND process_type = 1
      AND grid_id = #{eventGridTodoDataDTO.gridId}
      AND e.event_type =5
      GROUP BY e.event_type