|
|
@@ -25,11 +25,13 @@
|
|
|
<result column="examine_name" jdbcType="VARCHAR" property="examineName" />
|
|
|
<result column="settlement_amount" jdbcType="DECIMAL" property="settlementAmount" />
|
|
|
<result column="debit_id" jdbcType="INTEGER" property="debitId" />
|
|
|
+ <result column="target_type" jdbcType="INTEGER" property="targetType" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, prid, order_no, aid, aname, `type`, type_other, `status`, process_status, total_amount,
|
|
|
attachment_url, apply_dep, pay_dep, eaaid, create_time, district_name, user_names,
|
|
|
- release_start, release_end, duration, examine_name, settlement_amount, debit_id
|
|
|
+ release_start, release_end, duration, examine_name, settlement_amount, debit_id,
|
|
|
+ target_type
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -49,7 +51,7 @@
|
|
|
eaaid, create_time, district_name,
|
|
|
user_names, release_start, release_end,
|
|
|
duration, examine_name, settlement_amount,
|
|
|
- debit_id)
|
|
|
+ debit_id, target_type)
|
|
|
values (#{prid,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR},
|
|
|
#{aname,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{typeOther,jdbcType=VARCHAR},
|
|
|
#{status,jdbcType=INTEGER}, #{processStatus,jdbcType=INTEGER}, #{totalAmount,jdbcType=DECIMAL},
|
|
|
@@ -57,7 +59,7 @@
|
|
|
#{eaaid,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{districtName,jdbcType=VARCHAR},
|
|
|
#{userNames,jdbcType=VARCHAR}, #{releaseStart,jdbcType=TIMESTAMP}, #{releaseEnd,jdbcType=TIMESTAMP},
|
|
|
#{duration,jdbcType=DOUBLE}, #{examineName,jdbcType=VARCHAR}, #{settlementAmount,jdbcType=DECIMAL},
|
|
|
- #{debitId,jdbcType=INTEGER})
|
|
|
+ #{debitId,jdbcType=INTEGER}, #{targetType,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.ExpenseAccount" useGeneratedKeys="true">
|
|
|
insert into expense_account
|
|
|
@@ -128,6 +130,9 @@
|
|
|
<if test="debitId != null">
|
|
|
debit_id,
|
|
|
</if>
|
|
|
+ <if test="targetType != null">
|
|
|
+ target_type,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="prid != null">
|
|
|
@@ -196,6 +201,9 @@
|
|
|
<if test="debitId != null">
|
|
|
#{debitId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="targetType != null">
|
|
|
+ #{targetType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.ExpenseAccount">
|
|
|
@@ -267,6 +275,9 @@
|
|
|
<if test="debitId != null">
|
|
|
debit_id = #{debitId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="targetType != null">
|
|
|
+ target_type = #{targetType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -293,7 +304,8 @@
|
|
|
duration = #{duration,jdbcType=DOUBLE},
|
|
|
examine_name = #{examineName,jdbcType=VARCHAR},
|
|
|
settlement_amount = #{settlementAmount,jdbcType=DECIMAL},
|
|
|
- debit_id = #{debitId,jdbcType=INTEGER}
|
|
|
+ debit_id = #{debitId,jdbcType=INTEGER},
|
|
|
+ target_type = #{targetType,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|