From f9047827fef65fc673fa4510017a79f9ea879561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com> Date: Tue, 24 Sep 2024 15:04:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E7=9A=84=E4=BA=94=E6=8B=A6?= =?UTF-8?q?=E6=88=AA=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jeecg/config/shiro/ShiroConfig.java | 3 +++ .../controller/AnnualCompPointController.java | 8 ++++++++ .../demo/annualcomp/controller/AnnualCompController.java | 7 ++++++- .../modules/demo/comp/controller/CompController.java | 7 +++++++ 4 files changed, 24 insertions(+), 1 deletion(-) 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 05195019..6c8ca454 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 @@ -76,8 +76,11 @@ public class ShiroConfig { } // 配置不会被拦截的链接 顺序判断 filterChainDefinitionMap.put("/annualcomp/annualComp/findndbswlj", "anon"); //年度比赛列表无拦截需要传比赛id + filterChainDefinitionMap.put("/annualcomp/annualComp/findndbswxq", "anon"); //年度比赛详情无拦截需要传比赛id + filterChainDefinitionMap.put("/comp/comp/complistnoxq", "anon"); //比赛详情无拦截 filterChainDefinitionMap.put("/comp/comp/complistnolj", "anon"); //比赛列表无拦截 filterChainDefinitionMap.put("/AnnualCompPoint/annualCompPoint/findcompp", "anon"); //查询是已经通过审核的且在报名时间段之内的年度比赛项目需要穿年度比赛id + filterChainDefinitionMap.put("/AnnualCompPoint/annualCompPoint/findcomppxq", "anon"); //查询是已经通过审核的且在报名时间段之内的年度比赛项目详情需要穿年度比赛id filterChainDefinitionMap.put("/sysconfiguration/sysConfiguration/**", "anon"); //系统配置 filterChainDefinitionMap.put("/sys/cas/client/validateLogin", "anon"); //cas验证登录 filterChainDefinitionMap.put("/sys/randomImage/**", "anon"); //登录验证码接口排除 diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java index 2d08767e..4a4a4df9 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java @@ -1557,4 +1557,12 @@ public class AnnualCompPointController extends JeecgController findcomppxq(@RequestParam(name = "id", required = true) String id) { + AnnualCompPoint annualCompPoint = annualCompPointService.getById(id); + return Result.OK(annualCompPoint); + } + + } 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 30a455f4..b9113822 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 @@ -586,6 +586,11 @@ public class AnnualCompController extends JeecgController findndbswxq(@RequestParam(name = "id", required = true) String id) { + AnnualComp annualComp =annualCompService.getById(id); + return Result.OK(annualComp); + } } diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java index 87a56161..4c63d231 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java @@ -450,5 +450,12 @@ public class CompController extends JeecgController { return Result.OK(compList); } + @ApiOperation(value = "获取比赛详情无拦截", notes = "获取比赛详情无拦截") + @GetMapping(value = "/complistnoxq") + public Result complistnoxq(@RequestParam(name = "id", required = true) String id) { + Comp comp = compService.getById(id); + return Result.OK(comp); + } + }