Commit 169b0865 authored by wdy's avatar wdy

Merge branch 'wangdingyi' into 'dev'

查询检验人员列表

See merge request !399
parents 2e064def 3ba048b5
......@@ -62,6 +62,16 @@ public class SysUserController extends BaseController
@Autowired
private ISysPostService postService;
/**
* 主检角色id
*/
private static final Long PRIMARY_INSPECTION = 112L;
/**
* 检验员角色id
*/
private static final Long INSPECTION = 106L;
/**
* 获取用户列表
*/
......@@ -96,6 +106,16 @@ public class SysUserController extends BaseController
}
}
@ApiOperation("通过角色名获取用户信息")
@PostMapping("/getUserByRoleInspection")
public R<List<SysUser>> getUserByRoleInspection() {
List<SysUser> PrimaryInspectionList = userService.selectUserByRoleInDept(PRIMARY_INSPECTION);
List<SysUser> InspectionList = userService.selectUserByRoleInDept(INSPECTION);
List<SysUser> list = (List<SysUser>) CollUtil.addAll(PrimaryInspectionList, InspectionList);
return R.ok(list);
}
/**
* 获取主检验人员列表
* @return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment