From faa6130891b7ab6e9fe14a5afb33e003b2a19b1f Mon Sep 17 00:00:00 2001
From: 16639036659 <577530412@qq.com>
Date: 星期四, 13 六月 2024 08:59:11 +0800
Subject: [PATCH] 临时提交

---
 src/main/resources/mybatis/system/UserMapper.xml |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mybatis/system/UserMapper.xml b/src/main/resources/mybatis/system/UserMapper.xml
index cfe6f30..daff4be 100644
--- a/src/main/resources/mybatis/system/UserMapper.xml
+++ b/src/main/resources/mybatis/system/UserMapper.xml
@@ -295,4 +295,15 @@
         select * from sys_user
         where del_flag = 0 and status = 0
     </select>
+
+    <select id="selectForUpdatePwd" resultMap="UserResult">
+        select * from sys_user
+        where del_flag = 0 and status = 0 and ('2024-05-07 14:13:30' > update_time or update_time is null)
+        limit 500
+    </select>
+<!--    int updateUserForUpdatePwd(User user);-->
+    <update id="updateUserForUpdatePwd" parameterType="User">
+        update sys_user set password = #{password}, update_time = #{updateTime}
+        where user_id = #{userId}
+    </update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.2