根据比赛id去查询年度比赛项目无拦截

gst4base
王家东 2 months ago
parent cc0aeddef3
commit 4fc587b5ca
  1. 1
      jeecg-boot-master/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java
  2. 9
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.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/findndbswlj", "anon"); //年度比赛列表无拦截需要传比赛id
filterChainDefinitionMap.put("/annualcomp/annualComp/findndbswxq", "anon"); //年度比赛详情无拦截需要传比赛id filterChainDefinitionMap.put("/annualcomp/annualComp/findndbswxq", "anon"); //年度比赛详情无拦截需要传比赛id
filterChainDefinitionMap.put("/comp/comp/complistnoxq", "anon"); //比赛详情无拦截 filterChainDefinitionMap.put("/comp/comp/complistnoxq", "anon"); //比赛详情无拦截

@ -596,4 +596,13 @@ public class AnnualCompController extends JeecgController<AnnualComp, IAnnualCom
return Result.OK(annualComp); return Result.OK(annualComp);
} }
//使用比赛id去查询年度比赛的list,无拦截
@ApiOperation(value = "使用比赛id去查询年度比赛的list,无拦截", notes = "使用比赛id去查询年度比赛的list,无拦截")
@GetMapping(value = "/findndndbslist")
public Result<?> findndndbslist(@RequestParam(name = "id", required = true) String id) {
List<AnnualComp> annualComp =annualCompService.query().eq("compid",id).list();
return Result.OK(annualComp);
}
} }

Loading…
Cancel
Save