|
@@ -19,14 +19,16 @@
|
|
|
<arg column="with_msg" jdbcType="VARCHAR" javaType="java.lang.String" />
|
|
|
<arg column="with_amt_rMB" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
|
|
<arg column="with_fee_rMB" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
|
|
+ <arg column="agent_name" jdbcType="VARCHAR" javaType="java.lang.String" />
|
|
|
+ <arg column="phone" jdbcType="VARCHAR" javaType="java.lang.String" />
|
|
|
</constructor>
|
|
|
</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, with_amt_rMB, with_fee_rMB
|
|
|
+ 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, with_amt_rMB, with_fee_rMB,agent_name ,phone
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
- select
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from user_withdraw
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
@@ -36,16 +38,17 @@
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.xc.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,
|
|
|
+ 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, with_amt_rMB, with_fee_rMB)
|
|
|
- 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}, #{withAmtRMB,jdbcType=DECIMAL}, #{withFeeRMB,jdbcType=DECIMAL})
|
|
|
+ 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}, #{withAmtRMB,jdbcType=DECIMAL}, #{withFeeRMB,jdbcType=DECIMAL},
|
|
|
+ #{agentName,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.xc.pojo.UserWithdraw" >
|
|
|
insert into user_withdraw
|
|
@@ -198,6 +201,12 @@
|
|
|
<if test="withFeeRMB != null" >
|
|
|
with_fee_rMB = #{withFeeRMB,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="agentName != null" >
|
|
|
+ agen_name = #{agentName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="phone != null" >
|
|
|
+ phone = #{phone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
@@ -302,4 +311,4 @@
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
-</mapper>
|
|
|
+</mapper>
|