| | |
| | | <if test="violationsTypeId !=null"> |
| | | and uv.grade_id = #{violationsTypeId} |
| | | </if> |
| | | <if test="videoId !=null"> |
| | | and uv.video_point_id = #{videoId} |
| | | </if> |
| | | </where> |
| | | |
| | | order by id desc |
| | | </select> |
| | | |
| | | <select id="listIllegalBuildingsPage" resultType="com.ycl.vo.casePool.CasePoolIllegalBuildingVO"> |
| | |
| | | t1.alarm_time, |
| | | t1.longitude, |
| | | t1.latitude, |
| | | -- ( CASE WHEN t1.category = 1 THEN "违规" WHEN t1.category = 2 THEN "违建" ELSE "其他" END ) AS type, |
| | | -- ( CASE WHEN t1.event_source = 1 THEN "视频巡查" WHEN t1.event_source = 2 THEN "网格巡查" ELSE "其他" END ) AS |
| | | alarmAdvice, |
| | | dd.name AS type, |
| | | ( CASE WHEN t1.event_source = 1 THEN "视频巡查" WHEN t1.event_source = 2 THEN "网格巡查" ELSE "其他" END ) AS source, |
| | | t1.site AS address, |