kk hace 3 meses
padre
commit
e4c0b5ad53

+ 1 - 1
game-business/src/main/java/com/game/business/controller/AppGameBettingController.java

@@ -155,7 +155,7 @@ public class AppGameBettingController extends BaseController{
             }
         }
 
-        BigDecimal gameBettingAmountCheck = new BigDecimal("0");
+        BigDecimal gameBettingAmountCheck = new BigDecimal(appGame.getBettingMaxMoney() + "");
         BigDecimal gameBettingAmountSum = appGameBettingService.getBettingAmount(gameBetting.getUserId(), gameBetting.getGameId(), appGame.getGameDate(), null);
         BigDecimal gameBettingAmountAdd = gameBettingAmountSum.add(new BigDecimal(gameBetting.getBettingAmount() + ""));
         if(gameBettingAmountAdd.compareTo(gameBettingAmountCheck) == 1){

+ 1 - 1
game-business/src/main/resources/mapper/business/AppGameBettingMapper.xml

@@ -83,7 +83,7 @@
         select
             ifnull(sum(betting_amount), 0.00) as bettingAmount
         from app_game_betting where user_id = #{userId} and game_id = #{gameId} and game_date = #{gameDate}
-        <if test="bettingItem != null">
+        <if test="bettingItem != null and bettingItem != ''">
             and betting_item = #{bettingItem}
         </if>
     </select>