puzhibing
2024-03-04 912bf8aad828c5cde67720864c8697d03a1a7bad
cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java
@@ -451,7 +451,7 @@
            @ApiImplicitParam(name = "id", value = "列表中的id", required = true, dataType = "String"),
            @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....")
    })
    public ResultUtil<MyWorldCupInfo> getMyWorldCupInfo(@RequestBody String id){
    public ResultUtil<MyWorldCupInfo> getMyWorldCupInfo(String id){
        MyWorldCupInfo myWorldCupInfo = worldCupPaymentParticipantService.getMyWorldCupInfo(id);
        return ResultUtil.success(myWorldCupInfo);
    }
@@ -504,8 +504,44 @@
     */
    @ResponseBody
    @PostMapping("/worldCup/winCount")
    public Integer winCount(Integer studentId){
    public Integer winCount(@RequestBody Integer studentId){
        return worldCupCompetitorService.count(new QueryWrapper<WorldCupCompetitor>()
                .eq("participantId", studentId).eq("participantType", 1).eq("matchResult", 1));
    }
    /**
     * 添加社区世界杯
     * @param worldCup
     * @return
     */
    @ResponseBody
    @PostMapping("/worldCup/addWorldCup")
    public Integer addWorldCup(@RequestBody WorldCup worldCup){
        worldCupService.save(worldCup);
        return worldCup.getId();
    }
    /**
     * 添加社区世界杯和门店关系数据
     * @param worldCupStore
     */
    @ResponseBody
    @PostMapping("/worldCup/addWorldCupStore")
    public void addWorldCupStore(@RequestBody WorldCupStore worldCupStore){
        worldCupStoreService.save(worldCupStore);
    }
    /**
     * 获取比赛管理列表数据
     * @param worldCupListAll
     * @return
     */
    @ResponseBody
    @PostMapping("/worldCup/getWorldCupListAll")
    public Map<String, Object> getWorldCupListAll(@RequestBody WorldCupListAll worldCupListAll){
        return worldCupService.getWorldCupListAll(worldCupListAll);
    }
}