|
@@ -303,11 +303,7 @@ public class RoleServiceImpl extends SuperService {
|
|
|
List<AuthModel> authModels = new ArrayList<>();
|
|
List<AuthModel> authModels = new ArrayList<>();
|
|
|
|
|
|
|
|
if (organizationType != null) {
|
|
if (organizationType != null) {
|
|
|
-// com.github.microservice.auth.client.content.ResultContent<Page<AuthResourcesNameModel>> content = authResourcesNameService.list(organizationType, PageRequest.of(0, 200, Sort.by(Sort.Order.desc(
|
|
|
|
|
-// "createTime"))));
|
|
|
|
|
-// authResourcesNameModels = content.getContent().getContent();
|
|
|
|
|
-
|
|
|
|
|
- com.github.microservice.auth.client.content.ResultContent<List<AuthResourcesNameModel>> content = authResourcesNameService.getAll(organizationType);
|
|
|
|
|
|
|
+ com.github.microservice.auth.client.content.ResultContent<List<AuthResourcesNameModel>> content = authResourcesNameService.getAll(organizationType);
|
|
|
authResourcesNameModels = content.getContent();
|
|
authResourcesNameModels = content.getContent();
|
|
|
|
|
|
|
|
authResourcesNameModels.forEach(it -> {
|
|
authResourcesNameModels.forEach(it -> {
|
|
@@ -316,6 +312,7 @@ public class RoleServiceImpl extends SuperService {
|
|
|
String[] split = remark.split("_");
|
|
String[] split = remark.split("_");
|
|
|
if (split.length >= 2) {
|
|
if (split.length >= 2) {
|
|
|
AuthModel authModel = new AuthModel();
|
|
AuthModel authModel = new AuthModel();
|
|
|
|
|
+ authModel.setId(CommonUtil.UUID());
|
|
|
authModel.setValue(it.getName());
|
|
authModel.setValue(it.getName());
|
|
|
authModel.setName(split[1]);
|
|
authModel.setName(split[1]);
|
|
|
authModel.setModularName(split[0]);
|
|
authModel.setModularName(split[0]);
|
|
@@ -350,6 +347,7 @@ public class RoleServiceImpl extends SuperService {
|
|
|
List<ModularModel> modularModels = new ArrayList<>();
|
|
List<ModularModel> modularModels = new ArrayList<>();
|
|
|
maps.forEach((key, val) -> {
|
|
maps.forEach((key, val) -> {
|
|
|
ModularModel modularModel = new ModularModel();
|
|
ModularModel modularModel = new ModularModel();
|
|
|
|
|
+ modularModel.setId(CommonUtil.UUID());
|
|
|
modularModel.setName(key);
|
|
modularModel.setName(key);
|
|
|
// 排序
|
|
// 排序
|
|
|
if (ObjectUtils.isNotEmpty(val)) {
|
|
if (ObjectUtils.isNotEmpty(val)) {
|