|
@@ -155,6 +155,13 @@ public class AppGameBettingController extends BaseController{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ BigDecimal gameBettingAmountCheck = new BigDecimal("0");
|
|
|
|
+ BigDecimal gameBettingAmountSum = appGameBettingService.getBettingAmount(gameBetting.getUserId(), gameBetting.getGameId(), appGame.getGameDate(), null);
|
|
|
|
+ BigDecimal gameBettingAmountAdd = gameBettingAmountSum.add(new BigDecimal(gameBetting.getBettingAmount() + ""));
|
|
|
|
+ if(gameBettingAmountAdd.compareTo(gameBettingAmountCheck) == 1){
|
|
|
|
+ return HttpRet.fail("当前期投注金额已超过限额,无法下单。");
|
|
|
|
+ }
|
|
|
|
+
|
|
// 单选
|
|
// 单选
|
|
if(gameBetting.getBettingGameType() == 0){
|
|
if(gameBetting.getBettingGameType() == 0){
|
|
|
|
|
|
@@ -175,7 +182,7 @@ public class AppGameBettingController extends BaseController{
|
|
BigDecimal bettingAmountSum = appGameBettingService.getBettingAmount(gameBetting.getUserId(), gameBetting.getGameId(), appGame.getGameDate(), gameBetting.getBettingItem());
|
|
BigDecimal bettingAmountSum = appGameBettingService.getBettingAmount(gameBetting.getUserId(), gameBetting.getGameId(), appGame.getGameDate(), gameBetting.getBettingItem());
|
|
BigDecimal bettingAmountAdd = bettingAmountSum.add(new BigDecimal(gameBetting.getBettingAmount() + ""));
|
|
BigDecimal bettingAmountAdd = bettingAmountSum.add(new BigDecimal(gameBetting.getBettingAmount() + ""));
|
|
if(bettingAmountAdd.compareTo(bettingAmountCheck) == 1){
|
|
if(bettingAmountAdd.compareTo(bettingAmountCheck) == 1){
|
|
- return HttpRet.fail("投注金额已超过限额,无法下单。");
|
|
|
|
|
|
+ return HttpRet.fail("当前期选项投注金额已超过限额,无法下单。");
|
|
}
|
|
}
|
|
|
|
|
|
gameBetting.setBettingMultiple(appGameItem.getItemMultiple());
|
|
gameBetting.setBettingMultiple(appGameItem.getItemMultiple());
|