| | |
| | | package com.ruoyi.system.controller.sys; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | |
| | | return R.ok(userIds); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据部门id获取用户列表 |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | @PostMapping("/getUsersByDeptId") |
| | | R<List<SysUser>> getUsersByDeptId(@RequestBody Long deptId){ |
| | | List<SysUser> list = userService.list(new QueryWrapper<SysUser>().eq("dept_id", deptId).eq("del_flag", 0)); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取用户列表 |
| | | */ |