| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.alarm.cameraAlarm.mapper.ArdAlarmCameraMapper"> |
| | | <mapper namespace="com.ruoyi.alarm.camera.mapper.ArdAlarmCameraMapper"> |
| | | |
| | | <resultMap type="ArdAlarmCamera" id="ArdAlarmCameraResult"> |
| | | <result property="id" column="id" /> |
| | |
| | | WHERE aac.alarm_time >= CURRENT_TIMESTAMP - INTERVAL '%${refreshTime}%' MINUTE |
| | | and aac.view_time is null |
| | | </select> |
| | | <update id="updateViewTimeByCameraName" parameterType="String"> |
| | | update ard_alarm_camera |
| | | set view_time=#{viewTime} |
| | | where camera_name = #{cameraName} |
| | | and alarm_time<=#{alarmTime} |
| | | and view_time is null |
| | | </update> |
| | | </mapper> |