fix:角色授权修改
This commit is contained in:
@@ -262,7 +262,8 @@ CREATE TABLE IF NOT EXISTS tms_role_ukey_binding (
|
||||
unbound_at DATETIME(3) NULL,
|
||||
create_time DATETIME(3) NOT NULL,
|
||||
update_time DATETIME(3) NOT NULL,
|
||||
UNIQUE KEY uk_tms_role_ukey_binding_role_uid (role_code, uid),
|
||||
UNIQUE KEY uk_tms_role_ukey_binding_role_uid_serial (role_code, uid, ukey_serial),
|
||||
KEY idx_tms_role_ukey_binding_role_uid_status (role_code, uid, status),
|
||||
KEY idx_tms_role_ukey_binding_role_status (role_code, status)
|
||||
);
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
WHERE role_code = #{roleCode}
|
||||
AND uid = #{uid}
|
||||
AND status = 'ACTIVE'
|
||||
LIMIT 1
|
||||
ORDER BY bound_at DESC, id DESC
|
||||
</select>
|
||||
|
||||
<select id="selectActiveByRoleCode" parameterType="string" resultMap="RoleUkeyBindingResultMap">
|
||||
|
||||
Reference in New Issue
Block a user