|
|
@@ -30,12 +30,13 @@
|
|
|
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
|
|
<result column="check_no" jdbcType="VARCHAR" property="checkNo" />
|
|
|
<result column="expense_main" jdbcType="INTEGER" property="expenseMain" />
|
|
|
+ <result column="real_amount" jdbcType="DECIMAL" property="realAmount" />
|
|
|
</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
|
|
|
+ target_type, liquidation_status, remarks, check_no, expense_main, real_amount
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -56,8 +57,8 @@
|
|
|
user_names, release_start, release_end,
|
|
|
duration, examine_name, settlement_amount,
|
|
|
debit_id, target_type, liquidation_status,
|
|
|
- remarks, check_no, expense_main
|
|
|
- )
|
|
|
+ remarks, check_no, expense_main,
|
|
|
+ real_amount)
|
|
|
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},
|
|
|
@@ -66,8 +67,8 @@
|
|
|
#{userNames,jdbcType=VARCHAR}, #{releaseStart,jdbcType=TIMESTAMP}, #{releaseEnd,jdbcType=TIMESTAMP},
|
|
|
#{duration,jdbcType=DOUBLE}, #{examineName,jdbcType=VARCHAR}, #{settlementAmount,jdbcType=DECIMAL},
|
|
|
#{debitId,jdbcType=INTEGER}, #{targetType,jdbcType=INTEGER}, #{liquidationStatus,jdbcType=INTEGER},
|
|
|
- #{remarks,jdbcType=VARCHAR}, #{checkNo,jdbcType=VARCHAR}, #{expenseMain,jdbcType=INTEGER}
|
|
|
- )
|
|
|
+ #{remarks,jdbcType=VARCHAR}, #{checkNo,jdbcType=VARCHAR}, #{expenseMain,jdbcType=INTEGER},
|
|
|
+ #{realAmount,jdbcType=DECIMAL})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.ExpenseAccount" useGeneratedKeys="true">
|
|
|
insert into expense_account
|
|
|
@@ -153,6 +154,9 @@
|
|
|
<if test="expenseMain != null">
|
|
|
expense_main,
|
|
|
</if>
|
|
|
+ <if test="realAmount != null">
|
|
|
+ real_amount,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="prid != null">
|
|
|
@@ -236,6 +240,9 @@
|
|
|
<if test="expenseMain != null">
|
|
|
#{expenseMain,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="realAmount != null">
|
|
|
+ #{realAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.ExpenseAccount">
|
|
|
@@ -322,6 +329,9 @@
|
|
|
<if test="expenseMain != null">
|
|
|
expense_main = #{expenseMain,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="realAmount != null">
|
|
|
+ real_amount = #{realAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -353,7 +363,8 @@
|
|
|
liquidation_status = #{liquidationStatus,jdbcType=INTEGER},
|
|
|
remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
check_no = #{checkNo,jdbcType=VARCHAR},
|
|
|
- expense_main = #{expenseMain,jdbcType=INTEGER}
|
|
|
+ expense_main = #{expenseMain,jdbcType=INTEGER},
|
|
|
+ real_amount = #{realAmount,jdbcType=DECIMAL}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|