1 Star 0 Fork 3

yanghui1314 / 用户登录模块设计

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
MenuDao.xml 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
大老粗 提交于 2020-12-31 11:50 . no commit message
<?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="com.iproinfo.index.mapper.MenuDao">
<insert id="addUser">
insert into TBL_USER_MANAGEMENT(USER_NAME,PASSWORD,EMAIL) VALUES
(#{userName},#{passWord},#{salt})
</insert>
<select id="findOneUser" resultType="com.iproinfo.index.entity.User">
select user_name from TBL_USER_MANAGEMENT t where USER_NAME=#{userName} AND PASSWORD=#{passWord}
</select>
<select id="findSalt" resultType="com.iproinfo.index.entity.User">
select EMAIL AS salt from TBL_USER_MANAGEMENT where user_name=#{userName}
</select>
<insert id="failedUserLogin">
insert into FAILED_USER_LOGIN(USER_NAME,TIME) VALUES
(#{userName},#{time})
</insert>
<select id="logonFailureTimes" resultType="java.lang.Integer">
select count(*) from FAILED_USER_LOGIN where USER_NAME=#{userName} and time &lt;=#{newTime} and time &gt;=#{oldTime}
</select>
</mapper>
Java
1
https://gitee.com/yanghui1314/login.git
git@gitee.com:yanghui1314/login.git
yanghui1314
login
用户登录模块设计
master

搜索帮助