| | |
| | | |
| | | |
| | | /** |
| | | * 添加社区世界杯 |
| | | * @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 |
| | |
| | | * 支付方式(1=免费,2=现金支付,3=玩湃币支付,4=课时支付) |
| | | */ |
| | | @TableField("payType") |
| | | private Integer payType; |
| | | private String payType; |
| | | /** |
| | | * 现金 |
| | | */ |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @TableField("createTime") |
| | | private Date createTime; |
| | | /** |
| | | * 已比赛次数 |
| | | */ |
| | | @TableField("matchNumber") |
| | | private Integer matchNumber; |
| | | } |
| | |
| | | worldCupPayment.setEntrant(paymentWorldCup.getIds()); |
| | | int num = JSON.parseArray(paymentWorldCup.getIds()).size(); |
| | | //不免费 |
| | | if(worldCup.getPayType() != 0){ |
| | | String payType1 = worldCup.getPayType().split(",")[0]; |
| | | if(!"0".equals(payType1)){ |
| | | Integer payType = paymentWorldCup.getPayType(); |
| | | //微信 |
| | | if(payType == 1){ |