TrusteeshipMapper.xml 3.3 KB

1234567891011121314151617181920212223242526272829
  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.TrusteeshipMapper">
  4. <!-- 插入托管申请业务数据 -->
  5. <insert id="insertTrusteeshipBusiness" parameterType="com.cool.bang.modules.mysql.domain.TrusteeshipBusiness" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
  6. insert into
  7. fc_trusteeship_business (id, business_number, org_id, org_name, project_id, project_name, project_number, project_address, build_area, build_cost_id, build_cost_name, legal_person, legal_phone, operator, operator_phone, signer, signer_phone, flow_number, flow_node_id, flow_node_name, pdf_url, submit_date, business_state, create_time, del_flag)
  8. values
  9. (#{id}, #{businessNumber}, #{orgId}, #{orgName}, #{projectId}, #{projectName}, #{projectNumber}, #{projectAddress}, #{buildArea}, #{buildCostId}, #{buildCostName}, #{legalPerson}, #{legalPhone}, #{operator}, #{operatorPhone}, #{signer} ,#{signerPhone}, #{flowNumber}, #{flowNodeId}, #{flowNodeName}, #{pdfUrl}, #{submitDate}, #{businessState}, #{createTime}, #{delFlag})
  10. </insert>
  11. <!-- 插入托管协议表数据 -->
  12. <insert id="insertTrusteeshipAgreement" parameterType="com.cool.bang.modules.mysql.domain.TrusteeshipAgreement">
  13. insert into
  14. fc_trusteeship_agreement (id, business_number, trusteeship_id, org_id, org_name, trusteeship_org, project_id, project_number, project_name, project_address, build_area, build_cost_id, build_cost_name, building, trusteeship0_bank_code, trusteeship0_bank, trusteeship0_account_id, trusteeship0_account, trusteeship0_range, trusteeship1_bank, trusteeship1_bank_code, trusteeship1_account_id, trusteeship1_account, trusteeship1_range, trusteeship2_bank, trusteeship2_bank_code, trusteeship2_account_id, trusteeship2_account, trusteeship2_range, signer, sign_state, create_time, del_flag)
  15. values
  16. (#{id}, #{businessNumber},#{trusteeshipId},#{orgId},#{orgName},#{trusteeshipOrg},#{projectId},#{projectNumber},#{projectName},#{projectAddress},#{buildArea},#{buildCostId},#{buildCostName},#{building},#{trusteeship0BankCode},#{trusteeship0Bank},#{trusteeship0AccountId},#{trusteeship0Account},#{trusteeship0Range},#{trusteeship1Bank},#{trusteeship1BankCode},#{trusteeship1AccountId},#{trusteeship1Account},#{trusteeship1Range},#{trusteeship2Bank},#{trusteeship2BankCode},#{trusteeship2AccountId},#{trusteeship2Account},#{trusteeship2Range},#{signer},#{signState}, #{createTime}, #{delFlag})
  17. </insert>
  18. <insert id="insertSignatory" parameterType="com.cool.bang.modules.mysql.domain.Signatory">
  19. insert into
  20. fc_signatory (id, business_number, tenant_name, contract_id, document_id, company_seal_id, lp_seal_id, signer, signer_phone, serial_no, action_name, pdf_url, state, sign_time)
  21. values
  22. <foreach collection="list" item="item" separator=",">
  23. (#{item.id}, #{item.businessNumber}, #{item.tenantName}, #{item.contractId}, #{item.documentId}, #{item.companySealId}, #{item.lpSealId}, #{item.signer}, #{item.signerPhone}, #{item.serialNo}, #{item.actionName}, #{item.pdfUrl}, #{item.state}, #{item.signTime})
  24. </foreach>
  25. </insert>
  26. </mapper>