From b802e81da449baa2cb4ec23deb02055d3a8f8f5c Mon Sep 17 00:00:00 2001 From: ‘liusuyi’ <1951119284@qq.com> Date: 星期二, 02 四月 2024 14:11:23 +0800 Subject: [PATCH] 修复相机密码脱敏导致的bug --- ard-work/src/main/resources/mapper/device/ArdCamerasMapper.xml | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ard-work/src/main/resources/mapper/device/ArdCamerasMapper.xml b/ard-work/src/main/resources/mapper/device/ArdCamerasMapper.xml index 38ff325..e7a7999 100644 --- a/ard-work/src/main/resources/mapper/device/ArdCamerasMapper.xml +++ b/ard-work/src/main/resources/mapper/device/ArdCamerasMapper.xml @@ -104,6 +104,7 @@ WHERE cast(#{deptId} as varchar) = any(string_to_array(ancestors,',')) )) </if> <if test="towerId != null ">and c.tower_id = #{towerId}</if> + <if test="state != null ">and c.state = #{state}</if> <!-- 鏁版嵁鑼冨洿杩囨护 --> ${params.dataScope} </where> @@ -140,6 +141,7 @@ <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> + <if test="state != null ">and c.state = #{state}</if> </where> </select> <select id="selectArdCamerasById" parameterType="String" resultMap="ArdCamerasResult"> @@ -181,6 +183,7 @@ <if test="createTime != null">create_time,</if> <if test="updateBy != null">update_by,</if> <if test="updateTime != null">update_time,</if> + <if test="state != null">state,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null">#{id},</if> @@ -214,6 +217,7 @@ <if test="createTime != null">#{createTime},</if> <if test="updateBy != null">#{updateBy},</if> <if test="updateTime != null">#{updateTime},</if> + <if test="state != null">#{state},</if> </trim> </insert> -- Gitblit v1.9.3