From 14c7f8f9ab3dfca1a8759482a9b3e16cd5d9856f Mon Sep 17 00:00:00 2001
From: 李林 <z1292839451@163.com>
Date: 星期六, 20 四月 2024 00:06:03 +0800
Subject: [PATCH] 标准刷新增加一个条件

---
 cnas-server/src/main/resources/mapper/DeviceMapper.xml |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/cnas-server/src/main/resources/mapper/DeviceMapper.xml b/cnas-server/src/main/resources/mapper/DeviceMapper.xml
index 7ef524b..7f8d103 100644
--- a/cnas-server/src/main/resources/mapper/DeviceMapper.xml
+++ b/cnas-server/src/main/resources/mapper/DeviceMapper.xml
@@ -59,19 +59,14 @@
         </if>
     </select>
     <select id="authorizedPerson" resultType="com.yuanchu.mom.pojo.Device">
-        select *
-        from (select id,
-                     authorized_person,
-                     status
-              from device) a
+        select id,
+               authorized_person
+        from device
     </select>
     <select id="search" resultType="com.yuanchu.mom.pojo.Device">
         select *
         from device
         <where>
-            <if test="status!=null">
-                and status = #{status}
-            </if>
             <if test="deviceName!=null and deviceName!=''">
                 and device_name like concat('%',#{deviceName},'%')
             </if>
@@ -123,7 +118,6 @@
             id=#{id}
         </where>
     </update>
-
     <select id="selectDeviceImage" resultType="com.yuanchu.mom.pojo.Device">
         select (image_upload, create_user, create_time) values (#{image_upload}
              , #{createUser}

--
Gitblit v1.9.3