Commit 6207fb8a by 陶光胜

Merge branch 'developer' of…

Merge branch 'developer' of http://115.159.76.241/base_platform_enterprise/gic-platform-auth into developer
parents e6bb1e0c c83290af
...@@ -11,7 +11,7 @@ import com.gic.api.base.commons.ServiceResponse; ...@@ -11,7 +11,7 @@ import com.gic.api.base.commons.ServiceResponse;
public class ValidSplitUtils { public class ValidSplitUtils {
public static ServiceResponse<String[]> validStr(String param) { public static ServiceResponse<String[]> validStr(String param) {
if (isNumericZidai(param.replaceAll(",", ""))) { if (!isNumericZidai(param.replaceAll(",", ""))) {
return ServiceResponse.failure("0005", "数据格式有误,不是英文逗号隔开的数据"); return ServiceResponse.failure("0005", "数据格式有误,不是英文逗号隔开的数据");
} }
String[] strArr = param.split(","); String[] strArr = param.split(",");
......
...@@ -22,10 +22,9 @@ import org.springframework.stereotype.Service; ...@@ -22,10 +22,9 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport; import org.springframework.transaction.interceptor.TransactionAspectSupport;
import java.util.ArrayList; import java.util.*;
import java.util.Collections; import java.util.stream.Collector;
import java.util.Date; import java.util.stream.Collectors;
import java.util.List;
/** /**
* @author guojx * @author guojx
...@@ -51,6 +50,8 @@ public class UserApiServiceImpl implements UserApiService { ...@@ -51,6 +50,8 @@ public class UserApiServiceImpl implements UserApiService {
private AccountGroupRelService accountGroupRelService; private AccountGroupRelService accountGroupRelService;
@Autowired @Autowired
private AccountGroupService accountGroupService; private AccountGroupService accountGroupService;
@Autowired
private AuditedGroupUserRelService auditedGroupUserRelService;
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@Override @Override
...@@ -224,6 +225,11 @@ public class UserApiServiceImpl implements UserApiService { ...@@ -224,6 +225,11 @@ public class UserApiServiceImpl implements UserApiService {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "用户类型错误,不是GIC管理员"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "用户类型错误,不是GIC管理员");
} }
UserDTO result = EntityUtil.changeEntityNew(UserDTO.class, tabUser); 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); List<UserRoleDTO> userRoleDTOList = userRoleService.listUserRoleByUserId(userId);
StringBuilder userRoleStr = new StringBuilder(); 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