|  |  | 
 |  |  |         <result property="alarmTime"    column="alarm_time"    /> | 
 |  |  |         <result property="longitude"    column="longitude"    /> | 
 |  |  |         <result property="latitude"    column="latitude"    /> | 
 |  |  |         <result property="recordUrl1"    column="record_url1"    /> | 
 |  |  |         <result property="recordUrl2"    column="record_url2"    /> | 
 |  |  |         <result property="recordUrl"    column="record_url"    /> | 
 |  |  |         <result property="viewTime"    column="view_time"    /> | 
 |  |  |         <result property="createBy"    column="create_by"    /> | 
 |  |  |         <result property="createTime"    column="create_time"    /> | 
 |  |  | 
 |  |  |     </resultMap> | 
 |  |  |  | 
 |  |  |     <sql id="selectArdAlarmRadarMoveVo"> | 
 |  |  |         select id, name, target_id, alarm_type, alarm_time, longitude, latitude, record_url1,record_url2, view_time, create_by, create_time, user_id, dept_id, guide_time from ard_alarm_radar_move | 
 |  |  |         select id, name, target_id, alarm_type, alarm_time, longitude, latitude, record_url, view_time, create_by, create_time, user_id, dept_id, guide_time from ard_alarm_radar_move | 
 |  |  |     </sql> | 
 |  |  |  | 
 |  |  |     <select id="selectArdAlarmRadarMoveList" parameterType="ArdAlarmRadarMove" resultMap="ArdAlarmRadarMoveResult"> | 
 |  |  | 
 |  |  |             <if test="alarmTime != null "> and alarm_time = #{alarmTime}</if> | 
 |  |  |             <if test="longitude != null "> and longitude = #{longitude}</if> | 
 |  |  |             <if test="latitude != null "> and latitude = #{latitude}</if> | 
 |  |  |             <if test="recordUrl1 != null  and recordUrl1 != ''"> and record_url1 = #{recordUrl1}</if> | 
 |  |  |             <if test="recordUrl != null  and recordUrl != ''"> and record_url = #{recordUrl}</if> | 
 |  |  |             <if test="viewTime != null "> and view_time = #{viewTime}</if> | 
 |  |  |             <if test="userId != null  and userId != ''"> and user_id = #{userId}</if> | 
 |  |  |             <if test="deptId != null "> and dept_id = #{deptId}</if> | 
 |  |  | 
 |  |  |             <if test="alarmTime != null">alarm_time,</if> | 
 |  |  |             <if test="longitude != null">longitude,</if> | 
 |  |  |             <if test="latitude != null">latitude,</if> | 
 |  |  |             <if test="recordUrl1 != null">record_url1,</if> | 
 |  |  |             <if test="recordUrl2 != null">record_url2,</if> | 
 |  |  |             <if test="recordUrl != null">record_url,</if> | 
 |  |  |             <if test="viewTime != null">view_time,</if> | 
 |  |  |             <if test="createBy != null">create_by,</if> | 
 |  |  |             <if test="createTime != null">create_time,</if> | 
 |  |  | 
 |  |  |             <if test="alarmTime != null">#{alarmTime},</if> | 
 |  |  |             <if test="longitude != null">#{longitude},</if> | 
 |  |  |             <if test="latitude != null">#{latitude},</if> | 
 |  |  |             <if test="recordUrl1 != null">#{recordUrl1},</if> | 
 |  |  |             <if test="recordUrl2 != null">#{recordUrl2},</if> | 
 |  |  |             <if test="recordUrl != null">#{recordUrl},</if> | 
 |  |  |             <if test="viewTime != null">#{viewTime},</if> | 
 |  |  |             <if test="createBy != null">#{createBy},</if> | 
 |  |  |             <if test="createTime != null">#{createTime},</if> | 
 |  |  | 
 |  |  |             <if test="alarmTime != null">alarm_time = #{alarmTime},</if> | 
 |  |  |             <if test="longitude != null">longitude = #{longitude},</if> | 
 |  |  |             <if test="latitude != null">latitude = #{latitude},</if> | 
 |  |  |             <if test="recordUrl1 != null">record_url1 = #{recordUrl1},</if> | 
 |  |  |             <if test="recordUrl2 != null">record_url2 = #{recordUrl2},</if> | 
 |  |  |             <if test="recordUrl != null">record_url = #{recordUrl},</if> | 
 |  |  |             <if test="viewTime != null">view_time = #{viewTime},</if> | 
 |  |  |             <if test="createBy != null">create_by = #{createBy},</if> | 
 |  |  |             <if test="createTime != null">create_time = #{createTime},</if> | 
 |  |  | 
 |  |  |     <select id="selectArdAlarmRadarLastData" parameterType="String" resultMap="ArdAlarmRadarMoveResult"> | 
 |  |  |         select * from ard_alarm_radar_move where name=#{name} order by update_time desc LIMIT 1 | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <select id="moveYear" resultType="com.ruoyi.statistical.vo.CountVo"> | 
 |  |  |         select to_char(alarm_time::DATE, 'MM') as date,count(id) | 
 |  |  |         from ard_alarm_radar_move | 
 |  |  |         where alarm_time >= #{start} and  alarm_time <= #{end}  group by date order by date | 
 |  |  |     </select> | 
 |  |  |     <select id="moveMonth" resultType="com.ruoyi.statistical.vo.CountVo"> | 
 |  |  |         select to_char(alarm_time::DATE, 'dd') as date,count(id) | 
 |  |  |         from ard_alarm_radar_move | 
 |  |  |         where alarm_time >= #{start} and  alarm_time <= #{end}  group by date order by date | 
 |  |  |     </select> | 
 |  |  |     <select id="ten" resultType="com.ruoyi.statistical.vo.TenVo"> | 
 |  |  |         SELECT name,count(name) as "value" from ard_alarm_radar_move | 
 |  |  |         where (current_timestamp - interval '1024 hour') <= alarm_time GROUP BY name ORDER BY "value" desc LIMIT 10 | 
 |  |  |     </select> | 
 |  |  | </mapper> |