refactor: 修改资源池日志更新内容组织成员排序
This commit is contained in:
parent
e3b4dae516
commit
1b700915fe
|
@ -335,7 +335,7 @@ public class TestResourcePoolService {
|
||||||
pool.getCreateUser(),
|
pool.getCreateUser(),
|
||||||
OperationLogType.UPDATE.name(),
|
OperationLogType.UPDATE.name(),
|
||||||
OperationLogModule.SYSTEM_TEST_RESOURCE_POOL,
|
OperationLogModule.SYSTEM_TEST_RESOURCE_POOL,
|
||||||
"编辑全局用户组对应的权限配置");
|
"更新资源池配置");
|
||||||
|
|
||||||
dto.setPath("/update");
|
dto.setPath("/update");
|
||||||
dto.setMethod(HttpMethodConstants.POST.name());
|
dto.setMethod(HttpMethodConstants.POST.name());
|
||||||
|
|
|
@ -257,6 +257,7 @@ public class OrganizationService {
|
||||||
List<String> sourceIds = new ArrayList<>(projectIdList);
|
List<String> sourceIds = new ArrayList<>(projectIdList);
|
||||||
sourceIds.add(organizationId);
|
sourceIds.add(organizationId);
|
||||||
userRoleRelationExample.createCriteria().andUserIdIn(new ArrayList<>(userMap.keySet())).andSourceIdIn(sourceIds);
|
userRoleRelationExample.createCriteria().andUserIdIn(new ArrayList<>(userMap.keySet())).andSourceIdIn(sourceIds);
|
||||||
|
userRoleRelationExample.setOrderByClause("create_time desc");
|
||||||
List<UserRoleRelation> userRoleRelationsByUsers = userRoleRelationMapper.selectByExample(userRoleRelationExample);
|
List<UserRoleRelation> userRoleRelationsByUsers = userRoleRelationMapper.selectByExample(userRoleRelationExample);
|
||||||
//根据关系表查询出用户的关联组织和用户组
|
//根据关系表查询出用户的关联组织和用户组
|
||||||
Map<String, List<IdNameStructureDTO>> userIdprojectIdMap = new HashMap<>();
|
Map<String, List<IdNameStructureDTO>> userIdprojectIdMap = new HashMap<>();
|
||||||
|
|
Loading…
Reference in New Issue