zyy
2025-08-13 4aaadc1b51f14c1022ea8e3fc9dc4a156a9c5f39
更新key 提现新增accsetType
5 files modified
24 ■■■■ changed files
src/main/java/com/nq/pojo/UserWithdraw.java 1 ●●●● patch | view | raw | blame | history
src/main/java/com/nq/service/impl/UserWithdrawServiceImpl.java 6 ●●●● patch | view | raw | blame | history
src/main/resources/application.properties 4 ●●●● patch | view | raw | blame | history
src/main/resources/mapper/UserRechargeMapper.xml 6 ●●●● patch | view | raw | blame | history
src/main/resources/mapper/UserWithdrawMapper.xml 7 ●●●●● patch | view | raw | blame | history
src/main/java/com/nq/pojo/UserWithdraw.java
@@ -49,5 +49,4 @@
    @Excel(name = "提现账户类型")
    private String accsetType;
}
src/main/java/com/nq/service/impl/UserWithdrawServiceImpl.java
@@ -109,7 +109,7 @@
                return ServerResponse.createByErrorMsg("最小提现金额:" + siteSetting.getWithMinAmt(),request);
            }
            boolean b = getServerResponse();
            boolean b = getServerResponse(accsetType);
            if (!b) {
                return ServerResponse.createByErrorMsg("提现失败,当前时间已停止提现", request);
            }
@@ -148,8 +148,8 @@
    }
    private boolean getServerResponse() {
        StockTimeSetting stockTimeSetting = stockTimeSettingMapper.selectOne(new QueryWrapper<StockTimeSetting>().eq("accets_type", EStockType.getDefault().getCode()));
    private boolean getServerResponse(String accsetType) {
        StockTimeSetting stockTimeSetting = stockTimeSettingMapper.selectOne(new QueryWrapper<StockTimeSetting>().eq("accets_type", accsetType));
        if (stockTimeSetting == null) {
            return false;
        }
src/main/resources/application.properties
@@ -46,7 +46,7 @@
HK_HTTP_API = http://api-hk.js-stock.top/
HK_WS_URL = ws://api-hk-ws.js-stock.top
HK_KEY = Ra98BDaCU8kqDQbJ9dK1
HK_KEY = tdCdEq7PGOSqLf3NMNPv
JS_IN_HTTP_URL = http://api-in-pro.js-stock.top/
#JS_IN_WS_URL = ws://api-in-pro-ws.js-stock.top
@@ -54,7 +54,7 @@
TW_HTTP_API = http://api-tw.js-stock.top/
TW_WS_URL = ws://api-tw-ws.js-stock.top
TW_KEY = wgUxwQPf0XatK5Z3u3xU
TW_KEY = FedHFfQ9BTZKIJmW8vkl
#默认首页显示指数code
src/main/resources/mapper/UserRechargeMapper.xml
@@ -20,18 +20,18 @@
  </resultMap>
  <sql id="Base_Column_List" >
    id, user_id, nick_name, agent_id, order_sn, pay_sn, pay_channel, pay_amt, order_status,
    order_desc, add_time, pay_time, pay_id,img
    order_desc, add_time, pay_time, pay_id,img,assets_type
  </sql>
  <insert id="insert" parameterType="com.nq.pojo.UserRecharge" >
    insert into user_recharge (id, user_id, nick_name,
      agent_id, order_sn, pay_sn,
      pay_channel, pay_amt, order_status,
      order_desc, add_time, pay_time,pay_id,img
      order_desc, add_time, pay_time,pay_id,img,assets_type
      )
    values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{nickName,jdbcType=VARCHAR},
      #{agentId,jdbcType=INTEGER}, #{orderSn,jdbcType=VARCHAR}, #{paySn,jdbcType=VARCHAR},
      #{payChannel,jdbcType=VARCHAR}, #{payAmt,jdbcType=DECIMAL}, #{orderStatus,jdbcType=INTEGER},
      #{orderDesc,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, #{payId,jdbcType=INTEGER}, #{img,jdbcType=VARCHAR}
      #{orderDesc,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, #{payId,jdbcType=INTEGER}, #{img,jdbcType=VARCHAR},#{assetsType,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.nq.pojo.UserRecharge" >
src/main/resources/mapper/UserWithdrawMapper.xml
@@ -16,10 +16,11 @@
      <result column="with_status"  property="withStatus"/>
      <result column="with_fee"  property="withFee"/>
      <result column="with_msg"  property="withMsg"/>
      <result column="accset_type"  property="accsetType"/>
  </resultMap>
  <sql id="Base_Column_List" >
    id, user_id, nick_name, agent_id, with_amt, apply_time, trans_time, with_name, bank_no, 
    bank_name, bank_address, with_status, with_fee, with_msg
    bank_name, bank_address, with_status, with_fee, with_msg, accset_type
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
@@ -36,12 +37,12 @@
      agent_id, with_amt, apply_time, 
      trans_time, with_name, bank_no, 
      bank_name, bank_address, with_status, 
      with_fee, with_msg)
      with_fee, with_msg, accset_type)
    values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{nickName,jdbcType=VARCHAR}, 
      #{agentId,jdbcType=INTEGER}, #{withAmt,jdbcType=DECIMAL}, #{applyTime,jdbcType=TIMESTAMP}, 
      #{transTime,jdbcType=TIMESTAMP}, #{withName,jdbcType=VARCHAR}, #{bankNo,jdbcType=VARCHAR}, 
      #{bankName,jdbcType=VARCHAR}, #{bankAddress,jdbcType=VARCHAR}, #{withStatus,jdbcType=INTEGER}, 
      #{withFee,jdbcType=DECIMAL}, #{withMsg,jdbcType=VARCHAR})
      #{withFee,jdbcType=DECIMAL}, #{withMsg,jdbcType=VARCHAR}, #{accsetType,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.nq.pojo.UserWithdraw" >
    insert into user_withdraw