fix:u盾绑定
This commit is contained in:
@@ -79,4 +79,8 @@
|
||||
AND expires_at IS NOT NULL
|
||||
AND expires_at > #{now}
|
||||
</select>
|
||||
|
||||
<delete id="deleteAll">
|
||||
DELETE FROM tms_auth_session
|
||||
</delete>
|
||||
</mapper>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
WHERE role_code = #{roleCode}
|
||||
AND uid = #{uid}
|
||||
AND status = 'ACTIVE'
|
||||
ORDER BY bound_at DESC, id DESC
|
||||
ORDER BY bound_at ASC, id ASC
|
||||
</select>
|
||||
|
||||
<select id="selectActiveByRoleCode" parameterType="string" resultMap="RoleUkeyBindingResultMap">
|
||||
@@ -52,6 +52,28 @@
|
||||
FROM tms_role_ukey_binding
|
||||
WHERE role_code = #{roleCode}
|
||||
AND status = 'ACTIVE'
|
||||
ORDER BY uid ASC
|
||||
ORDER BY uid ASC, bound_at ASC, id ASC
|
||||
</select>
|
||||
|
||||
<select id="selectActiveByUkeyIdentity" resultMap="RoleUkeyBindingResultMap">
|
||||
SELECT id,
|
||||
role_code,
|
||||
uid,
|
||||
ukey_serial,
|
||||
ukey_pubkey,
|
||||
issuer_sign,
|
||||
status,
|
||||
bound_at,
|
||||
unbound_at,
|
||||
create_time,
|
||||
update_time
|
||||
FROM tms_role_ukey_binding
|
||||
WHERE status = 'ACTIVE'
|
||||
AND (ukey_serial = #{ukeySerial} OR ukey_pubkey = #{ukeyPubkey})
|
||||
ORDER BY bound_at DESC, id DESC
|
||||
</select>
|
||||
|
||||
<delete id="deleteAll">
|
||||
DELETE FROM tms_role_ukey_binding
|
||||
</delete>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user