|  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @PreAuthorize("hasAuthority('manager:deviceSite:list')") | 
 |  |  |     @PostMapping("/selectStaList/page") | 
 |  |  |     @PostMapping("/selectStaList/list") | 
 |  |  |     public R selectStaList(@RequestBody Map<String, Object> map) { | 
 |  |  |         List<String> longs = null; | 
 |  |  |         if (map.get("type") != null) { | 
 |  |  |             longs = JSONArray.parseArray(map.get("type").toString(), String.class); | 
 |  |  |             map.entrySet().removeIf(next -> next.getKey().equals("type")); | 
 |  |  |         } | 
 |  |  |         BaseParam baseParam = buildParam(map, BaseParam.class); | 
 |  |  |         PageParam<DeviceSite, BaseParam> pageParam = new PageParam<>(baseParam, DeviceSite.class); | 
 |  |  |  | 
 |  |  |         QueryWrapper<DeviceSite> queryWrapper = pageParam.buildWrapper(true); | 
 |  |  |         queryWrapper.lambda().in(DeviceSite::getType, longs); | 
 |  |  |         PageParam<DeviceSite, BaseParam> page = deviceSiteService.page(pageParam, queryWrapper); | 
 |  |  |         return R.ok().add(page ); | 
 |  |  |         List<DeviceSite> list = deviceSiteService.list(new LambdaQueryWrapper<DeviceSite>().in(DeviceSite::getType, longs)); | 
 |  |  |         return R.ok().add(list); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @PreAuthorize("hasAuthority('manager:deviceSite:list')") |