|
|
@@ -23,11 +23,12 @@
|
|
|
<result column="open_bank_address" jdbcType="VARCHAR" property="openBankAddress" />
|
|
|
<result column="lend_id" jdbcType="INTEGER" property="lendId" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
+ <result column="real_amount" jdbcType="DECIMAL" property="realAmount" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, eaid, `type`, start_time, end_time, start_district, end_district, amount, vehicle,
|
|
|
vehicle_other, remarks, agree_time, pay_type, invoice_type, invoice_no, payer_name,
|
|
|
- open_bank, bank_accounts, open_bank_address, lend_id, create_time
|
|
|
+ open_bank, bank_accounts, open_bank_address, lend_id, create_time, real_amount
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -46,14 +47,16 @@
|
|
|
remarks, agree_time, pay_type,
|
|
|
invoice_type, invoice_no, payer_name,
|
|
|
open_bank, bank_accounts, open_bank_address,
|
|
|
- lend_id, create_time)
|
|
|
+ lend_id, create_time, real_amount
|
|
|
+ )
|
|
|
values (#{eaid,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{startTime,jdbcType=TIMESTAMP},
|
|
|
#{endTime,jdbcType=TIMESTAMP}, #{startDistrict,jdbcType=VARCHAR}, #{endDistrict,jdbcType=VARCHAR},
|
|
|
#{amount,jdbcType=DECIMAL}, #{vehicle,jdbcType=INTEGER}, #{vehicleOther,jdbcType=VARCHAR},
|
|
|
#{remarks,jdbcType=VARCHAR}, #{agreeTime,jdbcType=TIMESTAMP}, #{payType,jdbcType=INTEGER},
|
|
|
#{invoiceType,jdbcType=INTEGER}, #{invoiceNo,jdbcType=VARCHAR}, #{payerName,jdbcType=VARCHAR},
|
|
|
#{openBank,jdbcType=VARCHAR}, #{bankAccounts,jdbcType=VARCHAR}, #{openBankAddress,jdbcType=VARCHAR},
|
|
|
- #{lendId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP})
|
|
|
+ #{lendId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{realAmount,jdbcType=DECIMAL}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.ExpenseAccountDetails" useGeneratedKeys="true">
|
|
|
insert into expense_account_details
|
|
|
@@ -118,6 +121,9 @@
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
|
+ <if test="realAmount != null">
|
|
|
+ real_amount,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="eaid != null">
|
|
|
@@ -180,6 +186,9 @@
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="realAmount != null">
|
|
|
+ #{realAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.ExpenseAccountDetails">
|
|
|
@@ -245,6 +254,9 @@
|
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="realAmount != null">
|
|
|
+ real_amount = #{realAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -269,7 +281,8 @@
|
|
|
bank_accounts = #{bankAccounts,jdbcType=VARCHAR},
|
|
|
open_bank_address = #{openBankAddress,jdbcType=VARCHAR},
|
|
|
lend_id = #{lendId,jdbcType=INTEGER},
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ real_amount = #{realAmount,jdbcType=DECIMAL}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|