Browse Source

添加字段

dos 2 months ago
parent
commit
c2e3e7aa38

+ 11 - 0
game-business/src/main/java/com/game/business/domain/AppGame.java

@@ -68,6 +68,17 @@ private static final long serialVersionUID=1L;
     @TableField(value = "logo_url")
     private String logoUrl;
 
+
+    @ApiModelProperty(value = "直播间图片")
+    @Excel(name = "直播间图片")
+    @TableField(value = "live_img_url")
+    public String liveImgUrl;
+
+    @ApiModelProperty(value = "我的页面图片")
+    @Excel(name = "我的页面图片")
+    @TableField(value = "my_img_url")
+    public String myImgUrl;
+
     /** 游戏路径 */
     @ApiModelProperty(value = "游戏路径")
     @Excel(name = "游戏路径")

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

@@ -12,6 +12,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="gameDate"    column="game_date"    />
         <result property="gameTime"    column="game_time"    />
         <result property="logoUrl"    column="logo_url"    />
+        <result property="liveImgUrl"    column="live_img_url"    />
+        <result property="myImgUrl"    column="my_img_url"    />
         <result property="gamePath"    column="game_path"    />
         <result property="status"    column="status"    />
         <result property="createTime"    column="create_time"    />
@@ -23,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectAppGameVo">
-        select id, name, code, classify_id, game_date, game_time, logo_url, game_path, status, create_time, orderno, game_expand1, game_expand2, game_expand3, game_expand4 from app_game
+        select id, name, code, classify_id, game_date, game_time, logo_url,live_img_url,my_img_url, game_path, status, create_time, orderno, game_expand1, game_expand2, game_expand3, game_expand4 from app_game
     </sql>
 
     <select id="selectAppGameList" parameterType="com.game.business.domain.AppGame" resultMap="AppGameResult">
@@ -34,6 +36,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="gameDate != null  and gameDate != ''"> and game_date like concat('%', #{gameDate}, '%')</if>
             <if test="classifyId != null "> and classify_id = #{classifyId}</if>
             <if test="logoUrl != null  and logoUrl != ''"> and logo_url = #{logoUrl}</if>
+            <if test="liveImgUrl != null  and liveImgUrl != ''"> and live_img_url = #{liveImgUrl}</if>
+            <if test="myImgUrl != null  and myImgUrl != ''"> and my_img_url = #{myImgUrl}</if>
             <if test="gamePath != null  and gamePath != ''"> and game_path = #{gamePath}</if>
             <if test="status != null "> and status = #{status}</if>
             <if test="orderno != null "> and orderno = #{orderno}</if>
@@ -57,6 +61,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="code != null">code,</if>
             <if test="classifyId != null">classify_id,</if>
             <if test="logoUrl != null">logo_url,</if>
+            <if test="liveImgUrl != null">live_img_url,</if>
+            <if test="myImgUrl != null">my_img_url,</if>
             <if test="gamePath != null">game_path,</if>
             <if test="status != null">status,</if>
             <if test="createTime != null">create_time,</if>
@@ -72,6 +78,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="code != null">#{code},</if>
             <if test="classifyId != null">#{classifyId},</if>
             <if test="logoUrl != null">#{logoUrl},</if>
+            <if test="liveImgUrl != null">#{live_img_url},</if>
+            <if test="myImgUrl != null">#{my_img_url},</if>
             <if test="gamePath != null">#{gamePath},</if>
             <if test="status != null">#{status},</if>
             <if test="createTime != null">#{createTime},</if>
@@ -92,6 +100,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="gameDate != null">game_date = #{gameDate},</if>
             <if test="gameTime != null">game_time = #{gameTime},</if>
             <if test="logoUrl != null">logo_url = #{logoUrl},</if>
+            <if test="liveImgUrl != null">live_img_url = #{liveImgUrl},</if>
+            <if test="myImgUrl != null">my_img_url = #{myImgUrl},</if>
             <if test="gamePath != null">game_path = #{gamePath},</if>
             <if test="status != null">status = #{status},</if>
             <if test="createTime != null">create_time = #{createTime},</if>