Commit c83290af by zhiwj

Merge branch 'developer' of…

Merge branch 'developer' of http://115.159.76.241/base_platform_enterprise/gic-platform-auth into developer
parents d5c0ac22 fcabbefa
......@@ -22,10 +22,9 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.*;
import java.util.stream.Collector;
import java.util.stream.Collectors;
/**
* @author guojx
......@@ -51,6 +50,8 @@ public class UserApiServiceImpl implements UserApiService {
private AccountGroupRelService accountGroupRelService;
@Autowired
private AccountGroupService accountGroupService;
@Autowired
private AuditedGroupUserRelService auditedGroupUserRelService;
@Transactional(rollbackFor = Exception.class)
@Override
......@@ -224,6 +225,11 @@ public class UserApiServiceImpl implements UserApiService {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "用户类型错误,不是GIC管理员");
}
UserDTO result = EntityUtil.changeEntityNew(UserDTO.class, tabUser);
//受审组
List<Integer> userGroupIdList = auditedGroupUserRelService.listAuditedGroupByUserId(tabUser.getEnterpriseId(),
userId);
result.setUserGroupIds(Optional.ofNullable(userGroupIdList).orElse(new ArrayList<>()).stream()
.map(e -> e.toString()).collect(Collectors.joining(",")));
//角色集
List<UserRoleDTO> userRoleDTOList = userRoleService.listUserRoleByUserId(userId);
StringBuilder userRoleStr = new StringBuilder();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment