|
@@ -85,6 +85,22 @@ public class ZZoneController extends SuperController<ZZoneService, Long, ZZone,
|
|
|
return success(baseService.list(queryWrapper));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "查询区域管理", notes = "查询区域管理")
|
|
|
+ @GetMapping("/zoneListExceptBz")
|
|
|
+ public R<List<ZZone>> zoneListExceptBz() {
|
|
|
+ Long userId = BaseContextHandler.getUserId();
|
|
|
+ //获取用户权限访问机构
|
|
|
+ Map<String, Object> orgMap = userService.getDataScopeById(userId);
|
|
|
+ List<Long> orgIds = orgMap.containsKey("orgIds")? (List)orgMap.get("orgIds") : Lists.newArrayList();
|
|
|
+ QueryWrapper<ZZone> queryWrapper = new QueryWrapper();
|
|
|
+ if(CollectionUtil.isNotEmpty(orgIds)){
|
|
|
+ queryWrapper = new QueryWrapper<ZZone>().in("org_id", orgIds);
|
|
|
+ }
|
|
|
+ //取出掉保障
|
|
|
+ queryWrapper.notLike("name","保障");
|
|
|
+ return success(baseService.list(queryWrapper));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "查询区域管理", notes = "查询区域管理")
|
|
|
@GetMapping("/allSelect")
|
|
|
public R<List<ZZone>> allSelect() {
|