puzhibing
2024-03-01 32ca180560a3e09d0a4b1ab7567ea70180ef8070
修改bug
1个文件已修改
8 ■■■■ 已修改文件
cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cloud-server-communityWorldCup/src/main/java/com/dsh/communityWorldCup/controller/WorldCupController.java
@@ -183,7 +183,7 @@
            @ApiImplicitParam(name = "code", value = "扫码结果", required = true, dataType = "String"),
            @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....")
    })
    public ResultUtil<Map<String, String>> getDeviceInformation(@RequestBody String code){
    public ResultUtil<Map<String, String>> getDeviceInformation(String code){
        /**
         * {
         *     "scan_type": 0, // 扫码类型:1000:游戏,1001:课程,1002:场地
@@ -265,7 +265,7 @@
            @ApiImplicitParam(name = "id", value = "世界杯id", required = true, dataType = "int"),
            @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....")
    })
    public ResultUtil<WorldCupInfo> getWorldCupInfo(@RequestBody Integer id){
    public ResultUtil<WorldCupInfo> getWorldCupInfo(Integer id){
        WorldCupInfo worldCupInfo = worldCupService.getWorldCupInfo(id);
        return ResultUtil.success(worldCupInfo);
    }
@@ -383,7 +383,7 @@
     * @return
     */
    @PostMapping("/worldCup/getWorldCupStoreList")
    public List<WorldCupStore> getWorldCupStoreList(@RequestBody Integer storeId){
    public List<WorldCupStore> getWorldCupStoreList(Integer storeId){
        List<WorldCup> worldCupList = worldCupService.list(new QueryWrapper<WorldCup>().in("status", Arrays.asList(1, 2)));
        List<Integer> collect = worldCupList.stream().map(WorldCup::getId).collect(Collectors.toList());
        return worldCupStoreService.list(new QueryWrapper<WorldCupStore>().eq("storeId", storeId).in("worldCupId", collect));
@@ -448,7 +448,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);
    }