20 lines
702 B
XML
20 lines
702 B
XML
<?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="cn.iocoder.mall.admin.dao.OAuth2RefreshTokenMapper">
|
|
|
|
<insert id="insert" parameterType="OAuth2RefreshTokenDO">
|
|
INSERT INTO oauth2_refresh_token (
|
|
id, admin_id, valid, expires_time, create_time
|
|
) VALUES (
|
|
#{id}, #{adminId}, #{valid}, #{expiresTime}, #{createTime}
|
|
)
|
|
</insert>
|
|
|
|
<update id="updateToInvalidByAdminId" parameterType="Integer">
|
|
UPDATE oauth2_refresh_token
|
|
SET valid = 0
|
|
WHERE admin_id = #{adminId}
|
|
AND valid = 1
|
|
</update>
|
|
|
|
</mapper> |