Browse Source

提现手续费

gogs 2 months ago
parent
commit
51cc8a063a

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

@@ -49,6 +49,18 @@ private static final long serialVersionUID=1L;
     @TableField(value = "rate")
     private Double rate;
 
+    /** 渠道费率 */
+    @ApiModelProperty(value = "渠道费率")
+    @Excel(name = "渠道费率")
+    @TableField(value = "withdraw_rate")
+    private Double withdrawRate;
+
+    /** 渠道费率 */
+    @ApiModelProperty(value = "是否显示在充值页面 0:不显示  1:显示")
+    @Excel(name = "是否显示在充值页面 0:不显示  1:显示")
+    @TableField(value = "is_show")
+    private Integer isShow;
+
     /** logo */
     @ApiModelProperty(value = "logo")
     @Excel(name = "logo")

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

@@ -9,6 +9,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="name"    column="name"    />
         <result property="channelKey"    column="channel_key"    />
         <result property="rate"    column="rate"    />
+        <result property="withdrawRate"    column="withdraw_rate"    />
+        <result property="isShow"    column="is_show"    />
         <result property="logoUrl"    column="logo_url"    />
         <result property="company"    column="company"    />
         <result property="appId"    column="app_id"    />
@@ -25,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectAppChargeChannelVo">
-        select id, name, channel_key, rate, 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, 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">
@@ -34,6 +36,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <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="rate != null "> and rate = #{rate}</if>
+            <if test="withdrawRate != null "> and withdraw_rate = #{withdrawRate}</if>
+            <if test="isShow != null "> and is_show = #{isShow}</if>
             <if test="logoUrl != null  and logoUrl != ''"> and logo_url = #{logoUrl}</if>
             <if test="company != null  and company != ''"> and company = #{company}</if>
             <if test="appId != null  and appId != ''"> and app_id = #{appId}</if>
@@ -62,6 +66,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="name != null">name,</if>
             <if test="channelKey != null">channel_key,</if>
             <if test="rate != null">rate,</if>
+            <if test="withdrawRate != null">withdraw_rate,</if>
+            <if test="isShow != null">is_show,</if>
             <if test="logoUrl != null">logo_url,</if>
             <if test="company != null">company,</if>
             <if test="appId != null">app_id,</if>
@@ -81,6 +87,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="name != null">#{name},</if>
             <if test="channelKey != null">#{channelKey},</if>
             <if test="rate != null">#{rate},</if>
+            <if test="withdrawRate != null">#{withdrawRate},</if>
+            <if test="isShow != null">#{isShow},</if>
             <if test="logoUrl != null">#{logoUrl},</if>
             <if test="company != null">#{company},</if>
             <if test="appId != null">#{appId},</if>
@@ -103,6 +111,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="name != null">name = #{name},</if>
             <if test="channelKey != null">channel_key = #{channelKey},</if>
             <if test="rate != null">rate = #{rate},</if>
+            <if test="withdrawRate != null">withdraw_rate = #{withdrawRate},</if>
+            <if test="isShow != null">is_show = #{isShow},</if>
             <if test="logoUrl != null">logo_url = #{logoUrl},</if>
             <if test="company != null">company = #{company},</if>
             <if test="appId != null">app_id = #{appId},</if>

+ 4 - 0
game-ui/src/views/business/channel/index.vue

@@ -232,6 +232,9 @@
         <el-form-item label="渠道费率" prop="rate">
           <el-input v-model="form.rate" placeholder="请输入渠道费率" />
         </el-form-item>
+        <el-form-item label="提现渠道费率" prop="withdrawRate">
+          <el-input v-model="form.withdrawRate" placeholder="请输入提现渠道费率" />
+        </el-form-item>
 <!--        <el-form-item label="logo" prop="logoUrl">
           <el-input v-model="form.logoUrl" placeholder="请输入logo" />
         </el-form-item>
@@ -355,6 +358,7 @@ export default {
         name: null,
         channelKey: null,
         rate: null,
+        withdrawRate: null,
         logoUrl: null,
         company: null,
         appId: null,