1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

User相关逻辑移动到user微服务下(可以运行但是需要修改);数据库user表字段调整

This commit is contained in:
2022-11-06 00:51:57 +08:00
parent 7ec7fc1e4f
commit 267e340ce8
22 changed files with 505 additions and 517 deletions

View File

@@ -17,4 +17,40 @@
<select id="getUserList" resultType="com.cxyxiaomo.epp.pojo.User">
SELECT * FROM user
</select>
<insert id="addUser2">
insert into user
(username, name, password, role, stu_id) values
(#{username},#{name},#{password},#{role},#{stu_id})
</insert>
<update id="updateImg">
update user set img = #{img}
where id = #{id}
</update>
<update id="updPwd">
update user set password = #{pwd2}
where username = #{username}
</update>
<update id="updState">
update user set state = #{date}
where id = #{id}
</update>
<select id="selectAll" resultType="com.cxyxiaomo.epp.pojo.User">
select * from `user`
</select>
<select id="getUserByUsername" resultType="com.cxyxiaomo.epp.pojo.User">
select * from user where username = #{username}
</select>
<select id="getUser" resultType="com.cxyxiaomo.epp.pojo.User">
select * from user where username = #{username} and role_id = #{role}
</select>
<select id="redCodeList" resultType="com.cxyxiaomo.epp.pojo.User">
select name,stu_id from user where TO_DAYS(NOW( )) != TO_DAYS(state) and role = 2
</select>
<select id="redCodeList2" resultType="com.cxyxiaomo.epp.pojo.User">
select name,stu_id from user where state = "1999-01-01"
</select>
</mapper>