From 9769701093fedf8726a33f914cef34e25929499a Mon Sep 17 00:00:00 2001 From: wangliwen Date: Fri, 16 Dec 2022 15:07:42 +0800 Subject: [PATCH] ... --- .../renren/modules/resource/controller/ResourceController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java index 7c8a25b1..ba61032d 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java @@ -151,7 +151,7 @@ public class ResourceController { }) public Result> page(@ApiIgnore @RequestParam Map params) { // 2022.12.16 后台过滤只出所属区域资源 - Boolean region = params.containsKey("region") ? (Boolean) params.get("region") : false; // 是否需要过滤只出用户所属区域资源 + Boolean region = params.containsKey("region") ? Boolean.parseBoolean(params.get("region").toString()) : false; // 是否需要过滤只出用户所属区域资源 while (region) { List deptIds = new ArrayList<>(); UserDetail user = SecurityUser.getUser(); // 当前用户