From 94e5611b79ba1440d042eb062fb36b1b9f01a0be Mon Sep 17 00:00:00 2001 From: baizonghao <1719256278@qq.com> Date: 星期四, 30 三月 2023 20:00:15 +0800 Subject: [PATCH] 过期时间 --- ycl-platform/src/main/resources/mapper/apidata/ApiDataMapper.xml | 40 +++++++++++++++++++++++++++++++++++----- 1 files changed, 35 insertions(+), 5 deletions(-) diff --git a/ycl-platform/src/main/resources/mapper/apidata/ApiDataMapper.xml b/ycl-platform/src/main/resources/mapper/apidata/ApiDataMapper.xml index 4a0853f..fba7a29 100644 --- a/ycl-platform/src/main/resources/mapper/apidata/ApiDataMapper.xml +++ b/ycl-platform/src/main/resources/mapper/apidata/ApiDataMapper.xml @@ -5,17 +5,47 @@ <select id="listTop10" resultType="com.ycl.vo.cockpit.statisticsEvents.StatisticsEventsVO$Top10VO"> SELECT NAME - , - IFNULL(month_index_number,0) month_index_number + , + IFNULL(month_index_number,0) month_index_number FROM - ums_team_construction + ums_team_construction <where> <if test="beginTime !='' and endTime !='' and beginTime!=null and endTime !=null"> and create_time between #{beginTime} and #{endTime} </if> </where> ORDER BY - month_index_number DESC - LIMIT 10 + 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> -- Gitblit v1.8.0