wl
2022-12-13 40281cefbcb9c06e63e9a86e0e023302e357bf24
fix: 趋势分析
1个文件已修改
5 ■■■■ 已修改文件
ycl-platform/src/main/resources/mapper/trend/TrendAnalysisMapper.xml 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/resources/mapper/trend/TrendAnalysisMapper.xml
@@ -12,8 +12,10 @@
        LEFT JOIN ums_video_point t2 ON t2.id = t1.video_point_id
        LEFT JOIN ums_video_alarm_report t3 ON t3.id = t1.video_alarm_report_id
        <where>
            <if test="tap.startTime!=null and tap.startTime!=''and tap.endTime!=null and tap.endTime!=''" >
            <if test="tap.startTime!=null and tap.startTime!=''and tap.endTime!=null and tap.endTime!=''">
                t3.alarm_time between #{tap.startTime} and #{tap.endTime}
            </if>
            and t1.video_point_id IS NOT NULL
        </where>
        GROUP BY
        t1.video_point_id
@@ -31,6 +33,7 @@
            <if test="longitude='' and longitude =null and latitude='' and latitude=null">
                t2.longitude=#{longitude} and t2.latitude=#{latitude}
            </if>
         and   t1.video_point_id IS NOT NULL
        </where>
        GROUP BY
        t1.video_point_id,DATE_FORMAT(t3.alarm_time,"%Y-%m-%d")