| | |
| | | |
| | | <select id="getGridTodoData" resultType="com.panzhihua.common.model.vos.grid.UserEventGridDataVO" |
| | | parameterType="com.panzhihua.common.model.dtos.grid.EventGridTodoDataDTO"> |
| | | SELECT IFNULL(SUM(t.todoNums), 0), 1 event_type |
| | | SELECT IFNULL(SUM(t.todoNums), 0) todoNums, 1 event_type |
| | | FROM ( |
| | | SELECT IFNULL(count(e.id), 0) as todoNums |
| | | FROM EVENT e |
| | |
| | | GROUP BY e.event_type |
| | | ) t |
| | | UNION ALL |
| | | SELECT IFNULL(SUM(t.todoNums), 0), 2 event_type |
| | | SELECT IFNULL(SUM(t.todoNums), 0) todoNums, 2 event_type |
| | | FROM ( |
| | | SELECT IFNULL(count(e.id), 0) as todoNums |
| | | FROM EVENT e |
| | |
| | | GROUP BY e.event_type |
| | | ) t |
| | | UNION ALL |
| | | SELECT IFNULL(SUM(t.todoNums), 0), 3 event_type |
| | | SELECT IFNULL(SUM(t.todoNums), 0) todoNums, 3 event_type |
| | | FROM ( |
| | | SELECT IFNULL(count(e.id), 0) as todoNums |
| | | FROM EVENT e |
| | |
| | | GROUP BY e.event_type |
| | | ) t |
| | | UNION ALL |
| | | SELECT IFNULL(SUM(t.todoNums), 0), 4 event_type |
| | | SELECT IFNULL(SUM(t.todoNums), 0) todoNums, 4 event_type |
| | | FROM ( |
| | | SELECT IFNULL(count(e.id), 0) as todoNums |
| | | FROM EVENT e |
| | |
| | | GROUP BY e.event_type |
| | | ) t |
| | | UNION ALL |
| | | SELECT IFNULL(SUM(t.todoNums), 0), 5 event_type |
| | | SELECT IFNULL(SUM(t.todoNums), 0) todoNums, 5 event_type |
| | | FROM ( |
| | | SELECT IFNULL(count(e.id), 0) as todoNums |
| | | FROM EVENT e |