|
@@ -13,6 +13,7 @@
|
|
|
<result column="VRR_CREATE_TIME" jdbcType="VARCHAR" property="createTime" />
|
|
|
<result column="VRR_CREATE_USER" jdbcType="VARCHAR" property="createUser" />
|
|
|
<result column="VRR_STATE" jdbcType="VARCHAR" property="state" />
|
|
|
+ <result column="VRR_BRANCH" jdbcType="VARCHAR" property="branch" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
@@ -86,7 +87,7 @@
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
VRR_ID, VRR_RECHARGE_AMT, VRR_GIVE_AMT, VRR_DESC, VRR_CREATE_TIME, VRR_CREATE_USER,
|
|
|
- VRR_STATE
|
|
|
+ VRR_STATE, VRR_BRANCH
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.minpay.db.table.model.VmRechargeRuleExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
@@ -141,10 +142,10 @@
|
|
|
-->
|
|
|
insert into vm_recharge_rule (VRR_ID, VRR_RECHARGE_AMT, VRR_GIVE_AMT,
|
|
|
VRR_DESC, VRR_CREATE_TIME, VRR_CREATE_USER,
|
|
|
- VRR_STATE)
|
|
|
+ VRR_STATE, VRR_BRANCH)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{rechargeAmt,jdbcType=VARCHAR}, #{giveAmt,jdbcType=VARCHAR},
|
|
|
#{desc,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
|
|
|
- #{state,jdbcType=VARCHAR})
|
|
|
+ #{state,jdbcType=VARCHAR}, #{branch,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.minpay.db.table.model.VmRechargeRule">
|
|
|
<!--
|
|
@@ -174,6 +175,9 @@
|
|
|
<if test="state != null">
|
|
|
VRR_STATE,
|
|
|
</if>
|
|
|
+ <if test="branch != null">
|
|
|
+ VRR_BRANCH,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
@@ -197,6 +201,9 @@
|
|
|
<if test="state != null">
|
|
|
#{state,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="branch != null">
|
|
|
+ #{branch,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.minpay.db.table.model.VmRechargeRuleExample" resultType="java.lang.Integer">
|
|
@@ -237,6 +244,9 @@
|
|
|
<if test="record.state != null">
|
|
|
VRR_STATE = #{record.state,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.branch != null">
|
|
|
+ VRR_BRANCH = #{record.branch,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -254,7 +264,8 @@
|
|
|
VRR_DESC = #{record.desc,jdbcType=VARCHAR},
|
|
|
VRR_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
|
|
|
VRR_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
|
|
|
- VRR_STATE = #{record.state,jdbcType=VARCHAR}
|
|
|
+ VRR_STATE = #{record.state,jdbcType=VARCHAR},
|
|
|
+ VRR_BRANCH = #{record.branch,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -284,6 +295,9 @@
|
|
|
<if test="state != null">
|
|
|
VRR_STATE = #{state,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="branch != null">
|
|
|
+ VRR_BRANCH = #{branch,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where VRR_ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
@@ -298,7 +312,8 @@
|
|
|
VRR_DESC = #{desc,jdbcType=VARCHAR},
|
|
|
VRR_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
|
|
|
VRR_CREATE_USER = #{createUser,jdbcType=VARCHAR},
|
|
|
- VRR_STATE = #{state,jdbcType=VARCHAR}
|
|
|
+ VRR_STATE = #{state,jdbcType=VARCHAR},
|
|
|
+ VRR_BRANCH = #{branch,jdbcType=VARCHAR}
|
|
|
where VRR_ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper>
|