diff --git a/backend/src/main/java/io/metersphere/service/UserRoleService.java b/backend/src/main/java/io/metersphere/service/UserRoleService.java index a9d48fdf0c..2cdbb8963e 100644 --- a/backend/src/main/java/io/metersphere/service/UserRoleService.java +++ b/backend/src/main/java/io/metersphere/service/UserRoleService.java @@ -45,11 +45,11 @@ public class UserRoleService { for (int i = 0; i < collect.size(); i++) { Map map = new HashMap<>(2); map.put("id", collect.get(i)); - map.put("Ids", new ArrayList<>()); + map.put("ids", new ArrayList<>()); for (int j = 0; j < userRoles.size(); j++) { String role = userRoles.get(j).getRoleId(); if (StringUtils.equals(role, collect.get(i))) { - List ids = (List) map.get("Ids"); + List ids = (List) map.get("ids"); ids.add(userRoles.get(j).getSourceId()); } } diff --git a/backend/src/main/java/io/metersphere/service/UserService.java b/backend/src/main/java/io/metersphere/service/UserService.java index 4a66cc868a..f96c460205 100644 --- a/backend/src/main/java/io/metersphere/service/UserService.java +++ b/backend/src/main/java/io/metersphere/service/UserService.java @@ -80,10 +80,10 @@ public class UserService { userRole.setSourceId("adminSourceId"); userRoleMapper.insertSelective(userRole); } else { -// if (!map.keySet().contains("Ids")) { +// if (!map.keySet().contains("ids")) { // MSException.throwException(role + " no source id"); // } - List list = (List) map.get("Ids"); + List list = (List) map.get("ids"); for (int j = 0; j < list.size(); j++) { UserRole userRole1 = new UserRole(); userRole1.setId(UUID.randomUUID().toString()); diff --git a/frontend/src/business/components/settings/system/User.vue b/frontend/src/business/components/settings/system/User.vue index 3a36fba15f..6e0bcebc91 100644 --- a/frontend/src/business/components/settings/system/User.vue +++ b/frontend/src/business/components/settings/system/User.vue @@ -87,10 +87,10 @@
- +
- +
- +
- + - +
- +
- +
- +
- +