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); + } + }