1
zj
2024-06-03 09206aedcfdf30050123e99f2af0a192ebad1de4
src/main/resources/mapper/UserWithdrawMapper.xml
@@ -17,13 +17,9 @@
      <result column="with_fee"  property="withFee"/>
      <result column="with_msg"  property="withMsg"/>
  </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
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    *
    from user_withdraw
    where id = #{id,jdbcType=INTEGER}
  </select>
@@ -31,18 +27,7 @@
    delete from user_withdraw
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.nq.pojo.UserWithdraw" >
    insert into user_withdraw (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,wallet_address,actual_withdrawal,coin_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}, #{walletAddress,jdbcType=VARCHAR}, #{actualWithdrawal,jdbcType=VARCHAR},#{coinType,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.nq.pojo.UserWithdraw" >
    insert into user_withdraw
    <trim prefix="(" suffix=")" suffixOverrides="," >
@@ -201,7 +186,7 @@
  <select id="findUserWithList" parameterType="map" resultMap="BaseResultMap">
    SELECT
    *
*
    FROM user_withdraw
    <where>
      user_id = #{uid}
@@ -217,7 +202,7 @@
  <select id="listByAgent" resultMap="BaseResultMap" parameterType="map">
    SELECT
    <include refid="Base_Column_List"/>
   *
    FROM user_withdraw
    <where>
      agent_id = #{searchId}
@@ -233,7 +218,7 @@
  <select id="listByAdmin" resultMap="BaseResultMap" parameterType="map">
    SELECT
    *
   *
    FROM user_withdraw
    where agent_id != 1
      <if test="agentId != null">