From 70d17d90cef5985dbc572e5be79ed7041a0476ff Mon Sep 17 00:00:00 2001 From: ‘liusuyi’ <1951119284@qq.com> Date: 星期三, 19 七月 2023 11:46:02 +0800 Subject: [PATCH] app接口里用户list增加关联角色 --- ard-work/src/main/resources/mapper/alarm/ArdAlarmCameraMapper.xml | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/ard-work/src/main/resources/mapper/alarm/ArdAlarmCameraMapper.xml b/ard-work/src/main/resources/mapper/alarm/ArdAlarmCameraMapper.xml index 702bd6d..5beed74 100644 --- a/ard-work/src/main/resources/mapper/alarm/ArdAlarmCameraMapper.xml +++ b/ard-work/src/main/resources/mapper/alarm/ArdAlarmCameraMapper.xml @@ -159,4 +159,11 @@ 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> \ No newline at end of file -- Gitblit v1.9.3