fix:查询用户列表

This commit is contained in:
2026-02-03 10:25:52 +08:00
parent f76f53507e
commit 28fddc4332
10 changed files with 104 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ public class SpdmUserController {
@Operation(summary = "条件查询用户列表")
@PostMapping(value = "/listUser")
public ResponseR listUser(@RequestBody UserPageQueryDto userPageQueryDto) {
R<Page<StaffPageResultDto>> sysStaffPageR = remoteTenantServiceFeign.listStaffForPage(
R<Page<StaffPageResultDto>> sysStaffPageR = remoteTenantServiceFeign.listStaffForPage2(
StaffPageQueryDto.builder()
.tenantId(userPageQueryDto.getTenantId())
.nickname(userPageQueryDto.getNickname())

View File

@@ -47,6 +47,9 @@ public interface RemoteTenantServiceFeign {
@GetMapping("/sysStaff/page")
R<Page<StaffPageResultDto>> listStaffForPage(@SpringQueryMap StaffPageQueryDto pageQueryDto, @RequestHeader(CommonConstants.TENANT_ID) String tenantIdHeader);
@GetMapping("/sysStaff/pageForSpdm")
R<Page<StaffPageResultDto>> listStaffForPage2(@SpringQueryMap StaffPageQueryDto pageQueryDto, @RequestHeader(CommonConstants.TENANT_ID) String tenantIdHeader);
@GetMapping("/sysStaff/findStaffListByUserId")
R<List<SysStaffVO>> findStaffListByUserId(@RequestParam Long userId, @RequestHeader(SecurityConstants.FROM) String from);

View File

@@ -8,6 +8,7 @@ import com.honeycombis.honeycom.common.core.util.R;
import com.honeycombis.honeycom.common.feign.config.FeignConfig;
import com.honeycombis.honeycom.spdm.dto.UserPageQueryDto;
import com.honeycombis.honeycom.spdm.dto.UserPageResultDto;
import com.honeycombis.honeycom.tenant.vo.SysUserOnTenantVO;
import com.honeycombis.honeycom.user.vo.SysUserInfoVO;
import com.honeycombis.honeycom.user.vo.SysUserVO;
import org.springframework.cloud.openfeign.FeignClient;
@@ -32,4 +33,6 @@ public interface RemoteUserServiceFeign {
@GetMapping("/user/getUserListByIds")
R<List<SysUserVO>> getUserListByIds(@RequestParam("userIds") List<Long> userIds, @RequestHeader(SecurityConstants.FROM) String from, @RequestHeader(CommonConstants.TENANT_ID) String tenantId);
@PostMapping("/user/findStaffUserByIdsForSpdm")
R<List<SysUserOnTenantVO>> findStaffUserByIdsForSpdm(@RequestBody List<Long> userIds);
}