|
@@ -20,6 +20,7 @@
|
|
|
<result column="BRH_PERSON" jdbcType="VARCHAR" property="person" />
|
|
|
<result column="BRH_PHONE" jdbcType="VARCHAR" property="phone" />
|
|
|
<result column="BRH_SHORTNAME" jdbcType="VARCHAR" property="shortname" />
|
|
|
+ <result column="BRH_CHANNEL" jdbcType="VARCHAR" property="channel" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
@@ -93,7 +94,7 @@
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
BRH_ID, BRH_NAME, BRH_CORE_ID, BRH_LEVEL, BRH_PARENTID, BRH_REGIONID, BRH_DESC, BRH_ADDRESS,
|
|
|
- BRH_DEALBRANCH, BRH_CORBRH, BRH_STT, BRH_PERSON, BRH_PHONE, BRH_SHORTNAME
|
|
|
+ BRH_DEALBRANCH, BRH_CORBRH, BRH_STT, BRH_PERSON, BRH_PHONE, BRH_SHORTNAME, BRH_CHANNEL
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.minpay.db.table.model.ImBranchExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
@@ -150,12 +151,12 @@
|
|
|
BRH_LEVEL, BRH_PARENTID, BRH_REGIONID,
|
|
|
BRH_DESC, BRH_ADDRESS, BRH_DEALBRANCH,
|
|
|
BRH_CORBRH, BRH_STT, BRH_PERSON, BRH_PHONE,
|
|
|
- BRH_SHORTNAME)
|
|
|
+ BRH_SHORTNAME, BRH_CHANNEL)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{coreId,jdbcType=VARCHAR},
|
|
|
#{level,jdbcType=INTEGER}, #{parentid,jdbcType=VARCHAR}, #{regionid,jdbcType=VARCHAR},
|
|
|
#{desc,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{dealbranch,jdbcType=VARCHAR},
|
|
|
#{corbrh,jdbcType=VARCHAR}, #{stt,jdbcType=CHAR}, #{person,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
|
|
|
- #{shortname,jdbcType=VARCHAR})
|
|
|
+ #{shortname,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.minpay.db.table.model.ImBranch">
|
|
|
<!--
|
|
@@ -206,6 +207,9 @@
|
|
|
<if test="shortname != null">
|
|
|
BRH_SHORTNAME,
|
|
|
</if>
|
|
|
+ <if test="channel != null">
|
|
|
+ BRH_CHANNEL,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
@@ -250,6 +254,9 @@
|
|
|
<if test="shortname != null">
|
|
|
#{shortname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="channel != null">
|
|
|
+ #{channel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.minpay.db.table.model.ImBranchExample" resultType="java.lang.Integer">
|
|
@@ -311,6 +318,9 @@
|
|
|
<if test="record.shortname != null">
|
|
|
BRH_SHORTNAME = #{record.shortname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.channel != null">
|
|
|
+ BRH_CHANNEL = #{record.channel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -335,7 +345,8 @@
|
|
|
BRH_STT = #{record.stt,jdbcType=CHAR},
|
|
|
BRH_PERSON = #{record.person,jdbcType=VARCHAR},
|
|
|
BRH_PHONE = #{record.phone,jdbcType=VARCHAR},
|
|
|
- BRH_SHORTNAME = #{record.shortname,jdbcType=VARCHAR}
|
|
|
+ BRH_SHORTNAME = #{record.shortname,jdbcType=VARCHAR},
|
|
|
+ BRH_CHANNEL = #{record.channel,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -386,6 +397,9 @@
|
|
|
<if test="shortname != null">
|
|
|
BRH_SHORTNAME = #{shortname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="channel != null">
|
|
|
+ BRH_CHANNEL = #{channel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where BRH_ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
@@ -407,7 +421,8 @@
|
|
|
BRH_STT = #{stt,jdbcType=CHAR},
|
|
|
BRH_PERSON = #{person,jdbcType=VARCHAR},
|
|
|
BRH_PHONE = #{phone,jdbcType=VARCHAR},
|
|
|
- BRH_SHORTNAME = #{shortname,jdbcType=VARCHAR}
|
|
|
+ BRH_SHORTNAME = #{shortname,jdbcType=VARCHAR},
|
|
|
+ BRH_CHANNEL = #{channel,jdbcType=VARCHAR}
|
|
|
where BRH_ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper>
|