|
|
@@ -24,11 +24,12 @@
|
|
|
<result column="lend_id" jdbcType="INTEGER" property="lendId" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="real_amount" jdbcType="DECIMAL" property="realAmount" />
|
|
|
+ <result column="type_other" jdbcType="VARCHAR" property="typeOther" />
|
|
|
</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, real_amount
|
|
|
+ open_bank, bank_accounts, open_bank_address, lend_id, create_time, real_amount, type_other
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -47,16 +48,16 @@
|
|
|
remarks, agree_time, pay_type,
|
|
|
invoice_type, invoice_no, payer_name,
|
|
|
open_bank, bank_accounts, open_bank_address,
|
|
|
- lend_id, create_time, real_amount
|
|
|
- )
|
|
|
+ lend_id, create_time, real_amount,
|
|
|
+ type_other)
|
|
|
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}, #{realAmount,jdbcType=DECIMAL}
|
|
|
- )
|
|
|
+ #{lendId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{realAmount,jdbcType=DECIMAL},
|
|
|
+ #{typeOther,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.ExpenseAccountDetails" useGeneratedKeys="true">
|
|
|
insert into expense_account_details
|
|
|
@@ -124,6 +125,9 @@
|
|
|
<if test="realAmount != null">
|
|
|
real_amount,
|
|
|
</if>
|
|
|
+ <if test="typeOther != null">
|
|
|
+ type_other,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="eaid != null">
|
|
|
@@ -189,6 +193,9 @@
|
|
|
<if test="realAmount != null">
|
|
|
#{realAmount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="typeOther != null">
|
|
|
+ #{typeOther,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.ExpenseAccountDetails">
|
|
|
@@ -257,6 +264,9 @@
|
|
|
<if test="realAmount != null">
|
|
|
real_amount = #{realAmount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="typeOther != null">
|
|
|
+ type_other = #{typeOther,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -282,7 +292,8 @@
|
|
|
open_bank_address = #{openBankAddress,jdbcType=VARCHAR},
|
|
|
lend_id = #{lendId,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- real_amount = #{realAmount,jdbcType=DECIMAL}
|
|
|
+ real_amount = #{realAmount,jdbcType=DECIMAL},
|
|
|
+ type_other = #{typeOther,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|