工地事件接口和商汤事件优化添加排序

This commit is contained in:
wuweida 2022-08-01 09:11:29 +08:00
parent d5c6e070e7
commit 8d8b2e516a
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@
<select id="selectRaise" resultType="com.hisense.monitormanage.dto.BuildingRecordsDto">
select * from t_building_records br JOIN t_building_new_site bs
ON br.project_name = bs.gdmc where br.pm10 > 80
ON br.project_name = bs.gdmc where br.pm10 > 80 ORDER BY br.push_time DESC
<bind name="page" value="(page-1)*pageSize"/>
limit #{page},#{pageSize}
</select>
@ -45,7 +45,7 @@
UNION
SELECT br.noice,br.push_time,br.project_name,bs.jd,bs.wd,bs.channel_name,bs.sgwz,bs.ssdq FROM
t_building_records br JOIN t_building_new_site bs ON br.project_name = bs.gdmc
WHERE DATE_FORMAT(br.push_time,'%H')>=6 AND DATE_FORMAT(br.push_time,'%H') &lt;22 AND br.noice > 70) a
WHERE DATE_FORMAT(br.push_time,'%H')>=6 AND DATE_FORMAT(br.push_time,'%H') &lt;22 AND br.noice > 70) a ORDER BY a.push_time DESC
<bind name="page" value="(page-1)*pageSize"/>
limit #{page},#{pageSize}
</select>

View File

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hisense.monitormanage.mapper.EventMapper">
<select id="selectEvent" resultType="com.hisense.monitormanage.dto.EventDto">
SELECT * FROM t_event where track_event = 'START'
SELECT * FROM t_event where track_event = 'START' ORDER BY capture_time DESC
<bind name="page" value="(page-1)*pageSize"/>
limit #{page},#{pageSize}
</select>