From 8b2c74fb6842e8af60f70e7df6eef8837d74be07 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期四, 05 九月 2024 11:44:17 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/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