| | |
| | | ORDER BY |
| | | month_index_number DESC |
| | | LIMIT 10 |
| | | </select> |
| | | <select id="arithmeticEvent" |
| | | resultType="com.ycl.vo.cockpit.statisticsEvents.StatisticsEventsVO$ArithmeticVO"> |
| | | SELECT dd.`name` ,COUNT(v.id) count |
| | | from ums_violations v |
| | | INNER JOIN ums_data_dictionary dd on v.grade_id = dd.id |
| | | INNER JOIN ums_base_case b on b.id = v.id |
| | | WHERE v.video_alarm_report_id is not NULL |
| | | <if test="beginTime !='' and endTime !='' and beginTime!=null and endTime !=null"> |
| | | and create_time between #{beginTime} and #{endTime} |
| | | </if> |
| | | <if test="streetId !=null "> |
| | | and b.street_id = #{streetId} |
| | | </if> |
| | | GROUP BY v.grade_id |
| | | </select> |
| | | <select id="listLot" resultType="com.ycl.vo.cockpit.statisticsEvents.StatisticsEventsVO$LotVO"> |
| | | SELECT vp.`name` ,COUNT(v.id) count |
| | | from ums_violations v |
| | | INNER JOIN ums_data_dictionary dd on v.grade_id = dd.id |
| | | INNER JOIN ums_base_case b on b.id = v.id |
| | | INNER JOIN ums_video_point vp on v.video_point_id = vp.id |
| | | WHERE v.video_alarm_report_id is not NULL |
| | | <if test="beginTime !='' and endTime !='' and beginTime!=null and endTime !=null"> |
| | | and create_time between #{beginTime} and #{endTime} |
| | | </if> |
| | | <if test="streetId !=null "> |
| | | and b.street_id = #{streetId} |
| | | </if> |
| | | GROUP BY v.video_point_id |
| | | </select> |
| | | </mapper> |