fix(admin): 代码合并缺失 list 接口

This commit is contained in:
冷冷 committed 2024-09-06 14:51:29 +08:00
1 parent 23f93e9318
commit 39e7ab3372
1 file changed
+11
@@ -271,4 +271,15 @@ public class SysUserController {
return R.ok(userService.listUserIdByDeptIds(CollUtil.toList(deptIdList)));
}
/**
* 根据IDS获取用户列表
*
* @param userIds ID列表
* @return 用户列表
*/
@GetMapping("/list")
public R<List<SysUser>> getUserListByIds(@RequestParam("userIds") List<Long> userIds) {
return R.ok(userService.list(Wrappers.<SysUser>lambdaQuery().in(SysUser::getUserId, userIds)));
}
}