| | |
| | | <result property="alarmTime" column="alarm_time" /> |
| | | <result property="longitude" column="longitude" /> |
| | | <result property="latitude" column="latitude" /> |
| | | <result property="recordUrl1" column="record_url1" /> |
| | | <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="selectArdAlarmRadarFireVo"> |
| | | select id, name, target_id, alarm_type, alarm_time, longitude, latitude, record_url1, view_time, create_by, create_time, user_id, dept_id, guide_time from ard_alarm_radar_fire |
| | | 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_fire |
| | | </sql> |
| | | |
| | | <select id="selectArdAlarmRadarFireList" parameterType="ArdAlarmRadarFire" resultMap="ArdAlarmRadarFireResult"> |
| | |
| | | <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="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="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="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> |
| | | |
| | | <select id="fileYear" resultType="com.ruoyi.statistical.vo.CountVo"> |
| | | select to_char(alarm_time::DATE, 'MM') as month,count(id) |
| | | select to_char(alarm_time::DATE, 'MM') as date,count(id) |
| | | from ard_alarm_radar_fire |
| | | where alarm_time >= #{start} and alarm_time <= #{end} group by month order by month |
| | | where alarm_time >= #{start} and alarm_time <= #{end} group by date order by date |
| | | </select> |
| | | <select id="fileMonth" resultType="com.ruoyi.statistical.vo.CountVo"> |
| | | select to_char(alarm_time::DATE, 'dd') as date,count(id) |
| | | from ard_alarm_radar_fire |
| | | where alarm_time >= #{start} and alarm_time <= #{end} group by date order by date |
| | | </select> |
| | | </mapper> |