v3.7.0 (2024-09-28) Java17+SpringBoot3重磅更新,【新增】支持Java17;【新增】支持SpringBoot3;【优化】优化AES和SM4加密;【优化】优化三级等保文档;

This commit is contained in:
zhuoda
2024-09-28 22:12:36 +08:00
parent 85c6087330
commit 6eb79306e1
659 changed files with 42717 additions and 99 deletions

View File

@@ -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') &gt;= #{queryForm.loginLockBeginTimeBegin}
</if>
<if test="queryForm.loginLockBeginTimeEnd != null">
AND DATE_FORMAT(t_login_fail.login_lock_begin_time, '%Y-%m-%d') &lt;= #{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>