|
|
@@ -5,6 +5,8 @@
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
|
<result column="total_amount" jdbcType="DECIMAL" property="totalAmount" />
|
|
|
+ <result column="initiate_amb_id" jdbcType="BIGINT" property="initiateAmbId" />
|
|
|
+ <result column="accept_amb_id" jdbcType="BIGINT" property="acceptAmbId" />
|
|
|
<result column="content" jdbcType="VARCHAR" property="content" />
|
|
|
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
|
|
<result column="annex_url" jdbcType="VARCHAR" property="annexUrl" />
|
|
|
@@ -14,11 +16,10 @@
|
|
|
<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, payment_amb_id
|
|
|
+ id, `type`, total_amount, initiate_amb_id, accept_amb_id, content, remarks, annex_url,
|
|
|
+ process_status, `status`, create_by, create_time, update_by, update_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -31,16 +32,16 @@
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</delete>
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.AmbPaymentApplication" useGeneratedKeys="true">
|
|
|
- insert into amb_payment_application (`type`, total_amount, content,
|
|
|
- remarks, annex_url, process_status,
|
|
|
- `status`, create_by, create_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}, #{paymentAmbId,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
+ insert into amb_payment_application (`type`, total_amount, initiate_amb_id,
|
|
|
+ accept_amb_id, content, remarks,
|
|
|
+ annex_url, process_status, `status`,
|
|
|
+ create_by, create_time, update_by,
|
|
|
+ update_time)
|
|
|
+ values (#{type,jdbcType=INTEGER}, #{totalAmount,jdbcType=DECIMAL}, #{initiateAmbId,jdbcType=BIGINT},
|
|
|
+ #{acceptAmbId,jdbcType=BIGINT}, #{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})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.AmbPaymentApplication" useGeneratedKeys="true">
|
|
|
insert into amb_payment_application
|
|
|
@@ -51,6 +52,12 @@
|
|
|
<if test="totalAmount != null">
|
|
|
total_amount,
|
|
|
</if>
|
|
|
+ <if test="initiateAmbId != null">
|
|
|
+ initiate_amb_id,
|
|
|
+ </if>
|
|
|
+ <if test="acceptAmbId != null">
|
|
|
+ accept_amb_id,
|
|
|
+ </if>
|
|
|
<if test="content != null">
|
|
|
content,
|
|
|
</if>
|
|
|
@@ -78,9 +85,6 @@
|
|
|
<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">
|
|
|
@@ -89,6 +93,12 @@
|
|
|
<if test="totalAmount != null">
|
|
|
#{totalAmount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="initiateAmbId != null">
|
|
|
+ #{initiateAmbId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="acceptAmbId != null">
|
|
|
+ #{acceptAmbId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
<if test="content != null">
|
|
|
#{content,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -116,9 +126,6 @@
|
|
|
<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">
|
|
|
@@ -130,6 +137,12 @@
|
|
|
<if test="totalAmount != null">
|
|
|
total_amount = #{totalAmount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="initiateAmbId != null">
|
|
|
+ initiate_amb_id = #{initiateAmbId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="acceptAmbId != null">
|
|
|
+ accept_amb_id = #{acceptAmbId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
<if test="content != null">
|
|
|
content = #{content,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -157,9 +170,6 @@
|
|
|
<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>
|
|
|
@@ -167,6 +177,8 @@
|
|
|
update amb_payment_application
|
|
|
set `type` = #{type,jdbcType=INTEGER},
|
|
|
total_amount = #{totalAmount,jdbcType=DECIMAL},
|
|
|
+ initiate_amb_id = #{initiateAmbId,jdbcType=BIGINT},
|
|
|
+ accept_amb_id = #{acceptAmbId,jdbcType=BIGINT},
|
|
|
content = #{content,jdbcType=VARCHAR},
|
|
|
remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
annex_url = #{annexUrl,jdbcType=VARCHAR},
|
|
|
@@ -175,8 +187,7 @@
|
|
|
create_by = #{createBy,jdbcType=VARCHAR},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- payment_amb_id = #{paymentAmbId,jdbcType=VARCHAR}
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|