|
@@ -295,22 +295,21 @@
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
- <insert id="insertRefund">
|
|
|
+ <insert id="insertRefund" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
insert into
|
|
|
fc_refund
|
|
|
(business_number,bank_code,contract_number,contract_id,contract_price,org_id,org_name,project_account_id,project_name,project_number,
|
|
|
buyer,id_card,account_id,account_type,appropriation_bank,appropriation_account,collection_bank,collection_name,collection_account,
|
|
|
refund_amount,signer,signer_phone,flow_number,flow_node_id,flow_node_name,business_state,appropriation_status,del_flag,
|
|
|
- building_account_id,building_name)
|
|
|
+ building_account_id,building_name,house_address,create_time)
|
|
|
values
|
|
|
- <foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.businessNumber},#{item.bankCode},#{item.contractNumber},#{item.contractId},#{item.contractPrice},#{item.orgId},
|
|
|
- #{item.orgName},#{item.projectAccountId},#{item.projectName},#{item.projectNumber},#{item.buyer},#{item.idCard},
|
|
|
- #{item.accountId},#{item.accountType},#{item.appropriationBank},#{item.appropriationAccount},#{item.collectionBank},
|
|
|
- #{item.collectionName},#{item.collectionAccount},#{item.refundAmount},
|
|
|
- #{item.signer},#{item.signerPhone},#{item.flowNumber},#{item.flowNodeId},#{item.flowNodeName},#{item.businessState},
|
|
|
- #{item.appropriationStatus},#{item.delFlag},#{item.buildingAccountId},#{item.buildingName})
|
|
|
- </foreach>
|
|
|
+ (#{businessNumber},#{bankCode},#{contractNumber},#{contractId},#{contractPrice},#{orgId},
|
|
|
+ #{orgName},#{projectAccountId},#{projectName},#{projectNumber},#{buyer},#{idCard},
|
|
|
+ #{accountId},#{accountType},#{appropriationBank},#{appropriationAccount},#{collectionBank},
|
|
|
+ #{collectionName},#{collectionAccount},#{refundAmount},
|
|
|
+ #{signer},#{signerPhone},#{flowNumber},#{flowNodeId},#{flowNodeName},#{businessState},
|
|
|
+ #{appropriationStatus},#{delFlag},#{buildingAccountId},#{buildingName},#{houseAddress},
|
|
|
+ #{createTime})
|
|
|
</insert>
|
|
|
|
|
|
<select id="getInfoByNumber" resultType="com.cool.bang.modules.mysql.domain.ContractInfo">
|
|
@@ -323,7 +322,7 @@
|
|
|
insert into
|
|
|
fc_trade (serial_number, flush_serial_number, business_number, channel_type, channel_code, account_type,
|
|
|
account, account_id, project_account_id, building_account_id, amount, type, transaction_mode,
|
|
|
- transaction_time, account_balance, reciprocal_account, check_status, check_date, is_flush, remark,del_flag)
|
|
|
+ transaction_time, account_balance, reciprocal_account, check_status, check_date, is_flush, remark,del_flag,create_time)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
(#{item.serialNumber}, #{item.flushSerialNumber}, #{item.businessNumber}, #{item.channelType},
|
|
@@ -332,7 +331,7 @@
|
|
|
#{item.buildingAccountId}, #{item.amount},
|
|
|
#{item.type}, #{item.transactionMode}, #{item.transactionTime}, #{item.accountBalance},
|
|
|
#{item.reciprocalAccount}, #{item.checkStatus},
|
|
|
- #{item.checkDate}, #{item.isFlush}, #{item.remark},#{item.delFlag})
|
|
|
+ #{item.checkDate}, #{item.isFlush}, #{item.remark},#{item.delFlag},#{item.createTime})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|