|  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @PreAuthorize("hasAuthority('manager:loc:list')") | 
 |  |  |     @ApiOperation(("获取库位使用率")) | 
 |  |  |     @PostMapping("/loc/pie/list") | 
 |  |  |     public R locPie() { | 
 |  |  |         return R.ok().add(locService.getLocPies()); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @PreAuthorize("hasAuthority('manager:loc:list')") | 
 |  |  |     @PostMapping("/loc/areaNoUse/list") | 
 |  |  |     public R areaNoUselist(@RequestBody Map<String, Object> map) { | 
 |  |  |         String locCode = map.get("locCode").toString(); | 
 |  |  |         Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getCode, locCode),false); | 
 |  |  |         List<Loc> list = locService.list(new LambdaQueryWrapper<Loc>() | 
 |  |  |                 .eq(Loc::getAreaId, loc.getAreaId()) | 
 |  |  |                 .eq(Loc::getChannel,loc.getChannel()) | 
 |  |  |                 .eq(!Objects.isNull(loc.getChannel()), Loc::getChannel,loc.getChannel()) | 
 |  |  |                 .eq(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_O.type) | 
 |  |  |         ); | 
 |  |  |         List<String> list1 = list.stream().map(obj -> obj.getCode()).collect(Collectors.toList()); |