From 4fc587b5caa8874a32b80e8afc0f16987a62f07e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com> Date: Wed, 9 Oct 2024 09:59:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=AF=94=E8=B5=9Bid=E5=8E=BB?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=B9=B4=E5=BA=A6=E6=AF=94=E8=B5=9B=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E6=97=A0=E6=8B=A6=E6=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/jeecg/config/shiro/ShiroConfig.java | 1 + .../demo/annualcomp/controller/AnnualCompController.java | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/jeecg-boot-master/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java b/jeecg-boot-master/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java index 6c8ca454..2af610e7 100644 --- a/jeecg-boot-master/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java +++ b/jeecg-boot-master/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java @@ -75,6 +75,7 @@ public class ShiroConfig { } } // 配置不会被拦截的链接 顺序判断 + filterChainDefinitionMap.put("/annualcomp/annualComp/findndndbslist", "anon"); //根据比赛id去查询年度比赛项目无拦截 filterChainDefinitionMap.put("/annualcomp/annualComp/findndbswlj", "anon"); //年度比赛列表无拦截需要传比赛id filterChainDefinitionMap.put("/annualcomp/annualComp/findndbswxq", "anon"); //年度比赛详情无拦截需要传比赛id filterChainDefinitionMap.put("/comp/comp/complistnoxq", "anon"); //比赛详情无拦截 diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java index 949946c9..33d2939f 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java @@ -596,4 +596,13 @@ public class AnnualCompController extends JeecgController findndndbslist(@RequestParam(name = "id", required = true) String id) { + List annualComp =annualCompService.query().eq("compid",id).list(); + return Result.OK(annualComp); + } + }