| | |
| | | return new Response().setII(1,list!=null,list,"查询当前管理员下所有用户名(不分页除内置用户外用于下拉)"); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询当前管理员下所有用户对象(不分页除内置用户外用于下拉(去除自己))") |
| | | @ApiOperation(value = "查询当前管理员下所有用户对象(不分页除内置用户外用于下拉)") |
| | | @GetMapping("getUinfByAreaIds") |
| | | public Response getUinfByAreaIds(){ |
| | | UserInf uinf= ActionUtil.getUser(); |
| | | List areaList=areaInfService.getAllAreaUser(uinf.getUid(),uinf.getUrole()); |
| | | List list=service.getUinfByAreaIds(areaList,uinf.getUid()); |
| | | List list=service.getUinfByAreaIds(areaList); |
| | | return new Response().setII(1,list!=null,list,"查询当前管理员下所有用户对象(不分页除内置用户外用于下拉)"); |
| | | } |
| | | } |
| | |
| | | return unameList; |
| | | } |
| | | //获取区域对应的用户对象(去除自己) |
| | | public List getUinfByAreaIds(List areaList,Integer uid) { |
| | | public List getUinfByAreaIds(List areaList) { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.select("distinct uid","uname"); |
| | | wrapper.in("area_id",areaList); |
| | | wrapper.ne("uid",uid); |
| | | List<AreaUser> list=mapper.selectList(wrapper); |
| | | return list; |
| | | } |