双重预防项目-国泰新华二开定制版
16639036659
2024-05-30 aecdefe2d7f9d116327d295c43e1d4ad1f4a813b
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>