From eef4b7ca66cc2fb34d2d2cb0a4a8643f2bb0f838 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期五, 18 十月 2024 13:44:06 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/userInfo/User.xml |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/userInfo/User.xml b/north-glass-erp/src/main/resources/mapper/userInfo/User.xml
index 1120d54..a593cf5 100644
--- a/north-glass-erp/src/main/resources/mapper/userInfo/User.xml
+++ b/north-glass-erp/src/main/resources/mapper/userInfo/User.xml
@@ -41,6 +41,12 @@
         where login_name=#{LoginName}
     </select>
 
+    <select id="findOnePassWord" >
+        SELECT *
+        FROM erp_user_info.user
+        where id=#{id} and password=#{passWord}
+    </select>
+
     <insert id="register"  useGeneratedKeys="true" keyProperty="id">
         insert erp_user_info.user
             (password,user_name)
@@ -66,4 +72,16 @@
         set state =0
         where id = #{id}
     </update>
+
+    <update id="updatePassWordById">
+        update erp_user_info.user
+        set password=#{passWord},update_time=now()
+        where id=#{id}
+    </update>
+
+    <update id="updateUserNameById">
+        update erp_user_info.user
+        set user_name=#{userName},update_time=now()
+        where id=#{id}
+    </update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0