Roles dynamic - >category

This commit is contained in:
MaxKey
2022-10-08 09:59:02 +08:00
parent 2391e0612a
commit 582fbe1463
15 changed files with 127 additions and 94 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -79,7 +79,7 @@ public class RolesService extends JpaBaseService<Roles> implements Serializable
}
public void refreshDynamicRoles(Roles dynamicRole){
if(dynamicRole.getDynamic().equals(ConstsStatus.ACTIVE+"")) {
if(dynamicRole.getCategory().equals(Roles.Category.DYNAMIC)) {
boolean isDynamicTimeSupport = false;
boolean isBetweenEffectiveTime = false;
if(StringUtils.isNotBlank(dynamicRole.getResumeTime())

View File

@@ -16,7 +16,7 @@
rm.id as id,
r.id as roleid,
r.rolename,
r.dynamic dynamic,
r.category category,
u.username,
u.usertype,
u.windowsaccount,