dos 3 tháng trước cách đây
mục cha
commit
fa3c068ab7

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

@@ -94,7 +94,7 @@ public class AppGameBettingController extends BaseController{
         }
 
         if(gameBetting.getBettingGameType() == 0){
-            AppGameMoney appGameMoney = appGameMoneyService.selectAppGameMoneyById(gameBetting.getId());
+            AppGameMoney appGameMoney = appGameMoneyService.selectAppGameMoneyById(gameBetting.getMoneyId());
 
             if(appGameMoney == null){
                 return HttpRet.fail("金额对象不存在。");

+ 1 - 1
game-business/src/main/java/com/game/business/util/Common.java

@@ -42,7 +42,7 @@ public class Common {
     public static final String WS_GAME_FOUR_URL = "ws://106.55.178.72:8000/ws";
     public static final String WS_GAME_FOUR_REMARK_URL = "ws://119.29.28.54:8000/ws";
 
-    public static final String WS_GAME_FIVE_URL = "ws://1.12.232.250:8000/ws";
+    public static final String WS_GAME_FIVE_URL = "ws://175.178.245.120:8000/ws";
     public static final String WS_GAME_FIVE_REMARK_URL = "ws://119.29.4.157:8000/ws";
 
     public static Map<String, Session> sessionMap = new HashMap<>();

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

@@ -70,13 +70,13 @@
         </where>
     </select>
 
-    <select id="getBettingCount" resultType="java.util.Map">
+    <select id="getBettingCount" resultType="java.lang.Integer">
         select
         ifnull(count(1), 0) as bettingCount
         from app_game_betting where user_id = #{userId} and game_id = #{gameId} and game_date = #{gameDate}
     </select>
 
-    <select id="getBettingAmount" resultType="java.util.Map">
+    <select id="getBettingAmount" resultType="java.math.BigDecimal">
         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} and betting_item = #{bettingItem}