| | |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据sutuid获取游戏数据 |
| | | * @param sutuId |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/getTGameBySutuId") |
| | | public TGame getTGameBySutuId(@RequestBody String sutuId){ |
| | | return gameService.getOne(new QueryWrapper<TGame>().eq("blue", sutuId).or() |
| | | .eq("red", sutuId).eq("state", 0)); |
| | | } |
| | | } |