|
|
@@ -34,13 +34,14 @@
|
|
|
<result column="secondary_type" jdbcType="INTEGER" property="secondaryType" />
|
|
|
<result column="secondary_type_other" jdbcType="VARCHAR" property="secondaryTypeOther" />
|
|
|
<result column="amount" jdbcType="DECIMAL" property="amount" />
|
|
|
+ <result column="approval" jdbcType="INTEGER" property="approval" />
|
|
|
</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,
|
|
|
target_type, liquidation_status, remarks, check_no, expense_main, real_amount, secondary_type,
|
|
|
- secondary_type_other, amount
|
|
|
+ secondary_type_other, amount, approval
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -63,7 +64,7 @@
|
|
|
debit_id, target_type, liquidation_status,
|
|
|
remarks, check_no, expense_main,
|
|
|
real_amount, secondary_type, secondary_type_other,
|
|
|
- amount)
|
|
|
+ amount, approval)
|
|
|
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},
|
|
|
@@ -74,7 +75,7 @@
|
|
|
#{debitId,jdbcType=INTEGER}, #{targetType,jdbcType=INTEGER}, #{liquidationStatus,jdbcType=INTEGER},
|
|
|
#{remarks,jdbcType=VARCHAR}, #{checkNo,jdbcType=VARCHAR}, #{expenseMain,jdbcType=INTEGER},
|
|
|
#{realAmount,jdbcType=DECIMAL}, #{secondaryType,jdbcType=INTEGER}, #{secondaryTypeOther,jdbcType=VARCHAR},
|
|
|
- #{amount,jdbcType=DECIMAL})
|
|
|
+ #{amount,jdbcType=DECIMAL}, #{approval,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.ExpenseAccount" useGeneratedKeys="true">
|
|
|
insert into expense_account
|
|
|
@@ -172,6 +173,9 @@
|
|
|
<if test="amount != null">
|
|
|
amount,
|
|
|
</if>
|
|
|
+ <if test="approval != null">
|
|
|
+ approval,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="prid != null">
|
|
|
@@ -267,6 +271,9 @@
|
|
|
<if test="amount != null">
|
|
|
#{amount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="approval != null">
|
|
|
+ #{approval,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.ExpenseAccount">
|
|
|
@@ -365,6 +372,9 @@
|
|
|
<if test="amount != null">
|
|
|
amount = #{amount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="approval != null">
|
|
|
+ approval = #{approval,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -400,7 +410,8 @@
|
|
|
real_amount = #{realAmount,jdbcType=DECIMAL},
|
|
|
secondary_type = #{secondaryType,jdbcType=INTEGER},
|
|
|
secondary_type_other = #{secondaryTypeOther,jdbcType=VARCHAR},
|
|
|
- amount = #{amount,jdbcType=DECIMAL}
|
|
|
+ amount = #{amount,jdbcType=DECIMAL},
|
|
|
+ approval = #{approval,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|