From 5b207a55bdd10f1516031f629217daac069b64fd Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期五, 30 八月 2024 11:40:31 +0800
Subject: [PATCH] 添加免登录查询所有排班接口;

---
 pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
index 8a3fdc4..d128a39 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
@@ -84,6 +84,13 @@
     where disabled!=1 and deleted!=1 and phone=#{phone} and password=#{password}
   </select>
 
+  <select id="getUserList" resultMap="loginResultMap" >
+    select
+    <include refid="Login_Column_List" />
+    from ba_user
+    where disabled!=1 and deleted!=1
+  </select>
+
   <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="oneResultMap">
     <!--@mbg.generated-->
     select 
@@ -108,7 +115,7 @@
 <!--      <if test="roleId != null and roleId !=''">-->
 <!--        ur.role_id=#{roleId,jdbcType=BIGINT} and-->
 <!--      </if>-->
-      <if test="disabled != null and disabled !=''">
+      <if test="disabled != null">
         bu.disabled=#{disabled,jdbcType=BOOLEAN}
       </if>
     </trim>
@@ -129,7 +136,7 @@
 <!--      <if test="roleId != null and roleId !=''">-->
 <!--        ur.role_id=#{roleId,jdbcType=BIGINT} and-->
 <!--      </if>-->
-      <if test="disabled != null and disabled !=''">
+      <if test="disabled != null">
         bu.disabled=#{disabled,jdbcType=BOOLEAN}
       </if>
     </trim>
@@ -170,7 +177,7 @@
     <!--@mbg.generated-->
     insert into ba_user
     <trim prefix="(" suffix=")" suffixOverrides=",">
-      <if test="id != null and id !=''">
+      <if test="id != null">
         id,
       </if>
       <if test="name != null and name !=''">
@@ -185,15 +192,15 @@
       <if test="supperAdmin!= null and supperAdmin !=''">
         supper_admin,
       </if>
-      <if test="disabled != null and disabled !=''">
+      <if test="disabled != null">
         disabled,
       </if>
-      <if test="deleted != null and deleted !=''">
+      <if test="deleted != null">
         deleted,
       </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
-      <if test="id != null and id !=''">
+      <if test="id != null">
         #{id},
       </if>
       <if test="name != null and name !=''">
@@ -208,10 +215,10 @@
       <if test="supperAdmin!= null and supperAdmin !=''">
         #{supperAdmin},
       </if>
-      <if test="disabled != null and disabled !=''">
+      <if test="disabled != null">
         #{disabled},
       </if>
-      <if test="deleted != null and deleted !=''">
+      <if test="deleted != null">
         #{deleted},
       </if>
     </trim>
@@ -232,10 +239,10 @@
       <if test="supperAdmin!= null and supperAdmin !=''">
         supper_admin = #{supperAdmin},
       </if>
-      <if test="disabled != null and disabled !=''">
+      <if test="disabled != null">
         disabled = #{disabled},
       </if>
-      <if test="deleted != null and deleted !=''">
+      <if test="deleted != null">
         deleted = #{deleted},
       </if>
     </set>

--
Gitblit v1.8.0