SqlMapper支持xml配置sql

This commit is contained in:
aoshiguchen
2022-08-03 23:05:32 +08:00
parent 1b42119085
commit b07416ef06
9 changed files with 127 additions and 9 deletions
@@ -0,0 +1,12 @@
<mapper namespace = "fun.asgc.neutrino.proxy.server.dal.UserTokenMapper">
<insert id = "add">
insert into `user_token`(`token`,`user_id`,`expiration_time`,`create_time`,`update_time`)
values (:token, :userId, :expirationTime, :createTime, :updateTime)
</insert>
<select id = "findByAvailableToken">
select * from user_token where token = ? and expiration_time > ?
</select>
</mapper>