Parcourir la source

增加用户余额

dos il y a 2 mois
Parent
commit
f14d341178

+ 6 - 0
game-business/src/main/java/com/game/business/vo/AppAgentTeamVo.java

@@ -25,6 +25,12 @@ public class AppAgentTeamVo {
     @ApiModelProperty(value = "昵称")
     private String nickName;
 
+    @ApiModelProperty(value = "用户金币")
+    private double coin;
+
+    @ApiModelProperty(value = "用户余额")
+    private double diamondCoin;
+
     @ApiModelProperty(value = "投注金额")
     private double bettingAmount;
 

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

@@ -100,6 +100,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         select
             a.user_id as userId,
             c.username as nickName,
+            c.coin as coin,
+            c.diamond_coin as diamondCoin,
             a.pid as pid,
             (
                 select IFNULL(sum(betting_amount),0) from app_game_betting as b where b.user_id = a.user_id