Forráskód Böngészése

增加支付渠道编码

dos 2 hónapja
szülő
commit
a699618b58

+ 6 - 0
game-business/src/main/java/com/game/business/domain/AppChargeChannel.java

@@ -43,6 +43,12 @@ private static final long serialVersionUID=1L;
     @TableField(value = "channel_key")
     private String channelKey;
 
+    /** 渠道key */
+    @ApiModelProperty(value = "渠道编码")
+    @Excel(name = "渠道编码")
+    @TableField(value = "channel_no")
+    private String channelNo;
+
     /** 渠道费率 */
     @ApiModelProperty(value = "渠道费率")
     @Excel(name = "渠道费率")

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

@@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectAppChargeChannelVo">
-        select id, name, channel_key, rate,withdraw_rate,is_show, logo_url, company, app_id, app_secret, third_url, status, cert_path, ali_public_cert, ali_apply_cert, ali_ca_cert, merchant_no, api_secret, orderno from app_charge_channel
+        select id, name, channel_key,channel_no, rate,withdraw_rate,is_show, logo_url, company, app_id, app_secret, third_url, status, cert_path, ali_public_cert, ali_apply_cert, ali_ca_cert, merchant_no, api_secret, orderno from app_charge_channel
     </sql>
 
     <select id="selectAppChargeChannelList" parameterType="com.game.business.domain.AppChargeChannel" resultMap="AppChargeChannelResult">
@@ -35,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <where>  
             <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
             <if test="channelKey != null  and channelKey != ''"> and channel_key = #{channelKey}</if>
+            <if test="channelNo != null  and channelNo != ''"> and channel_no = #{channelNo}</if>
             <if test="rate != null "> and rate = #{rate}</if>
             <if test="withdrawRate != null "> and withdraw_rate = #{withdrawRate}</if>
             <if test="isShow != null "> and is_show = #{isShow}</if>
@@ -65,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="id != null">id,</if>
             <if test="name != null">name,</if>
             <if test="channelKey != null">channel_key,</if>
+            <if test="channelNo != null">channel_no,</if>
             <if test="rate != null">rate,</if>
             <if test="withdrawRate != null">withdraw_rate,</if>
             <if test="isShow != null">is_show,</if>
@@ -86,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="id != null">#{id},</if>
             <if test="name != null">#{name},</if>
             <if test="channelKey != null">#{channelKey},</if>
+            <if test="channelNo != null">#{channelNo},</if>
             <if test="rate != null">#{rate},</if>
             <if test="withdrawRate != null">#{withdrawRate},</if>
             <if test="isShow != null">#{isShow},</if>
@@ -110,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix="SET" suffixOverrides=",">
             <if test="name != null">name = #{name},</if>
             <if test="channelKey != null">channel_key = #{channelKey},</if>
+            <if test="channelNo != null">channel_no = #{channelNo},</if>
             <if test="rate != null">rate = #{rate},</if>
             <if test="withdrawRate != null">withdraw_rate = #{withdrawRate},</if>
             <if test="isShow != null">is_show = #{isShow},</if>