From 7be0d5b901b999d2347774df3cc1a64927838bb3 Mon Sep 17 00:00:00 2001 From: heheng <475597332@qq.com> Date: 星期二, 15 四月 2025 10:10:35 +0800 Subject: [PATCH] 优化每年专项数据获取 --- src/main/resources/mybatis/system/UserMapper.xml | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mybatis/system/UserMapper.xml b/src/main/resources/mybatis/system/UserMapper.xml index 72a822f..daff4be 100644 --- a/src/main/resources/mybatis/system/UserMapper.xml +++ b/src/main/resources/mybatis/system/UserMapper.xml @@ -290,4 +290,20 @@ <select id="getUserByName" parameterType="User" resultMap="UserResult"> select * from sys_user where login_name = #{createBy} </select> +<!-- List<User> getAllUser();--> + <select id="getAllUser" resultMap="UserResult"> + 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