fix:查询用户

This commit is contained in:
2026-02-04 18:39:16 +08:00
parent 0f70f2b5b2
commit 732de1b04e
2 changed files with 9 additions and 2 deletions

View File

@@ -30,8 +30,8 @@ public interface RemoteUserServiceFeign {
@GetMapping("/user/getUserListByUserName")
R<List<SysUserVO>> getUserListByUserName(@RequestParam("username") String userName);
@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/getUserListByIdsForSpdm")
R<List<SysUserVO>> getUserListByIds(@RequestBody 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);

View File

@@ -176,6 +176,13 @@ public class SysUserController {
return R.ok(sysUserService.findByIds(userIds));
}
@Inner
@Operation(summary = "根据用户Id集合获取用户信息" , description = "根据用户Id集合获取用户信息" )
@PostMapping("/getUserListByIdsForSpdm")
public R<List<SysUserVO>> getUserListByIdsForSpdm(@RequestBody List<Long> userIds) {
return R.ok(sysUserService.findByIds(userIds));
}
/**
* 根据用户Id获取用户信息