From 1aad56563c6861e13f3a837eb7ef410723cc2358 Mon Sep 17 00:00:00 2001 From: ‘liusuyi’ <1951119284@qq.com> Date: 星期日, 25 六月 2023 11:00:04 +0800 Subject: [PATCH] 报警点位数量推送增加一层map 增加通用光电报警数量推送 --- ard-work/src/main/resources/mapper/device/ArdCamerasMapper.xml | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ard-work/src/main/resources/mapper/device/ArdCamerasMapper.xml b/ard-work/src/main/resources/mapper/device/ArdCamerasMapper.xml index 2b3c5fe..19fdea3 100644 --- a/ard-work/src/main/resources/mapper/device/ArdCamerasMapper.xml +++ b/ard-work/src/main/resources/mapper/device/ArdCamerasMapper.xml @@ -30,6 +30,8 @@ <result property="loginId" column="login_id"/> <result property="operatorId" column="operator_id"/> <result property="operatorExpired" column="operator_expired"/> + <result property="camMaxVisibleDistance" column="cam_max_visible_distance"/> + <result property="camAlarmGuideEnable" column="cam_alarm_guide_enable"/> </resultMap> <sql id="selectArdCamerasVo"> @@ -56,7 +58,9 @@ c.cam_depth, c.cam_fov, c.operator_id, - c.operator_expired + c.operator_expired, + c.cam_max_visible_distance, + c.cam_alarm_guide_enable from ard_cameras c left join sys_dept d on d.dept_id = c.dept_id left join sys_user u on u.user_id = c.user_id @@ -89,6 +93,8 @@ <if test="camAspectratio != null ">and c.cam_aspectratio = #{camAspectratio}</if> <if test="camDepth != null ">and c.cam_depth = #{camDepth}</if> <if test="camFov != null ">and c.cam_fov = #{camFov}</if> + <if test="camMaxVisibleDistance != null ">and c.cam_max_visible_distance = #{camMaxVisibleDistance}</if> + <if test="camAlarmGuideEnable != null ">and c.cam_alarm_guide_enable = #{camAlarmGuideEnable}</if> <if test="loginId != null ">and c.login_id = #{loginId}</if> <!-- 鏁版嵁鑼冨洿杩囨护 --> ${params.dataScope} @@ -121,6 +127,8 @@ <if test="camAspectratio != null ">and c.cam_aspectratio = #{camAspectratio}</if> <if test="camDepth != null ">and c.cam_depth = #{camDepth}</if> <if test="camFov != null ">and c.cam_fov = #{camFov}</if> + <if test="camMaxVisibleDistance != null ">and c.cam_max_visible_distance = #{camMaxVisibleDistance}</if> + <if test="camAlarmGuideEnable != null ">and c.cam_alarm_guide_enable = #{camAlarmGuideEnable}</if> <if test="loginId != null ">and c.login_id = #{loginId}</if> </where> </select> @@ -152,6 +160,8 @@ <if test="camAspectratio != null">cam_aspectratio,</if> <if test="camDepth != null">cam_depth,</if> <if test="camFov != null">cam_fov,</if> + <if test="camMaxVisibleDistance != null ">cam_max_visible_distance,</if> + <if test="camAlarmGuideEnable != null">cam_alarm_guide_enable,</if> <if test="loginId != null">login_id,</if> <if test="deptId != null">dept_id,</if> <if test="userId != null">user_id,</if> @@ -181,6 +191,8 @@ <if test="camAspectratio != null">#{camAspectratio},</if> <if test="camDepth != null">#{camDepth},</if> <if test="camFov != null">#{camFov},</if> + <if test="camMaxVisibleDistance != null ">#{camMaxVisibleDistance},</if> + <if test="camAlarmGuideEnable != null">#{camAlarmGuideEnable},</if> <if test="loginId != null">#{loginId},</if> <if test="deptId != null">#{deptId},</if> <if test="userId != null">#{userId},</if> @@ -213,6 +225,8 @@ <if test="camAspectratio != null">cam_aspectratio = #{camAspectratio},</if> <if test="camDepth != null">cam_depth = #{camDepth},</if> <if test="camFov != null">cam_fov = #{camFov},</if> + <if test="camMaxVisibleDistance != null ">cam_max_visible_distance = #{camMaxVisibleDistance},</if> + <if test="camAlarmGuideEnable != null">cam_alarm_guide_enable = #{camAlarmGuideEnable},</if> <if test="loginId != null">login_id = #{loginId},</if> <if test="deptId != null">dept_id = #{deptId},</if> <if test="userId != null">user_id = #{userId},</if> @@ -239,7 +253,6 @@ </foreach> </delete> - <select id="findOptions" parameterType="String" resultMap="ArdCamerasResult"> <include refid="selectArdCamerasVo"/> <where> @@ -247,4 +260,9 @@ <if test="name != null and name != ''">and c.name like '%'||#{name}||'%'</if> </where> </select> + <select id="selectArdCamerasByDeptId" parameterType="Long" resultMap="ArdCamerasResult"> + select * + from ard_cameras + where dept_id = #{deptId} + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3