mirror of
https://github.com/1024-lab/smart-admin.git
synced 2026-06-04 21:06:08 +00:00
v3.7.0 (2024-09-28) Java17+SpringBoot3重磅更新,【新增】支持Java17;【新增】支持SpringBoot3;【优化】优化AES和SM4加密;【优化】优化三级等保文档;
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="net.lab1024.sa.base.module.support.securityprotect.dao.LoginFailDao">
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="queryPage" resultType="net.lab1024.sa.base.module.support.securityprotect.domain.LoginFailVO">
|
||||
SELECT
|
||||
*
|
||||
FROM t_login_fail
|
||||
<where>
|
||||
<!--登录名-->
|
||||
<if test="queryForm.loginName != null and queryForm.loginName != ''">
|
||||
AND INSTR(t_login_fail.login_name,#{queryForm.loginName})
|
||||
</if>
|
||||
<!--锁定状态-->
|
||||
<if test="queryForm.lockFlag != null ">
|
||||
AND t_login_fail.lock_flag = #{queryForm.lockFlag}
|
||||
</if>
|
||||
<!--登录失败锁定时间-->
|
||||
<if test="queryForm.loginLockBeginTimeBegin != null">
|
||||
AND DATE_FORMAT(t_login_fail.login_lock_begin_time, '%Y-%m-%d') >= #{queryForm.loginLockBeginTimeBegin}
|
||||
</if>
|
||||
<if test="queryForm.loginLockBeginTimeEnd != null">
|
||||
AND DATE_FORMAT(t_login_fail.login_lock_begin_time, '%Y-%m-%d') <= #{queryForm.loginLockBeginTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
order by t_login_fail.update_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectByUserIdAndUserType"
|
||||
resultType="net.lab1024.sa.base.module.support.securityprotect.domain.LoginFailEntity">
|
||||
select *
|
||||
from t_login_fail
|
||||
where user_id = #{userId}
|
||||
and user_type = #{userType}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByUserIdAndUserType">
|
||||
delete
|
||||
from t_login_fail
|
||||
where user_id = #{userId}
|
||||
and user_type = #{userType}
|
||||
</delete>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user