| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |