|
@@ -4,6 +4,7 @@
|
|
|
<resultMap id="BaseResultMap" type="com.up.sell.vo.MemberBank">
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="card_no" jdbcType="VARCHAR" property="cardNo" />
|
|
|
+ <result column="bank_id" jdbcType="INTEGER" property="bankId" />
|
|
|
<result column="account_bank" jdbcType="VARCHAR" property="accountBank" />
|
|
|
<result column="account_name" jdbcType="VARCHAR" property="accountName" />
|
|
|
<result column="member_id" jdbcType="INTEGER" property="memberId" />
|
|
@@ -11,7 +12,7 @@
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, card_no, account_bank, account_name, member_id, create_time, update_time
|
|
|
+ id, card_no, bank_id, account_bank, account_name, member_id, create_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -24,12 +25,12 @@
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.up.sell.vo.MemberBank">
|
|
|
- insert into member_bank (id, card_no, account_bank,
|
|
|
- account_name, member_id, create_time,
|
|
|
- update_time)
|
|
|
- values (#{id,jdbcType=INTEGER}, #{cardNo,jdbcType=VARCHAR}, #{accountBank,jdbcType=VARCHAR},
|
|
|
- #{accountName,jdbcType=VARCHAR}, #{memberId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ insert into member_bank (id, card_no, bank_id,
|
|
|
+ account_bank, account_name, member_id,
|
|
|
+ create_time, update_time)
|
|
|
+ values (#{id,jdbcType=INTEGER}, #{cardNo,jdbcType=VARCHAR}, #{bankId,jdbcType=INTEGER},
|
|
|
+ #{accountBank,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, #{memberId,jdbcType=INTEGER},
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.up.sell.vo.MemberBank">
|
|
|
insert into member_bank
|
|
@@ -40,6 +41,9 @@
|
|
|
<if test="cardNo != null">
|
|
|
card_no,
|
|
|
</if>
|
|
|
+ <if test="bankId != null">
|
|
|
+ bank_id,
|
|
|
+ </if>
|
|
|
<if test="accountBank != null">
|
|
|
account_bank,
|
|
|
</if>
|
|
@@ -63,6 +67,9 @@
|
|
|
<if test="cardNo != null">
|
|
|
#{cardNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="bankId != null">
|
|
|
+ #{bankId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="accountBank != null">
|
|
|
#{accountBank,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -86,6 +93,9 @@
|
|
|
<if test="cardNo != null">
|
|
|
card_no = #{cardNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="bankId != null">
|
|
|
+ bank_id = #{bankId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="accountBank != null">
|
|
|
account_bank = #{accountBank,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -107,6 +117,7 @@
|
|
|
<update id="updateByPrimaryKey" parameterType="com.up.sell.vo.MemberBank">
|
|
|
update member_bank
|
|
|
set card_no = #{cardNo,jdbcType=VARCHAR},
|
|
|
+ bank_id = #{bankId,jdbcType=INTEGER},
|
|
|
account_bank = #{accountBank,jdbcType=VARCHAR},
|
|
|
account_name = #{accountName,jdbcType=VARCHAR},
|
|
|
member_id = #{memberId,jdbcType=INTEGER},
|