|
@@ -5,188 +5,367 @@
|
|
|
<!-- 插入监管开户申请业务表数据 -->
|
|
|
<insert id="insertSuperviseBusiness">
|
|
|
insert into
|
|
|
- fc_supervise_business (id, business_number, bank_code, org_id, org_name, project_id, project_number, project_name, project_address, account_id, bank_name, name, account, account_open_address, operator, operator_phone, notice_pdf_url, agreement_pdf_url, business_state, open_date, create_time, update_time, del_flag)
|
|
|
+ fc_supervise_business (id, business_number, bank_code, org_id, org_name, project_id, project_number,
|
|
|
+ project_name, project_address, account_id, bank_name, name, account, account_open_address, operator,
|
|
|
+ operator_phone, notice_pdf_url, agreement_pdf_url, business_state, open_date, create_time, update_time,
|
|
|
+ del_flag)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.id}, #{item.businessNumber}, #{item.bankCode}, #{item.orgId}, #{item.orgName}, #{item.projectId}, #{item.projectNumber}, #{item.projectName}, #{item.projectAddress}, #{item.accountId}, #{item.bankName}, #{item.name}, #{item.account}, #{item.accountOpenAddress}, #{item.operator}, #{item.operatorPhone}, #{item.noticePdfUrl}, #{item.agreementPdfUrl}, #{item.businessState}, #{item.openDate}, #{item.createTime}, #{item.updateTime}, #{item.delFlag})
|
|
|
+ (#{item.id}, #{item.businessNumber}, #{item.bankCode}, #{item.orgId}, #{item.orgName}, #{item.projectId},
|
|
|
+ #{item.projectNumber}, #{item.projectName}, #{item.projectAddress}, #{item.accountId}, #{item.bankName},
|
|
|
+ #{item.name}, #{item.account}, #{item.accountOpenAddress}, #{item.operator}, #{item.operatorPhone},
|
|
|
+ #{item.noticePdfUrl}, #{item.agreementPdfUrl}, #{item.businessState}, #{item.openDate}, #{item.createTime},
|
|
|
+ #{item.updateTime}, #{item.delFlag})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入监管解除申请业务表数据 -->
|
|
|
<insert id="insertSuperviseRelieve">
|
|
|
insert into
|
|
|
- fc_supervise_relieve (id, business_number, account_id, name, account, org_id, org_name, bank_code, bank_name, account_open_address, project_account_id, project_number, project_name, project_address, pdf_url, business_state, create_time, update_time, del_flag)
|
|
|
+ fc_supervise_relieve (id, business_number, account_id, name, account, org_id, org_name, bank_code, bank_name,
|
|
|
+ account_open_address, project_account_id, project_number, project_name, project_address, pdf_url,
|
|
|
+ business_state, create_time, update_time, del_flag)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.id}, #{item.businessNumber}, #{item.accountId}, #{item.name}, #{item.account}, #{item.orgId}, #{item.orgName}, #{item.bankCode}, #{item.bankName}, #{item.accountOpenAddress}, #{item.projectAccountId}, #{item.projectNumber}, #{item.projectName}, #{item.projectAddress}, #{item.pdfUrl}, #{item.businessState}, #{item.createTime}, #{item.updateTime}, #{item.delFlag})
|
|
|
+ (#{item.id}, #{item.businessNumber}, #{item.accountId}, #{item.name}, #{item.account}, #{item.orgId},
|
|
|
+ #{item.orgName}, #{item.bankCode}, #{item.bankName}, #{item.accountOpenAddress}, #{item.projectAccountId},
|
|
|
+ #{item.projectNumber}, #{item.projectName}, #{item.projectAddress}, #{item.pdfUrl}, #{item.businessState},
|
|
|
+ #{item.createTime}, #{item.updateTime}, #{item.delFlag})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入监管资金转托管业务数据 -->
|
|
|
<insert id="insertSuperviseTo" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
- insert into
|
|
|
- fc_supervise_to (id, business_number, bank_code, org_id, org_name, project_id, project_number, project_name, project_account_id, director, phone, appropriation_account_id, appropriation_bank, appropriation_name, appropriation_account, appropriation_open_address, collection_account_id, collection_bank, collection_name, collection_account, collection_open_address,transfer_amount, flow_number, flow_node_id, flow_node_name, business_state, application_state, create_time, update_time, remark, del_flag)
|
|
|
- values
|
|
|
- (#{id}, #{businessNumber}, #{bankCode}, #{orgId}, #{orgName}, #{projectId}, #{projectNumber}, #{projectName}, #{projectAccountId}, #{director}, #{phone}, #{appropriationAccountId}, #{appropriationBank}, #{appropriationName}, #{appropriationAccount}, #{appropriationOpenAddress}, #{collectionAccountId}, #{collectionBank}, #{collectionName}, #{collectionAccount},#{collectionOpenAddress}, #{transferAmount}, #{flowNumber}, #{flowNodeId}, #{flowNodeName}, #{businessState}, #{applicationState}, #{createTime}, #{updateTime}, #{remark}, #{delFlag})
|
|
|
+ insert into fc_supervise_to (id, business_number, bank_code, org_id, org_name, project_id, project_number,
|
|
|
+ project_name, project_account_id, director, phone, appropriation_account_id,
|
|
|
+ appropriation_bank, appropriation_name, appropriation_account,
|
|
|
+ appropriation_open_address, collection_account_id, collection_bank,
|
|
|
+ collection_name, collection_account, collection_open_address, transfer_amount,
|
|
|
+ flow_number, flow_node_id, flow_node_name, business_state, application_state,
|
|
|
+ create_time, update_time, remark, del_flag)
|
|
|
+ values (#{id}, #{businessNumber}, #{bankCode}, #{orgId}, #{orgName}, #{projectId}, #{projectNumber},
|
|
|
+ #{projectName}, #{projectAccountId}, #{director}, #{phone}, #{appropriationAccountId},
|
|
|
+ #{appropriationBank}, #{appropriationName}, #{appropriationAccount}, #{appropriationOpenAddress},
|
|
|
+ #{collectionAccountId}, #{collectionBank}, #{collectionName}, #{collectionAccount},
|
|
|
+ #{collectionOpenAddress}, #{transferAmount}, #{flowNumber}, #{flowNodeId}, #{flowNodeName},
|
|
|
+ #{businessState}, #{applicationState}, #{createTime}, #{updateTime}, #{remark}, #{delFlag})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入监管资金转托管详情数据 -->
|
|
|
<insert id="insertSuperviseToDetail">
|
|
|
insert into
|
|
|
- fc_supervise_to_detail (id, supervise_to_id, building_account_id, building_number, building_name, account_balance, keep_percentage, keep_amount, transfer_amount, create_time, update_time, del_flag)
|
|
|
+ fc_supervise_to_detail (id, supervise_to_id, building_account_id, building_number, building_name,
|
|
|
+ account_balance, keep_percentage, keep_amount, transfer_amount, create_time, update_time, del_flag)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.id}, #{item.superviseToId}, #{item.buildingAccountId}, #{item.buildingNumber}, #{item.buildingName}, #{item.accountBalance}, #{item.keepPercentage}, #{item.keepAmount}, #{item.transferAmount}, #{item.createTime}, #{item.updateTime}, #{item.delFlag})
|
|
|
+ (#{item.id}, #{item.superviseToId}, #{item.buildingAccountId}, #{item.buildingNumber}, #{item.buildingName},
|
|
|
+ #{item.accountBalance}, #{item.keepPercentage}, #{item.keepAmount}, #{item.transferAmount},
|
|
|
+ #{item.createTime}, #{item.updateTime}, #{item.delFlag})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入监管资金转托管 转入通知书数据 -->
|
|
|
<insert id="insertSuperviseToPosting">
|
|
|
insert into
|
|
|
- fc_supervise_to_posting (id, business_number, bank_code, org_id, org_name, supervise_to_id, project_id, project_number, project_name, project_account_id, appropriation_account_id, appropriation_bank, appropriation_name, appropriation_account, appropriation_open_address, collection_account_id, collection_bank, collection_name, collection_account, posting_amount, posting_status, is_rescind, remark, create_time, update_time)
|
|
|
+ fc_supervise_to_posting (id, business_number, bank_code, org_id, org_name, supervise_to_id, project_id,
|
|
|
+ project_number, project_name, project_account_id, appropriation_account_id, appropriation_bank,
|
|
|
+ appropriation_name, appropriation_account, appropriation_open_address, collection_account_id, collection_bank,
|
|
|
+ collection_name, collection_account, posting_amount, posting_status, is_rescind, remark, create_time,
|
|
|
+ update_time)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.id}, #{item.businessNumber}, #{item.bankCode}, #{item.orgId}, #{item.orgName}, #{item.superviseToId}, #{item.projectId}, #{item.projectNumber}, #{item.projectName}, #{item.projectAccountId}, #{item.appropriationAccountId}, #{item.appropriationBank}, #{item.appropriationName}, #{item.appropriationAccount}, #{item.appropriationOpenAddress}, #{item.collectionAccountId}, #{item.collectionBank}, #{item.collectionName}, #{item.collectionAccount}, #{item.postingAmount}, #{item.postingStatus}, #{item.isRescind}, #{item.remark}, #{item.createTime}, #{item.updateTime})
|
|
|
+ (#{item.id}, #{item.businessNumber}, #{item.bankCode}, #{item.orgId}, #{item.orgName},
|
|
|
+ #{item.superviseToId}, #{item.projectId}, #{item.projectNumber}, #{item.projectName},
|
|
|
+ #{item.projectAccountId}, #{item.appropriationAccountId}, #{item.appropriationBank},
|
|
|
+ #{item.appropriationName}, #{item.appropriationAccount}, #{item.appropriationOpenAddress},
|
|
|
+ #{item.collectionAccountId}, #{item.collectionBank}, #{item.collectionName}, #{item.collectionAccount},
|
|
|
+ #{item.postingAmount}, #{item.postingStatus}, #{item.isRescind}, #{item.remark}, #{item.createTime},
|
|
|
+ #{item.updateTime})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入监管资金转托管 转出通知书数据 -->
|
|
|
<insert id="insertSuperviseToOutgoing">
|
|
|
insert into
|
|
|
- fc_supervise_to_outgoing (id, business_number, bank_code, org_id, org_name, supervise_to_id, project_id, project_number, project_name, project_account_id, appropriation_account_id, appropriation_bank, appropriation_name, appropriation_account, appropriation_open_address, collection_account_id,collection_open_address, collection_bank, collection_name, collection_account, apply_amount, appropriation_status, is_rescind, remark, create_time, update_time)
|
|
|
+ fc_supervise_to_outgoing (id, business_number, bank_code, org_id, org_name, supervise_to_id, project_id,
|
|
|
+ project_number, project_name, project_account_id, appropriation_account_id, appropriation_bank,
|
|
|
+ appropriation_name, appropriation_account, appropriation_open_address,
|
|
|
+ collection_account_id,collection_open_address, collection_bank, collection_name, collection_account,
|
|
|
+ apply_amount, appropriation_status, is_rescind, remark, create_time, update_time)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.id}, #{item.businessNumber}, #{item.bankCode}, #{item.orgId}, #{item.orgName}, #{item.superviseToId}, #{item.projectId}, #{item.projectNumber}, #{item.projectName}, #{item.projectAccountId}, #{item.appropriationAccountId}, #{item.appropriationBank}, #{item.appropriationName}, #{item.appropriationAccount}, #{item.appropriationOpenAddress}, #{item.collectionAccountId},#{item.collectionOpenAddress}, #{item.collectionBank}, #{item.collectionName}, #{item.collectionAccount}, #{item.applyAmount}, #{item.appropriationStatus}, #{item.isRescind}, #{item.remark}, #{item.createTime}, #{item.updateTime})
|
|
|
+ (#{item.id}, #{item.businessNumber}, #{item.bankCode}, #{item.orgId}, #{item.orgName},
|
|
|
+ #{item.superviseToId}, #{item.projectId}, #{item.projectNumber}, #{item.projectName},
|
|
|
+ #{item.projectAccountId}, #{item.appropriationAccountId}, #{item.appropriationBank},
|
|
|
+ #{item.appropriationName}, #{item.appropriationAccount}, #{item.appropriationOpenAddress},
|
|
|
+ #{item.collectionAccountId},#{item.collectionOpenAddress}, #{item.collectionBank}, #{item.collectionName},
|
|
|
+ #{item.collectionAccount}, #{item.applyAmount}, #{item.appropriationStatus}, #{item.isRescind},
|
|
|
+ #{item.remark}, #{item.createTime}, #{item.updateTime})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入施工进度申请业务信息 -->
|
|
|
<insert id="insertProgress" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
- insert into
|
|
|
- fc_progress_business (id, business_number, org_id, org_name, project_account_id, project_name, flow_number, flow_node_id, flow_node_name, business_state, create_time, update_time, del_flag)
|
|
|
- values
|
|
|
- (#{id,jdbcType=BIGINT}, #{businessNumber,jdbcType=VARCHAR}, #{orgId,jdbcType=BIGINT}, #{orgName,jdbcType=VARCHAR}, #{projectAccountId,jdbcType=BIGINT}, #{projectName,jdbcType=VARCHAR}, #{flowNumber,jdbcType=VARCHAR}, #{flowNodeId,jdbcType=BIGINT}, #{flowNodeName,jdbcType=VARCHAR}, #{businessState,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT})
|
|
|
- </insert>
|
|
|
+ insert into fc_progress_business (id, business_number, org_id, org_name, project_account_id, project_name,
|
|
|
+ flow_number, flow_node_id, flow_node_name, business_state, create_time,
|
|
|
+ update_time, del_flag)
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{businessNumber,jdbcType=VARCHAR}, #{orgId,jdbcType=BIGINT},
|
|
|
+ #{orgName,jdbcType=VARCHAR}, #{projectAccountId,jdbcType=BIGINT}, #{projectName,jdbcType=VARCHAR},
|
|
|
+ #{flowNumber,jdbcType=VARCHAR}, #{flowNodeId,jdbcType=BIGINT}, #{flowNodeName,jdbcType=VARCHAR},
|
|
|
+ #{businessState,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{delFlag,jdbcType=TINYINT})
|
|
|
+ </insert>
|
|
|
|
|
|
<!-- 插入施工进度申请明细表信息 -->
|
|
|
<insert id="insertProgressDetail">
|
|
|
insert into
|
|
|
- fc_progress_detail (id, progress_business_id, building_number, building_name, now_progress_name, progress_id, progress_name, limit_percentage, building_account_id, building_account_name, url, create_time, update_time)
|
|
|
+ fc_progress_detail (id, progress_business_id, building_number, building_name, now_progress_name, progress_id,
|
|
|
+ progress_name, limit_percentage, building_account_id, building_account_name, url, create_time, update_time)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.id}, #{item.progressBusinessId}, #{item.buildingNumber}, #{item.buildingName},#{item.nowProgressName}, #{item.progressId}, #{item.progressName}, #{item.limitPercentage}, #{item.buildingAccountId}, #{item.buildingAccountName}, #{item.url}, #{item.createTime}, #{item.updateTime})
|
|
|
+ (#{item.id}, #{item.progressBusinessId}, #{item.buildingNumber},
|
|
|
+ #{item.buildingName},#{item.nowProgressName}, #{item.progressId}, #{item.progressName},
|
|
|
+ #{item.limitPercentage}, #{item.buildingAccountId}, #{item.buildingAccountName}, #{item.url},
|
|
|
+ #{item.createTime}, #{item.updateTime})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入拨付申请业务数据 -->
|
|
|
<insert id="insertAppropriation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
- insert into
|
|
|
- fc_appropriation (id, business_number, bank_code, org_id, org_name, project_id, project_account_id, project_number, project_name, director, phone, application_type, appropriation_account_id, appropriation_bank, appropriation_name, appropriation_account, appropriation_open_address, collection_account_id, collection_bank, collection_name, collection_account, collection_open_address, collection_type, appropriation_type, apply_amount, purpose, flow_number, flow_node_id, flow_node_name, pdf_url, pdf_url_notice, business_state, application_state, create_time, update_time, remark, del_flag)
|
|
|
- values
|
|
|
- (#{id}, #{businessNumber}, #{bankCode}, #{orgId}, #{orgName}, #{projectId}, #{projectAccountId}, #{projectNumber}, #{projectName}, #{director}, #{phone}, #{applicationType}, #{appropriationAccountId}, #{appropriationBank}, #{appropriationName}, #{appropriationAccount}, #{appropriationOpenAddress}, #{collectionAccountId}, #{collectionBank}, #{collectionName}, #{collectionAccount}, #{collectionOpenAddress}, #{collectionType}, #{appropriationType}, #{applyAmount}, #{purpose}, #{flowNumber}, #{flowNodeId}, #{flowNodeName}, #{pdfUrl}, #{pdfUrlNotice}, #{businessState}, #{applicationState}, #{createTime}, #{updateTime}, #{remark}, #{delFlag})
|
|
|
+ insert into fc_appropriation (id, business_number, bank_code, org_id, org_name, project_id, project_account_id,
|
|
|
+ project_number, project_name, director, phone, application_type,
|
|
|
+ appropriation_account_id, appropriation_bank, appropriation_name,
|
|
|
+ appropriation_account, appropriation_open_address, collection_account_id,
|
|
|
+ collection_bank, collection_name, collection_account, collection_open_address,
|
|
|
+ collection_type, appropriation_type, apply_amount, purpose, flow_number,
|
|
|
+ flow_node_id, flow_node_name, pdf_url, pdf_url_notice, business_state,
|
|
|
+ application_state, create_time, update_time, remark, del_flag)
|
|
|
+ values (#{id}, #{businessNumber}, #{bankCode}, #{orgId}, #{orgName}, #{projectId}, #{projectAccountId},
|
|
|
+ #{projectNumber}, #{projectName}, #{director}, #{phone}, #{applicationType}, #{appropriationAccountId},
|
|
|
+ #{appropriationBank}, #{appropriationName}, #{appropriationAccount}, #{appropriationOpenAddress},
|
|
|
+ #{collectionAccountId}, #{collectionBank}, #{collectionName}, #{collectionAccount},
|
|
|
+ #{collectionOpenAddress}, #{collectionType}, #{appropriationType}, #{applyAmount}, #{purpose},
|
|
|
+ #{flowNumber}, #{flowNodeId}, #{flowNodeName}, #{pdfUrl}, #{pdfUrlNotice}, #{businessState},
|
|
|
+ #{applicationState}, #{createTime}, #{updateTime}, #{remark}, #{delFlag})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入拨付申请业务详情数据 -->
|
|
|
<insert id="insertAppropriationDetail">
|
|
|
insert into
|
|
|
- fc_appropriation_detail (id, appropriation_id, building_account_id, building_number, building_name, account_balance, keep_percentage, keep_amount, apply_amount, create_time, update_time, del_flag)
|
|
|
+ fc_appropriation_detail (id, appropriation_id, building_account_id, building_number, building_name,
|
|
|
+ account_balance, keep_percentage, keep_amount, apply_amount, create_time, update_time, del_flag)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.id}, #{item.appropriationId}, #{item.buildingAccountId}, #{item.buildingNumber}, #{item.buildingName}, #{item.accountBalance}, #{item.keepPercentage}, #{item.keepAmount}, #{item.applyAmount}, #{item.createTime}, #{item.updateTime}, #{item.delFlag})
|
|
|
+ (#{item.id}, #{item.appropriationId}, #{item.buildingAccountId}, #{item.buildingNumber},
|
|
|
+ #{item.buildingName}, #{item.accountBalance}, #{item.keepPercentage}, #{item.keepAmount},
|
|
|
+ #{item.applyAmount}, #{item.createTime}, #{item.updateTime}, #{item.delFlag})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入拨付出账通知书 -->
|
|
|
<insert id="insertAppropriationOutgoing">
|
|
|
insert into
|
|
|
- fc_appropriation_outgoing (id, business_number, bank_code, org_id, org_name, appropriation_id,application_type, project_account_id, project_name, appropriation_account_id, appropriation_bank, appropriation_name, appropriation_account, appropriation_open_address, collection_account_id, collection_bank, collection_name, collection_account, collection_open_address, apply_amount, purpose, type, appropriation_status, pdf_url, is_rescind, create_time, update_time, del_flag, remark)
|
|
|
+ fc_appropriation_outgoing (id, business_number, bank_code, org_id, org_name, appropriation_id,application_type,
|
|
|
+ project_account_id, project_name, appropriation_account_id, appropriation_bank, appropriation_name,
|
|
|
+ appropriation_account, appropriation_open_address, collection_account_id, collection_bank, collection_name,
|
|
|
+ collection_account, collection_open_address, apply_amount, purpose, type, appropriation_status, pdf_url,
|
|
|
+ is_rescind, create_time, update_time, del_flag, remark)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.id}, #{item.businessNumber}, #{item.bankCode}, #{item.orgId}, #{item.orgName}, #{item.appropriationId}, #{item.applicationType}, #{item.projectAccountId}, #{item.projectName}, #{item.appropriationAccountId}, #{item.appropriationBank}, #{item.appropriationName}, #{item.appropriationAccount}, #{item.appropriationOpenAddress}, #{item.collectionAccountId}, #{item.collectionBank}, #{item.collectionName}, #{item.collectionAccount}, #{item.collectionOpenAddress}, #{item.applyAmount}, #{item.purpose}, #{item.type}, #{item.appropriationStatus}, #{item.pdfUrl}, #{item.isRescind}, #{item.createTime}, #{item.updateTime}, #{item.delFlag}, #{item.remark})
|
|
|
+ (#{item.id}, #{item.businessNumber}, #{item.bankCode}, #{item.orgId}, #{item.orgName},
|
|
|
+ #{item.appropriationId}, #{item.applicationType}, #{item.projectAccountId}, #{item.projectName},
|
|
|
+ #{item.appropriationAccountId}, #{item.appropriationBank}, #{item.appropriationName},
|
|
|
+ #{item.appropriationAccount}, #{item.appropriationOpenAddress}, #{item.collectionAccountId},
|
|
|
+ #{item.collectionBank}, #{item.collectionName}, #{item.collectionAccount}, #{item.collectionOpenAddress},
|
|
|
+ #{item.applyAmount}, #{item.purpose}, #{item.type}, #{item.appropriationStatus}, #{item.pdfUrl},
|
|
|
+ #{item.isRescind}, #{item.createTime}, #{item.updateTime}, #{item.delFlag}, #{item.remark})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入拨付入账通知书 -->
|
|
|
<insert id="insertAppropriationPosting">
|
|
|
insert into
|
|
|
- fc_appropriation_posting (id, business_number, bank_code, org_id, org_name, appropriation_id, project_account_id, project_name, appropriation_account_id, appropriation_bank, appropriation_name, appropriation_account, appropriation_open_address, collection_account_id, collection_bank, collection_name, collection_account, collection_open_address, posting_amount, posting_status, purpose, is_rescind, create_time, update_time, del_flag, remark)
|
|
|
+ fc_appropriation_posting (id, business_number, bank_code, org_id, org_name, appropriation_id,
|
|
|
+ project_account_id, project_name, appropriation_account_id, appropriation_bank, appropriation_name,
|
|
|
+ appropriation_account, appropriation_open_address, collection_account_id, collection_bank, collection_name,
|
|
|
+ collection_account, collection_open_address, posting_amount, posting_status, purpose, is_rescind, create_time,
|
|
|
+ update_time, del_flag, remark)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.id}, #{item.businessNumber}, #{item.bankCode}, #{item.orgId}, #{item.orgName}, #{item.appropriationId}, #{item.projectAccountId}, #{item.projectName}, #{item.appropriationAccountId}, #{item.appropriationBank}, #{item.appropriationName}, #{item.appropriationAccount}, #{item.appropriationOpenAddress}, #{item.collectionAccountId}, #{item.collectionBank}, #{item.collectionName}, #{item.collectionAccount}, #{item.collectionOpenAddress}, #{item.postingAmount}, #{item.postingStatus}, #{item.purpose}, #{item.isRescind}, #{item.createTime}, #{item.updateTime}, #{item.delFlag}, #{item.remark})
|
|
|
+ (#{item.id}, #{item.businessNumber}, #{item.bankCode}, #{item.orgId}, #{item.orgName},
|
|
|
+ #{item.appropriationId}, #{item.projectAccountId}, #{item.projectName}, #{item.appropriationAccountId},
|
|
|
+ #{item.appropriationBank}, #{item.appropriationName}, #{item.appropriationAccount},
|
|
|
+ #{item.appropriationOpenAddress}, #{item.collectionAccountId}, #{item.collectionBank},
|
|
|
+ #{item.collectionName}, #{item.collectionAccount}, #{item.collectionOpenAddress}, #{item.postingAmount},
|
|
|
+ #{item.postingStatus}, #{item.purpose}, #{item.isRescind}, #{item.createTime}, #{item.updateTime},
|
|
|
+ #{item.delFlag}, #{item.remark})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入项目解除监管业务数据 -->
|
|
|
<insert id="insertRelieve" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
- insert into
|
|
|
- fc_relieve (id, business_number, org_id, org_name, project_id, project_number, project_name, director, phone, flow_number, flow_node_id, flow_node_name, relieve_type, business_type, business_state, remark, create_time, update_time, del_flag)
|
|
|
- values
|
|
|
- (#{id}, #{businessNumber},#{orgId}, #{orgName}, #{projectId}, #{projectNumber}, #{projectName}, #{director}, #{phone}, #{flowNumber}, #{flowNodeId}, #{flowNodeName}, #{relieveType}, #{businessType}, #{businessState}, #{remark}, #{createTime}, #{updateTime}, #{delFlag})
|
|
|
+ insert into fc_relieve (id, business_number, org_id, org_name, project_id, project_number, project_name,
|
|
|
+ director, phone, flow_number, flow_node_id, flow_node_name, relieve_type, business_type,
|
|
|
+ business_state, remark, create_time, update_time, del_flag)
|
|
|
+ values (#{id}, #{businessNumber}, #{orgId}, #{orgName}, #{projectId}, #{projectNumber}, #{projectName},
|
|
|
+ #{director}, #{phone}, #{flowNumber}, #{flowNodeId}, #{flowNodeName}, #{relieveType}, #{businessType},
|
|
|
+ #{businessState}, #{remark}, #{createTime}, #{updateTime}, #{delFlag})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入项目解除监管业务详情数据 -->
|
|
|
<insert id="insertRelieveDetail">
|
|
|
insert into
|
|
|
- fc_relieve_detail (id, relieve_id, building_account_id, building_id, building_number, building_name, building_address, build_area, account_balance, in_transit_fund)
|
|
|
+ fc_relieve_detail (id, relieve_id, building_account_id, building_id, building_number, building_name,
|
|
|
+ building_address, build_area, account_balance, in_transit_fund)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.id}, #{item.relieveId}, #{item.buildingAccountId}, #{item.buildingId}, #{item.buildingNumber}, #{item.buildingName}, #{item.buildingAddress}, #{item.buildArea}, #{item.accountBalance}, #{item.inTransitFund})
|
|
|
+ (#{item.id}, #{item.relieveId}, #{item.buildingAccountId}, #{item.buildingId}, #{item.buildingNumber},
|
|
|
+ #{item.buildingName}, #{item.buildingAddress}, #{item.buildArea}, #{item.accountBalance},
|
|
|
+ #{item.inTransitFund})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<!-- 插入合同 -->
|
|
|
<insert id="insertContract">
|
|
|
insert into
|
|
|
- fc_contract
|
|
|
- (contract_number, bank_code, org_id, org_name, project_id, project_account_id, project_number, project_name,
|
|
|
- building_id, building_account_id, building_number, building_name, house_id, house_address, house_area, house_use,
|
|
|
- buyer, id_card, pay_way, contract_price, payment_amount_1, payment_amount_2, payment_amount_3, payment_amount_4,
|
|
|
- sign_time, collection_bank, collection_name, collection_account, collection_open_address,
|
|
|
- account_id, account_type, is_mortgage, is_refund, is_earnest, is_rescind, del_flag,is_overdue,payment_status)
|
|
|
+ fc_contract
|
|
|
+ (contract_number, bank_code, org_id, org_name, project_id, project_account_id, project_number, project_name,
|
|
|
+ building_id, building_account_id, building_number, building_name, house_id, house_address, house_area,
|
|
|
+ house_use,
|
|
|
+ buyer, id_card, pay_way, contract_price, payment_amount_1, payment_amount_2, payment_amount_3, payment_amount_4,
|
|
|
+ sign_time, collection_bank, collection_name, collection_account, collection_open_address,
|
|
|
+ account_id, account_type, is_mortgage, is_refund, is_earnest, is_rescind, del_flag,is_overdue,payment_status)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.contractNumber}, #{item.bankCode}, #{item.orgId}, #{item.orgName}, #{item.projectId}, #{item.projectAccountId},
|
|
|
- #{item.projectNumber}, #{item.projectName}, #{item.buildingId}, #{item.buildingAccountId}, #{item.buildingNumber}, #{item.buildingName},
|
|
|
- #{item.houseId}, #{item.houseAddress}, #{item.houseArea}, #{item.houseUse}, #{item.buyer}, #{item.idCard}, #{item.payWay},
|
|
|
- #{item.contractPrice}, #{item.paymentAmount1}, #{item.paymentAmount2}, #{item.paymentAmount3}, #{item.paymentAmount4}, #{item.signTime},
|
|
|
- #{item.collectionBank}, #{item.collectionName}, #{item.collectionAccount},
|
|
|
- #{item.collectionOpenAddress}, #{item.accountId}, #{item.accountType}, #{item.isMortgage}, #{item.isRefund}, #{item.isEarnest},
|
|
|
- #{item.isRescind}, #{item.delFlag},#{item.isOverdue},#{item.paymentStatus})
|
|
|
+ (#{item.contractNumber}, #{item.bankCode}, #{item.orgId}, #{item.orgName}, #{item.projectId},
|
|
|
+ #{item.projectAccountId},
|
|
|
+ #{item.projectNumber}, #{item.projectName}, #{item.buildingId}, #{item.buildingAccountId},
|
|
|
+ #{item.buildingNumber}, #{item.buildingName},
|
|
|
+ #{item.houseId}, #{item.houseAddress}, #{item.houseArea}, #{item.houseUse}, #{item.buyer}, #{item.idCard},
|
|
|
+ #{item.payWay},
|
|
|
+ #{item.contractPrice}, #{item.paymentAmount1}, #{item.paymentAmount2}, #{item.paymentAmount3},
|
|
|
+ #{item.paymentAmount4}, #{item.signTime},
|
|
|
+ #{item.collectionBank}, #{item.collectionName}, #{item.collectionAccount},
|
|
|
+ #{item.collectionOpenAddress}, #{item.accountId}, #{item.accountType}, #{item.isMortgage}, #{item.isRefund},
|
|
|
+ #{item.isEarnest},
|
|
|
+ #{item.isRescind}, #{item.delFlag},#{item.isOverdue},#{item.paymentStatus})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<!--插入交存 -->
|
|
|
<insert id="insertFund">
|
|
|
insert into
|
|
|
- fc_fund (business_number, bank_code, contract_id, contract_number, payment_type, payable_amount, paid_amount, unpaid_amount,
|
|
|
- collection_bank, collection_name, collection_account, collection_open_address, account_type, pdf_url, payment_status,
|
|
|
- is_rescind,del_flag)
|
|
|
+ fc_fund (business_number, bank_code, contract_id, contract_number, payment_type, payable_amount, paid_amount,
|
|
|
+ unpaid_amount,
|
|
|
+ collection_bank, collection_name, collection_account, collection_open_address, account_type, pdf_url,
|
|
|
+ payment_status,
|
|
|
+ is_rescind,del_flag)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.businessNumber}, #{item.bankCode}, #{item.contractId}, #{item.contractNumber}, #{item.paymentType}, #{item.payableAmount},
|
|
|
- #{item.paidAmount}, #{item.unpaidAmount}, #{item.collectionBank}, #{item.collectionName}, #{item.collectionAccount},
|
|
|
- #{item.collectionOpenAddress}, #{item.accountType}, #{item.pdfUrl}, #{item.paymentStatus}, #{item.isRescind},#{item.delFlag})
|
|
|
+ (#{item.businessNumber}, #{item.bankCode}, #{item.contractId}, #{item.contractNumber}, #{item.paymentType},
|
|
|
+ #{item.payableAmount},
|
|
|
+ #{item.paidAmount}, #{item.unpaidAmount}, #{item.collectionBank}, #{item.collectionName},
|
|
|
+ #{item.collectionAccount},
|
|
|
+ #{item.collectionOpenAddress}, #{item.accountType}, #{item.pdfUrl}, #{item.paymentStatus},
|
|
|
+ #{item.isRescind},#{item.delFlag})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<select id="getContractIdByNumber" resultType="long">
|
|
|
- select id from fc_contract where contract_number = #{htbh} ORDER BY is_refund ASC LIMIT 1
|
|
|
+ select id
|
|
|
+ from fc_contract
|
|
|
+ where contract_number = #{htbh}
|
|
|
+ ORDER BY is_refund ASC LIMIT 1
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertEarnest">
|
|
|
insert into
|
|
|
- fc_earnest
|
|
|
- (business_number, bank_code, contract_number, org_id, org_name, project_id, project_account_id,
|
|
|
- project_number, project_name, building_account_id, building_number, building_name, buyer, id_card, phone,
|
|
|
- collection_bank, collection_name, collection_account, collection_open_address, account_id, account_type,
|
|
|
- payable_amount, paid_amount, unpaid_amount, pdf_url, payment_status, connect_status, remark, del_flag)
|
|
|
+ fc_earnest
|
|
|
+ (business_number, bank_code, contract_number, org_id, org_name, project_id, project_account_id,
|
|
|
+ project_number, project_name, building_account_id, building_number, building_name, buyer, id_card, phone,
|
|
|
+ collection_bank, collection_name, collection_account, collection_open_address, account_id, account_type,
|
|
|
+ payable_amount, paid_amount, unpaid_amount, pdf_url, payment_status, connect_status, remark, del_flag)
|
|
|
values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
(#{item.businessNumber}, #{item.bankCode}, #{item.contractNumber}, #{item.orgId}, #{item.orgName},
|
|
|
- #{item.projectId}, #{item.projectAccountId}, #{item.projectNumber}, #{item.projectName}, #{item.buildingAccountId},
|
|
|
- #{item.buildingNumber}, #{item.buildingName}, #{item.buyer}, #{item.idCard}, #{item.phone}, #{item.collectionBank}, #{item.collectionName},
|
|
|
- #{item.collectionAccount}, #{item.collectionOpenAddress}, #{item.accountId}, #{item.accountType}, #{item.payableAmount},
|
|
|
- #{item.paidAmount}, #{item.unpaidAmount}, #{item.pdfUrl}, #{item.paymentStatus}, #{item.connectStatus}, #{item.remark}, #{item.delFlag})
|
|
|
+ #{item.projectId}, #{item.projectAccountId}, #{item.projectNumber}, #{item.projectName},
|
|
|
+ #{item.buildingAccountId},
|
|
|
+ #{item.buildingNumber}, #{item.buildingName}, #{item.buyer}, #{item.idCard}, #{item.phone},
|
|
|
+ #{item.collectionBank}, #{item.collectionName},
|
|
|
+ #{item.collectionAccount}, #{item.collectionOpenAddress}, #{item.accountId}, #{item.accountType},
|
|
|
+ #{item.payableAmount},
|
|
|
+ #{item.paidAmount}, #{item.unpaidAmount}, #{item.pdfUrl}, #{item.paymentStatus}, #{item.connectStatus},
|
|
|
+ #{item.remark}, #{item.delFlag})
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <insert id="insertRefund">
|
|
|
+ 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)
|
|
|
+ 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>
|
|
|
</insert>
|
|
|
+
|
|
|
+ <select id="getInfoByNumber" resultType="com.cool.bang.modules.mysql.domain.ContractInfo">
|
|
|
+ select id, contract_price AS contractPrice
|
|
|
+ from fc_contract
|
|
|
+ where contract_number = #{htBh} LIMIT 1
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertFcTrade">
|
|
|
+ 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)
|
|
|
+ values
|
|
|
+ <foreach collection="list" item="item" separator=",">
|
|
|
+ (#{item.serialNumber}, #{item.flushSerialNumber}, #{item.businessNumber}, #{item.channelType},
|
|
|
+ #{item.channelCode},
|
|
|
+ #{item.accountType}, #{item.account}, #{item.accountId}, #{item.projectAccountId},
|
|
|
+ #{item.buildingAccountId}, #{item.amount},
|
|
|
+ #{item.type}, #{item.transactionMode}, #{item.transactionTime}, #{item.accountBalance},
|
|
|
+ #{item.reciprocalAccount}, #{item.checkStatus},
|
|
|
+ #{item.checkDate}, #{item.isFlush}, #{item.remark},#{item.delFlag})
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <select id="selectTgXm" resultType="map">
|
|
|
+ select *
|
|
|
+ FROM fc_project
|
|
|
+ WHERE state = 1
|
|
|
+ AND type = 1
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectXmAccountByProjectId" resultType="map">
|
|
|
+ SELECT pa.*,a.name
|
|
|
+ FROM fc_project_account pa
|
|
|
+ LEFT JOIN fc_account a ON pa.account_id = a.id
|
|
|
+ WHERE pa.account_type = 1
|
|
|
+ AND pa.state = 1
|
|
|
+ AND pa.del_flag = 1
|
|
|
+ AND pa.project_id = #{projectId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectBuildingBy" resultType="map">
|
|
|
+ SELECT *
|
|
|
+ FROM fc_building_account
|
|
|
+ WHERE project_id = #{projectId}
|
|
|
+ AND project_account_id = #{projectAccountId}
|
|
|
+ AND account_type = 1
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getAccountBalanceByNumber" resultType="decimal">
|
|
|
+ select account_balance from fc_building_account where building_number = #{buildingNumber}
|
|
|
+ </select>
|
|
|
</mapper>
|