| | |
| | | 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); |
| | | } |
| | | } |