| | |
| | | </select> |
| | | <select id="pageEventList" |
| | | resultType="com.panzhihua.common.model.vos.community.screen.event.EventGridIncidentStatisticsVO"> |
| | | SELECT event_type AS type, IFNULL( NULL, 1 ) AS eventType, e.id AS eventId, happent_lat_lng AS latLng, event_des AS content, |
| | | (SELECT url FROM event_resource WHERE ref_id = e.id AND classification = 1 AND `type` = 1 LIMIT 1) AS cover, e.create_at, |
| | | (SELECT event_type AS type, IFNULL( NULL, 1 ) AS eventType, e.id AS eventId, happent_lat_lng AS latLng, |
| | | event_des AS content, |
| | | (SELECT url FROM event_resource WHERE ref_id = e.id AND classification = 1 AND `type` = 1 LIMIT 1) AS cover, |
| | | e.create_at, |
| | | CASE |
| | | WHEN event_deal_status = 4 THEN 1 |
| | | ELSE 2 END `status` |
| | |
| | | <if test="pageBaseDTO.param3 != null and pageBaseDTO.param3 == 2"> |
| | | AND event_deal_status != 4 |
| | | </if> |
| | | ORDER BY e.create_at DESC |
| | | UNION ALL SELECT |
| | | ) |
| | | UNION ALL (SELECT |
| | | CASE |
| | | WHEN classify_id = 4 THEN 1 |
| | | WHEN classify_id = 6 THEN 2 |
| | |
| | | <if test="pageBaseDTO.param3 != null and pageBaseDTO.param3 == 2"> |
| | | AND handle_status != 2 |
| | | </if> |
| | | ORDER BY create_at DESC |
| | | ) ORDER BY create_at DESC |
| | | </select> |
| | | </mapper> |