|
|
@@ -14,10 +14,11 @@
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
+ <result column="payment_amb_id" jdbcType="VARCHAR" property="paymentAmbId" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, `type`, total_amount, content, remarks, annex_url, process_status, `status`,
|
|
|
- create_by, create_time, update_by, update_time
|
|
|
+ create_by, create_time, update_by, update_time, payment_amb_id
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -33,11 +34,13 @@
|
|
|
insert into amb_payment_application (`type`, total_amount, content,
|
|
|
remarks, annex_url, process_status,
|
|
|
`status`, create_by, create_time,
|
|
|
- update_by, update_time)
|
|
|
+ update_by, update_time, payment_amb_id
|
|
|
+ )
|
|
|
values (#{type,jdbcType=INTEGER}, #{totalAmount,jdbcType=DECIMAL}, #{content,jdbcType=VARCHAR},
|
|
|
#{remarks,jdbcType=VARCHAR}, #{annexUrl,jdbcType=VARCHAR}, #{processStatus,jdbcType=INTEGER},
|
|
|
#{status,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{paymentAmbId,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.AmbPaymentApplication" useGeneratedKeys="true">
|
|
|
insert into amb_payment_application
|
|
|
@@ -75,6 +78,9 @@
|
|
|
<if test="updateTime != null">
|
|
|
update_time,
|
|
|
</if>
|
|
|
+ <if test="paymentAmbId != null">
|
|
|
+ payment_amb_id,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="type != null">
|
|
|
@@ -110,6 +116,9 @@
|
|
|
<if test="updateTime != null">
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="paymentAmbId != null">
|
|
|
+ #{paymentAmbId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.AmbPaymentApplication">
|
|
|
@@ -148,6 +157,9 @@
|
|
|
<if test="updateTime != null">
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="paymentAmbId != null">
|
|
|
+ payment_amb_id = #{paymentAmbId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
@@ -163,7 +175,8 @@
|
|
|
create_by = #{createBy,jdbcType=VARCHAR},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ payment_amb_id = #{paymentAmbId,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|