| | |
| | | @PostMapping("/worldCup/getWorldCupStoreListByStoreId") |
| | | public List<WorldCupStoreVO> getWorldCupStoreListByStoreId(@RequestBody Integer storeId){ |
| | | List<WorldCupStoreVO> res = new ArrayList<>(); |
| | | |
| | | List<WorldCupStore> storeId1 = worldCupStoreService.list(new QueryWrapper<WorldCupStore>().eq("storeId", storeId)); |
| | | List<WorldCupStore> storeId1 = worldCupStoreService.list( |
| | | new QueryWrapper<WorldCupStore>() |
| | | .eq("storeId", storeId)); |
| | | for (WorldCupStore worldCupStore : storeId1) { |
| | | WorldCupStoreVO worldCupStoreVO = new WorldCupStoreVO(); |
| | | BeanUtils.copyProperties(worldCupStore,worldCupStoreVO); |
| | | // 查询世界杯活动名称 |
| | | WorldCup byId = worldCupService.getById(worldCupStore.getWorldCupId()); |
| | | if (byId.getStatus()==3 || byId.getStatus()==4){ |
| | | continue; |
| | | } |
| | | worldCupStoreVO.setName(byId.getName()); |
| | | res.add(worldCupStoreVO); |
| | | } |
| | |
| | | return ResultUtil.error("二维码不正确"); |
| | | } |
| | | Integer space_id = jsonObject.getInteger("space_id"); |
| | | Store store = storeClient.queryStoreById(space_id); |
| | | if(null == store){ |
| | | Site site = siteClient.getSite(space_id); |
| | | if(null == site){ |
| | | return ResultUtil.error("无法获取场地信息"); |
| | | } |
| | | Store store = storeClient.queryStoreById(site.getStoreId()); |
| | | String sutu_id = jsonObject.getString("sutu_id"); |
| | | TGame tGame = gameClient.getTGameBySutuId(sutu_id); |
| | | if(null == tGame){ |
| | | return ResultUtil.error("无效的游戏二维码"); |
| | | } |
| | | Site site = siteClient.getSite(tGame.getSiteId()); |
| | | Map<String, String> map = new HashMap<>(); |
| | | map.put("name", store.getName()); |
| | | map.put("address", site.getName()); |