|
|
@@ -38,7 +38,6 @@ import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.core.tool.constant.BladeConstant;
|
|
|
import org.springblade.core.tool.constant.RoleConstant;
|
|
|
import org.springblade.core.tool.utils.*;
|
|
|
-import org.springblade.system.entity.Role;
|
|
|
import org.springblade.system.entity.Tenant;
|
|
|
import org.springblade.system.feign.ISysClient;
|
|
|
import org.springblade.system.feign.ITenantClient;
|
|
|
@@ -126,7 +125,17 @@ public class UserController {
|
|
|
lambdaQueryWrapper.in(User::getId, userIdList);
|
|
|
}
|
|
|
}
|
|
|
- return R.data(userService.list(lambdaQueryWrapper));
|
|
|
+
|
|
|
+ List<UserVO> userList = UserWrapper.build().listVO(userService.list(lambdaQueryWrapper));
|
|
|
+ if (StringUtil.isNotBlank(userVO.getSource())) {
|
|
|
+ userList.forEach(user -> {
|
|
|
+ R<List<String>> deptNameR = sysClient.getDeptNames(user.getDeptId());
|
|
|
+ if (deptNameR.isSuccess()) {
|
|
|
+ user.setDeptName(String.join(",", deptNameR.getData()));
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return R.data(userList);
|
|
|
}
|
|
|
|
|
|
@GetMapping("/audit-user-list")
|