From 21eb47b061d16056f37eee47928c7fe629b63061 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期日, 12 十一月 2023 20:18:15 +0800
Subject: [PATCH] 实体修改用户密码功能,实现密码MD5加密功能,及其他代码完善

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml
index efab302..6ed6777 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml
@@ -44,7 +44,7 @@
     </sql>
 
     <sql id="part_Column_List">
-        id, name, phone, orgTag, disabled
+        id, name, phone, disabled
     </sql>
 
     <sql id="Login_Column_List">
@@ -61,7 +61,7 @@
     <select id="selectTotal" parameterType="java.util.Map" resultType="java.lang.Long">
         select
         count(*)
-        from ba_user where supperAdmin!=1 and disabled!=1 and deleted!=1
+        from ba_user where supperAdmin!=1 and deleted!=1
         <trim prefix="and" suffixOverrides="and">
             <if test="name != null">
                 name like concat('%', #{name}, '%') and
@@ -74,7 +74,7 @@
     <select id="selectSome" parameterType="java.util.Map" resultMap="someResultMap">
         select
         <include refid="part_Column_List" />
-        from ba_user where supperAdmin!=1 and disabled!=1 and deleted!=1
+        from ba_user where supperAdmin!=1 and deleted!=1
         <trim prefix="and" suffixOverrides="and">
             <if test="name != null">
                 name like concat('%', #{name}, '%') and
@@ -188,6 +188,12 @@
         deleted = #{deleted,jdbcType=TINYINT}
         where id = #{id,jdbcType=BIGINT}
     </update>
+    <update id="changePassword" >
+        update ba_user
+        set password = #{password,jdbcType=VARCHAR}
+        where id = #{id,jdbcType=BIGINT}
+    </update>
+
     <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
         delete from ba_user
         where id = #{id,jdbcType=BIGINT}

--
Gitblit v1.8.0