|
|
@@ -11,11 +11,21 @@
|
|
|
<result column="vehicle" jdbcType="INTEGER" property="vehicle" />
|
|
|
<result column="vehicle_other" jdbcType="VARCHAR" property="vehicleOther" />
|
|
|
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
|
|
+ <result column="agree_time" jdbcType="TIMESTAMP" property="agreeTime" />
|
|
|
+ <result column="pay_type" jdbcType="INTEGER" property="payType" />
|
|
|
+ <result column="invoice_type" jdbcType="INTEGER" property="invoiceType" />
|
|
|
+ <result column="invoice_no" jdbcType="VARCHAR" property="invoiceNo" />
|
|
|
+ <result column="payer_name" jdbcType="VARCHAR" property="payerName" />
|
|
|
+ <result column="open_bank" jdbcType="VARCHAR" property="openBank" />
|
|
|
+ <result column="bank_accounts" jdbcType="VARCHAR" property="bankAccounts" />
|
|
|
+ <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" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, eaid, `type`, start_time, end_time, amount, vehicle, vehicle_other, remarks,
|
|
|
- create_time
|
|
|
+ agree_time, pay_type, invoice_type, invoice_no, payer_name, open_bank, bank_accounts,
|
|
|
+ open_bank_address, lend_id, create_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -30,11 +40,17 @@
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.ExpenseAccountDetails" useGeneratedKeys="true">
|
|
|
insert into expense_account_details (eaid, `type`, start_time,
|
|
|
end_time, amount, vehicle,
|
|
|
- vehicle_other, remarks, create_time
|
|
|
+ vehicle_other, remarks, agree_time,
|
|
|
+ pay_type, invoice_type, invoice_no,
|
|
|
+ payer_name, open_bank, bank_accounts,
|
|
|
+ open_bank_address, lend_id, create_time
|
|
|
)
|
|
|
values (#{eaid,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{startTime,jdbcType=TIMESTAMP},
|
|
|
#{endTime,jdbcType=TIMESTAMP}, #{amount,jdbcType=DECIMAL}, #{vehicle,jdbcType=INTEGER},
|
|
|
- #{vehicleOther,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
|
|
|
+ #{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}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.ExpenseAccountDetails" useGeneratedKeys="true">
|
|
|
@@ -64,6 +80,33 @@
|
|
|
<if test="remarks != null">
|
|
|
remarks,
|
|
|
</if>
|
|
|
+ <if test="agreeTime != null">
|
|
|
+ agree_time,
|
|
|
+ </if>
|
|
|
+ <if test="payType != null">
|
|
|
+ pay_type,
|
|
|
+ </if>
|
|
|
+ <if test="invoiceType != null">
|
|
|
+ invoice_type,
|
|
|
+ </if>
|
|
|
+ <if test="invoiceNo != null">
|
|
|
+ invoice_no,
|
|
|
+ </if>
|
|
|
+ <if test="payerName != null">
|
|
|
+ payer_name,
|
|
|
+ </if>
|
|
|
+ <if test="openBank != null">
|
|
|
+ open_bank,
|
|
|
+ </if>
|
|
|
+ <if test="bankAccounts != null">
|
|
|
+ bank_accounts,
|
|
|
+ </if>
|
|
|
+ <if test="openBankAddress != null">
|
|
|
+ open_bank_address,
|
|
|
+ </if>
|
|
|
+ <if test="lendId != null">
|
|
|
+ lend_id,
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
|
@@ -93,6 +136,33 @@
|
|
|
<if test="remarks != null">
|
|
|
#{remarks,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="agreeTime != null">
|
|
|
+ #{agreeTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="payType != null">
|
|
|
+ #{payType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="invoiceType != null">
|
|
|
+ #{invoiceType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="invoiceNo != null">
|
|
|
+ #{invoiceNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="payerName != null">
|
|
|
+ #{payerName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="openBank != null">
|
|
|
+ #{openBank,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankAccounts != null">
|
|
|
+ #{bankAccounts,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="openBankAddress != null">
|
|
|
+ #{openBankAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="lendId != null">
|
|
|
+ #{lendId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
@@ -125,6 +195,33 @@
|
|
|
<if test="remarks != null">
|
|
|
remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="agreeTime != null">
|
|
|
+ agree_time = #{agreeTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="payType != null">
|
|
|
+ pay_type = #{payType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="invoiceType != null">
|
|
|
+ invoice_type = #{invoiceType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="invoiceNo != null">
|
|
|
+ invoice_no = #{invoiceNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="payerName != null">
|
|
|
+ payer_name = #{payerName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="openBank != null">
|
|
|
+ open_bank = #{openBank,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankAccounts != null">
|
|
|
+ bank_accounts = #{bankAccounts,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="openBankAddress != null">
|
|
|
+ open_bank_address = #{openBankAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="lendId != null">
|
|
|
+ lend_id = #{lendId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
@@ -141,6 +238,15 @@
|
|
|
vehicle = #{vehicle,jdbcType=INTEGER},
|
|
|
vehicle_other = #{vehicleOther,jdbcType=VARCHAR},
|
|
|
remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
+ agree_time = #{agreeTime,jdbcType=TIMESTAMP},
|
|
|
+ pay_type = #{payType,jdbcType=INTEGER},
|
|
|
+ invoice_type = #{invoiceType,jdbcType=INTEGER},
|
|
|
+ invoice_no = #{invoiceNo,jdbcType=VARCHAR},
|
|
|
+ payer_name = #{payerName,jdbcType=VARCHAR},
|
|
|
+ open_bank = #{openBank,jdbcType=VARCHAR},
|
|
|
+ bank_accounts = #{bankAccounts,jdbcType=VARCHAR},
|
|
|
+ open_bank_address = #{openBankAddress,jdbcType=VARCHAR},
|
|
|
+ lend_id = #{lendId,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|