MySQLMapper.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.cool.bang.modules.mysql.mapper.MySqlMapper">
  4. <!-- 插入监管开户申请业务表数据 -->
  5. <insert id="insertSuperviseBusiness">
  6. insert into
  7. 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)
  8. values
  9. <foreach collection="list" item="item" separator=",">
  10. (#{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})
  11. </foreach>
  12. </insert>
  13. <!-- 插入监管解除申请业务表数据 -->
  14. <insert id="insertSuperviseRelieve">
  15. insert into
  16. fc_supervise_relieve (id, business_number, account_id, name, account, org_id, org_name, bank_code, bank_name, account_open_address, project_id, project_number, project_name, project_address, pdf_url, business_state, create_time, update_time, del_flag)
  17. values
  18. <foreach collection="list" item="item" separator=",">
  19. (#{item.id}, #{item.businessNumber}, #{item.accountId}, #{item.name}, #{item.account}, #{item.orgId}, #{item.orgName}, #{item.bankCode}, #{item.bankName}, #{item.accountOpenAddress}, #{item.projectId}, #{item.projectNumber}, #{item.projectName}, #{item.projectAddress}, #{item.pdfUrl}, #{item.businessState}, #{item.createTime}, #{item.updateTime}, #{item.delFlag})
  20. </foreach>
  21. </insert>
  22. <!-- 插入监管资金转托管业务数据 -->
  23. <insert id="insertSuperviseTo" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
  24. insert into
  25. 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)
  26. values
  27. (#{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})
  28. </insert>
  29. <!-- 插入监管资金转托管详情数据 -->
  30. <insert id="insertSuperviseToDetail">
  31. insert into
  32. 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)
  33. values
  34. <foreach collection="list" item="item" separator=",">
  35. (#{item.id}, #{item.superviseToId}, #{item.buildingAccountId}, #{item.buildingNumber}, #{item.buildingName}, #{item.accountBalance}, #{item.keepPercentage}, #{item.keepAmount}, #{item.transferAmount}, #{item.createTime}, #{item.updateTime}, #{item.delFlag})
  36. </foreach>
  37. </insert>
  38. <!-- 插入监管资金转托管 转入通知书数据 -->
  39. <insert id="insertSuperviseToPosting">
  40. insert into
  41. 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)
  42. values
  43. <foreach collection="list" item="item" separator=",">
  44. (#{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})
  45. </foreach>
  46. </insert>
  47. <!-- 插入监管资金转托管 转出通知书数据 -->
  48. <insert id="insertSuperviseToOutgoing">
  49. insert into
  50. 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)
  51. values
  52. <foreach collection="list" item="item" separator=",">
  53. (#{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})
  54. </foreach>
  55. </insert>
  56. <!-- 插入施工进度申请业务信息 -->
  57. <insert id="insertProgress" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
  58. insert into
  59. 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)
  60. values
  61. (#{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})
  62. </insert>
  63. <!-- 插入施工进度申请明细表信息 -->
  64. <insert id="insertProgressDetail">
  65. insert into
  66. 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)
  67. values
  68. <foreach collection="list" item="item" separator=",">
  69. (#{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})
  70. </foreach>
  71. </insert>
  72. <!-- 插入拨付申请业务数据 -->
  73. <insert id="insertAppropriation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
  74. insert into
  75. 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)
  76. values
  77. (#{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})
  78. </insert>
  79. <!-- 插入拨付申请业务详情数据 -->
  80. <insert id="insertAppropriationDetail">
  81. insert into
  82. 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)
  83. values
  84. <foreach collection="list" item="item" separator=",">
  85. (#{item.id}, #{item.appropriationId}, #{item.buildingAccountId}, #{item.buildingNumber}, #{item.buildingName}, #{item.accountBalance}, #{item.keepPercentage}, #{item.keepAmount}, #{item.applyAmount}, #{item.createTime}, #{item.updateTime}, #{item.delFlag})
  86. </foreach>
  87. </insert>
  88. <!-- 插入拨付出账通知书 -->
  89. <insert id="insertAppropriationOutgoing">
  90. insert into
  91. 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)
  92. values
  93. <foreach collection="list" item="item" separator=",">
  94. (#{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})
  95. </foreach>
  96. </insert>
  97. <!-- 插入拨付入账通知书 -->
  98. <insert id="insertAppropriationPosting">
  99. insert into
  100. 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)
  101. values
  102. <foreach collection="list" item="item" separator=",">
  103. (#{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})
  104. </foreach>
  105. </insert>
  106. </mapper>