删除无用项目
This commit is contained in:
@@ -99,6 +99,32 @@ public class SpdmUserController {
|
||||
return ResponseR.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "查询用户列表(包括部门角色)")
|
||||
@PostMapping(value = "/listUserDetailByIds")
|
||||
public ResponseR listUserDetailByIds(@RequestBody UserParamDto paramDto) {
|
||||
if (CollectionUtils.isNotEmpty(paramDto.getUserIds())) {
|
||||
List<StaffPageResultDto> resultDtoList = new ArrayList<>();
|
||||
for (Long userId : paramDto.getUserIds()) {
|
||||
R<Page<StaffPageResultDto>> sysStaffPageR = remoteTenantServiceFeign.listStaffForPage(
|
||||
StaffPageQueryDto.builder()
|
||||
.tenantId(paramDto.getTenantId())
|
||||
.userId(userId)
|
||||
.current(1).size(10)
|
||||
.build(),
|
||||
paramDto.getTenantId());
|
||||
Page<StaffPageResultDto> staffPage = sysStaffPageR.getData();
|
||||
if (staffPage != null && !staffPage.getRecords().isEmpty()) {
|
||||
StaffPageResultDto staffPageResultDto = staffPage.getRecords().get(0);
|
||||
R<SysUserVO> sysUserVO = remoteUserServiceFeign.getUserByUserId(Long.valueOf(userId), SecurityConstants.FROM_IN, paramDto.getTenantId());
|
||||
staffPageResultDto.setUserInfo(sysUserVO.getData());
|
||||
resultDtoList.add(staffPageResultDto);
|
||||
}
|
||||
}
|
||||
return ResponseR.ok(resultDtoList);
|
||||
}
|
||||
return ResponseR.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "查询用户详细信息")
|
||||
@PostMapping(value = "/queryUserDetail")
|
||||
public ResponseR queryUserDetail(@RequestBody UserParamDto userParamDto) {
|
||||
|
||||
@@ -21,6 +21,9 @@ public class StaffPageQueryDto {
|
||||
@Schema(description = "昵称")
|
||||
private String nickname;
|
||||
|
||||
@Schema(description = "用户id")
|
||||
private Long userId;
|
||||
|
||||
private int current;
|
||||
private int size;
|
||||
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
package com.honeycombis.honeycom.spdm.dto;
|
||||
|
||||
import com.honeycombis.honeycom.tenant.vo.SysDeptVO;
|
||||
import com.honeycombis.honeycom.tenant.vo.SysPostVO;
|
||||
import com.honeycombis.honeycom.tenant.vo.SysRoleVO;
|
||||
import com.honeycombis.honeycom.tenant.vo.SysUserOnTenantVO;
|
||||
import com.honeycombis.honeycom.user.vo.SysUserVO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Data
|
||||
public class StaffPageResultDto {
|
||||
@@ -51,4 +59,16 @@ public class StaffPageResultDto {
|
||||
@Schema(description = "锁定标记,0未锁定,1已锁定")
|
||||
private String status;
|
||||
|
||||
@Schema(description = "用户信息")
|
||||
private SysUserVO userInfo;
|
||||
|
||||
@Schema(description="关联岗位集合")
|
||||
private List<SysDeptVO> deptList = new ArrayList<>();
|
||||
|
||||
@Schema(description="关联部门集合")
|
||||
private List<SysPostVO> postList = new ArrayList<>();
|
||||
|
||||
@Schema(description="关联role集合")
|
||||
private List<SysRoleVO> roleList = new ArrayList<>();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user