TaskDetailsMapper.xml 73 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282
  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.goafanti.common.dao.TaskDetailsMapper">
  4. <resultMap type="com.goafanti.common.model.TaskDetails" id="TaskDetailsMap">
  5. <result property="id" column="id" jdbcType="INTEGER"/>
  6. <result property="tid" column="tid" jdbcType="INTEGER"/>
  7. <result property="uid" column="uid" jdbcType="VARCHAR"/>
  8. <result property="taskName" column="task_name" jdbcType="VARCHAR"/>
  9. <result property="projectName" column="project_name" jdbcType="VARCHAR"/>
  10. <result property="technologyName" column="technology_name" jdbcType="VARCHAR"/>
  11. <result property="financeTaxationName" column="finance_taxation_name" jdbcType="VARCHAR"/>
  12. <result property="lastYear" column="last_year" jdbcType="INTEGER"/>
  13. <result property="lastRdSalesAmount" column="last_rd_sales_amount" jdbcType="VARCHAR"/>
  14. <result property="lastRdBudget" column="last_rd_budget" jdbcType="VARCHAR"/>
  15. <result property="beforeLastYear" column="before_last_year" jdbcType="INTEGER"/>
  16. <result property="beforeLastRdSalesAmount" column="before_last_rd_sales_amount" jdbcType="VARCHAR"/>
  17. <result property="beforeLastRdBudget" column="before_last_rd_budget" jdbcType="VARCHAR"/>
  18. <result property="workersNumber" column="workers_number" jdbcType="INTEGER"/>
  19. <result property="technologyNumber" column="technology_number" jdbcType="INTEGER"/>
  20. <result property="workersRate" column="workers_rate" jdbcType="NUMERIC"/>
  21. <result property="projectApprovalNumber" column="project_approval_number" jdbcType="INTEGER"/>
  22. <result property="rdBudget" column="rd_budget" jdbcType="VARCHAR"/>
  23. <result property="rdBudgetRate" column="rd_budget_rate" jdbcType="NUMERIC"/>
  24. <result property="threeYearsRdBudgetRate" column="three_years_rd_budget_rate" jdbcType="NUMERIC"/>
  25. <result property="rdSalesAmount" column="rd_sales_amount" jdbcType="VARCHAR"/>
  26. <result property="dataCycle" column="data_cycle" jdbcType="INTEGER"/>
  27. <result property="actualSalesAmount" column="actual_sales_amount" jdbcType="VARCHAR"/>
  28. <result property="actualRdNumber" column="actual_rd_number" jdbcType="INTEGER"/>
  29. <result property="actualOutsourcingNumber" column="actual_outsourcing_number" jdbcType="INTEGER"/>
  30. <result property="actualCooperateNumber" column="actual_cooperate_number" jdbcType="INTEGER"/>
  31. <result property="actualRegistrationNumber" column="actual_registration_number" jdbcType="INTEGER"/>
  32. <result property="actualRdAmount" column="actual_rd_amount" jdbcType="VARCHAR"/>
  33. <result property="actualRdRate" column="actual_rd_rate" jdbcType="NUMERIC"/>
  34. <result property="threeYearsActualRdRate" column="three_years_actual_rd_rate" jdbcType="NUMERIC"/>
  35. <result property="rdCompletionProgress" column="rd_completion_progress" jdbcType="NUMERIC"/>
  36. <result property="torchStatus" column="torch_status" jdbcType="INTEGER"/>
  37. <result property="chStatus" column="ch_status" jdbcType="INTEGER"/>
  38. <result property="statisticsStatus" column="statistics_status" jdbcType="INTEGER"/>
  39. <result property="finalSettlementStatus" column="final_settlement_status" jdbcType="INTEGER"/>
  40. <result property="torchOther" column="torch_other" jdbcType="VARCHAR"/>
  41. <result property="chOther" column="ch_other" jdbcType="VARCHAR"/>
  42. <result property="statisticsOther" column="statistics_other" jdbcType="VARCHAR"/>
  43. <result property="finalSettlementOther" column="final_settlement_other" jdbcType="VARCHAR"/>
  44. <result property="reportFormsRdNumber" column="report_forms_rd_number" jdbcType="INTEGER"/>
  45. <result property="intellectualPropertyAmount" column="intellectual_property_amount" jdbcType="VARCHAR"/>
  46. <result property="reportRdAmount" column="report_rd_amount" jdbcType="VARCHAR"/>
  47. <result property="rdReservesStatus" column="rd_reserves_status" jdbcType="INTEGER"/>
  48. <result property="rdReservesOther" column="rd_reserves_other" jdbcType="VARCHAR"/>
  49. <result property="rdAwardCompensationStatus" column="rd_award_compensation_status" jdbcType="INTEGER"/>
  50. <result property="rdAwardCompensationOther" column="rd_award_compensation_other" jdbcType="VARCHAR"/>
  51. <result property="rdApplicationFee" column="rd_application_fee" jdbcType="VARCHAR"/>
  52. <result property="rdAnnouncementAmount" column="rd_announcement_amount" jdbcType="VARCHAR"/>
  53. <result property="rdAnnouncementOther" column="rd_announcement_other" jdbcType="VARCHAR"/>
  54. <result property="adDeliverStatus" column="ad_deliver_status" jdbcType="INTEGER"/>
  55. <result property="adDeliverOther" column="ad_deliver_other" jdbcType="VARCHAR"/>
  56. <result property="adDeliverFinish" column="ad_deliver_finish" jdbcType="INTEGER"/>
  57. <result property="htDeliverStatus" column="ht_deliver_status" jdbcType="INTEGER"/>
  58. <result property="htDeliverOther" column="ht_deliver_other" jdbcType="VARCHAR"/>
  59. <result property="htDeliverFinish" column="ht_deliver_finish" jdbcType="INTEGER"/>
  60. <result property="closeMeetingStatus" column="close_meeting_status" jdbcType="INTEGER"/>
  61. <result property="closeMeetingOther" column="close_meeting_other" jdbcType="VARCHAR"/>
  62. <result property="phasedType" column="phased_type" jdbcType="INTEGER"/>
  63. <result property="phasedContent" column="phased_content" jdbcType="VARCHAR"/>
  64. <result property="projectApprovalWriteNumber" column="project_approval_write_number" jdbcType="INTEGER"/>
  65. <result property="projectApprovalWriteRate" column="project_approval_write_rate" jdbcType="NUMERIC"/>
  66. <result property="adPrepareJulyStatus" column="ad_prepare_july_status" jdbcType="INTEGER"/>
  67. <result property="adPrepareJulyOther" column="ad_prepare_july_other" jdbcType="VARCHAR"/>
  68. <result property="adPrepareOctoberStatus" column="ad_prepare_october_status" jdbcType="INTEGER"/>
  69. <result property="adPrepareOctoberOther" column="ad_prepare_october_other" jdbcType="VARCHAR"/>
  70. <result property="ipInventionPatentDeclare" column="ip_invention_patent_declare" jdbcType="INTEGER"/>
  71. <result property="ipInventionPatentAuthorize" column="ip_invention_patent_authorize" jdbcType="INTEGER"/>
  72. <result property="ipInventionPatentAuthorizeCount" column="ip_invention_patent_authorize_count" jdbcType="INTEGER"/>
  73. <result property="ipUtilityModelDeclare" column="ip_utility_model_declare" jdbcType="INTEGER"/>
  74. <result property="ipUtilityModelAuthorize" column="ip_utility_model_authorize" jdbcType="INTEGER"/>
  75. <result property="ipUtilityModelAuthorizeCount" column="ip_utility_model_authorize_count" jdbcType="INTEGER"/>
  76. <result property="ipSoftwareWorksDeclare" column="ip_software_works_declare" jdbcType="INTEGER"/>
  77. <result property="ipSoftwareWorksAuthorize" column="ip_software_works_authorize" jdbcType="INTEGER"/>
  78. <result property="ipSoftwareWorksAuthorizeCount" column="ip_software_works_authorize_count" jdbcType="INTEGER"/>
  79. <result property="ipHt" column="ip_ht" jdbcType="INTEGER"/>
  80. <result property="ipHtI" column="ip_ht_i" jdbcType="INTEGER"/>
  81. <result property="ipHtIi" column="ip_ht_ii" jdbcType="INTEGER"/>
  82. <result property="outsourcingDev" column="outsourcing_dev" jdbcType="INTEGER"/>
  83. <result property="contractRegistration" column="contract_registration" jdbcType="INTEGER"/>
  84. <result property="publicReleaseStipulation" column="public_release_stipulation" jdbcType="INTEGER"/>
  85. <result property="publicReleaseActual" column="public_release_actual" jdbcType="INTEGER"/>
  86. <result property="trainingStipulation" column="training_stipulation" jdbcType="INTEGER"/>
  87. <result property="trainingActual" column="training_actual" jdbcType="INTEGER"/>
  88. <result property="trainingOther" column="training_other" jdbcType="VARCHAR"/>
  89. <result property="htScore" column="ht_score" jdbcType="INTEGER"/>
  90. <result property="htBatch" column="ht_batch" jdbcType="INTEGER"/>
  91. <result property="htFocus" column="ht_focus" jdbcType="INTEGER"/>
  92. <result property="webSubmit" column="web_submit" jdbcType="INTEGER"/>
  93. <result property="webSubmitOther" column="web_submit_other" jdbcType="VARCHAR"/>
  94. <result property="paperSubmit" column="paper_submit" jdbcType="INTEGER"/>
  95. <result property="paperSubmitOther" column="paper_submit_other" jdbcType="VARCHAR"/>
  96. <result property="reviewProvince" column="review_province" jdbcType="INTEGER"/>
  97. <result property="reviewCountry" column="review_country" jdbcType="INTEGER"/>
  98. <result property="reviewProvinceNumber" column="review_province_number" jdbcType="INTEGER"/>
  99. <result property="reviewCountryNumber" column="review_country_number" jdbcType="INTEGER"/>
  100. <result property="remarks" column="remarks" jdbcType="VARCHAR"/>
  101. <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
  102. <result property="downloadTime" column="download_time" jdbcType="TIMESTAMP"/>
  103. <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
  104. <result property="memberLvl" column="member_lvl" jdbcType="INTEGER"/>
  105. </resultMap>
  106. <sql id="TaskDetailsAllSql">
  107. id, tid, uid, task_name, project_name, technology_name, finance_taxation_name, last_year, last_rd_sales_amount, last_rd_budget, before_last_year, before_last_rd_sales_amount, before_last_rd_budget, workers_number, technology_number, workers_rate, project_approval_number, rd_budget, rd_budget_rate, three_years_rd_budget_rate, rd_sales_amount, data_cycle, actual_sales_amount, actual_rd_number, actual_outsourcing_number, actual_cooperate_number, actual_registration_number, actual_rd_amount, actual_rd_rate, three_years_actual_rd_rate, rd_completion_progress, torch_status, ch_status, statistics_status, final_settlement_status, torch_other, ch_other, statistics_other, final_settlement_other, report_forms_rd_number, intellectual_property_amount, report_rd_amount, rd_reserves_status, rd_reserves_other, rd_award_compensation_status, rd_award_compensation_other, rd_application_fee, rd_announcement_amount, rd_announcement_other, ad_deliver_status, ad_deliver_other, ad_deliver_finish, ht_deliver_status, ht_deliver_other, ht_deliver_finish, close_meeting_status, close_meeting_other, phased_type, phased_content, project_approval_write_number, project_approval_write_rate, ad_prepare_july_status, ad_prepare_july_other, ad_prepare_october_status, ad_prepare_october_other, ip_invention_patent_declare, ip_invention_patent_authorize, ip_invention_patent_authorize_count, ip_utility_model_declare, ip_utility_model_authorize, ip_utility_model_authorize_count, ip_software_works_declare, ip_software_works_authorize, ip_software_works_authorize_count, ip_ht, ip_ht_i, ip_ht_ii, outsourcing_dev, contract_registration, public_release_stipulation, public_release_actual, training_stipulation, training_actual, training_other, ht_score, ht_batch, ht_focus, web_submit, web_submit_other, paper_submit, paper_submit_other, review_province, review_country, review_province_number, review_country_number, remarks, update_time, download_time, create_time, member_lvl
  108. </sql>
  109. <!--查询单个-->
  110. <select id="selectById" resultMap="TaskDetailsMap">
  111. select
  112. <include refid="TaskDetailsAllSql"/>
  113. from task_details
  114. where id = #{id}
  115. </select>
  116. <!--新增所有列-->
  117. <insert id="insert" keyProperty="id" useGeneratedKeys="true">
  118. insert into task_details(tid, uid, task_name, project_name, technology_name, finance_taxation_name, last_year, last_rd_sales_amount, last_rd_budget, before_last_year, before_last_rd_sales_amount, before_last_rd_budget, workers_number, technology_number, workers_rate, project_approval_number, rd_budget, rd_budget_rate, three_years_rd_budget_rate, rd_sales_amount, data_cycle, actual_sales_amount, actual_rd_number, actual_outsourcing_number, actual_cooperate_number, actual_registration_number, actual_rd_amount, actual_rd_rate, three_years_actual_rd_rate, rd_completion_progress, torch_status, ch_status, statistics_status, final_settlement_status, torch_other, ch_other, statistics_other, final_settlement_other, report_forms_rd_number, intellectual_property_amount, report_rd_amount, rd_reserves_status, rd_reserves_other, rd_award_compensation_status, rd_award_compensation_other, rd_application_fee, rd_announcement_amount, rd_announcement_other, ad_deliver_status, ad_deliver_other, ad_deliver_finish, ht_deliver_status, ht_deliver_other, ht_deliver_finish, close_meeting_status, close_meeting_other, phased_type, phased_content, project_approval_write_number, project_approval_write_rate, ad_prepare_july_status, ad_prepare_july_other, ad_prepare_october_status, ad_prepare_october_other, ip_invention_patent_declare, ip_invention_patent_authorize, ip_invention_patent_authorize_count, ip_utility_model_declare, ip_utility_model_authorize, ip_utility_model_authorize_count, ip_software_works_declare, ip_software_works_authorize, ip_software_works_authorize_count, ip_ht, ip_ht_i, ip_ht_ii, outsourcing_dev, contract_registration, public_release_stipulation, public_release_actual, training_stipulation, training_actual, training_other, ht_score, ht_batch, ht_focus, web_submit, web_submit_other, paper_submit, paper_submit_other, review_province, review_country, review_province_number, review_country_number, remarks, update_time, download_time, create_time, member_lvl)
  119. values (#{tid}, #{uid}, #{taskName}, #{projectName}, #{technologyName}, #{financeTaxationName}, #{lastYear}, #{lastRdSalesAmount}, #{lastRdBudget}, #{beforeLastYear}, #{beforeLastRdSalesAmount}, #{beforeLastRdBudget}, #{workersNumber}, #{technologyNumber}, #{workersRate}, #{projectApprovalNumber}, #{rdBudget}, #{rdBudgetRate}, #{threeYearsRdBudgetRate}, #{rdSalesAmount}, #{dataCycle}, #{actualSalesAmount}, #{actualRdNumber}, #{actualOutsourcingNumber}, #{actualCooperateNumber}, #{actualRegistrationNumber}, #{actualRdAmount}, #{actualRdRate}, #{threeYearsActualRdRate}, #{rdCompletionProgress}, #{torchStatus}, #{chStatus}, #{statisticsStatus}, #{finalSettlementStatus}, #{torchOther}, #{chOther}, #{statisticsOther}, #{finalSettlementOther}, #{reportFormsRdNumber}, #{intellectualPropertyAmount}, #{reportRdAmount}, #{rdReservesStatus}, #{rdReservesOther}, #{rdAwardCompensationStatus}, #{rdAwardCompensationOther}, #{rdApplicationFee}, #{rdAnnouncementAmount}, #{rdAnnouncementOther}, #{adDeliverStatus}, #{adDeliverOther}, #{adDeliverFinish}, #{htDeliverStatus}, #{htDeliverOther}, #{htDeliverFinish}, #{closeMeetingStatus}, #{closeMeetingOther}, #{phasedType}, #{phasedContent}, #{projectApprovalWriteNumber}, #{projectApprovalWriteRate}, #{adPrepareJulyStatus}, #{adPrepareJulyOther}, #{adPrepareOctoberStatus}, #{adPrepareOctoberOther}, #{ipInventionPatentDeclare}, #{ipInventionPatentAuthorize}, #{ipInventionPatentAuthorizeCount}, #{ipUtilityModelDeclare}, #{ipUtilityModelAuthorize}, #{ipUtilityModelAuthorizeCount}, #{ipSoftwareWorksDeclare}, #{ipSoftwareWorksAuthorize}, #{ipSoftwareWorksAuthorizeCount}, #{ipHt}, #{ipHtI}, #{ipHtIi}, #{outsourcingDev}, #{contractRegistration}, #{publicReleaseStipulation}, #{publicReleaseActual}, #{trainingStipulation}, #{trainingActual}, #{trainingOther}, #{htScore}, #{htBatch}, #{htFocus}, #{webSubmit}, #{webSubmitOther}, #{paperSubmit}, #{paperSubmitOther}, #{reviewProvince}, #{reviewCountry}, #{reviewProvinceNumber}, #{reviewCountryNumber}, #{remarks}, #{updateTime}, #{downloadTime}, #{createTime}, #{memberLvl})
  120. </insert>
  121. <insert id="insertBatch">
  122. insert into task_details(tid, uid, task_name, project_name, technology_name, finance_taxation_name, last_year, last_rd_sales_amount, last_rd_budget, before_last_year, before_last_rd_sales_amount, before_last_rd_budget, workers_number, technology_number, workers_rate, project_approval_number, rd_budget, rd_budget_rate, three_years_rd_budget_rate, rd_sales_amount, data_cycle, actual_sales_amount, actual_rd_number, actual_outsourcing_number, actual_cooperate_number, actual_registration_number, actual_rd_amount, actual_rd_rate, three_years_actual_rd_rate, rd_completion_progress, torch_status, ch_status, statistics_status, final_settlement_status, torch_other, ch_other, statistics_other, final_settlement_other, report_forms_rd_number, intellectual_property_amount, report_rd_amount, rd_reserves_status, rd_reserves_other, rd_award_compensation_status, rd_award_compensation_other, rd_application_fee, rd_announcement_amount, rd_announcement_other, ad_deliver_status, ad_deliver_other, ad_deliver_finish, ht_deliver_status, ht_deliver_other, ht_deliver_finish, close_meeting_status, close_meeting_other, phased_type, phased_content, project_approval_write_number, project_approval_write_rate, ad_prepare_july_status, ad_prepare_july_other, ad_prepare_october_status, ad_prepare_october_other, ip_invention_patent_declare, ip_invention_patent_authorize, ip_invention_patent_authorize_count, ip_utility_model_declare, ip_utility_model_authorize, ip_utility_model_authorize_count, ip_software_works_declare, ip_software_works_authorize, ip_software_works_authorize_count, ip_ht, ip_ht_i, ip_ht_ii, outsourcing_dev, contract_registration, public_release_stipulation, public_release_actual, training_stipulation, training_actual, training_other, ht_score, ht_batch, ht_focus, web_submit, web_submit_other, paper_submit, paper_submit_other, review_province, review_country, review_province_number, review_country_number, remarks, update_time, download_time, create_time, member_lvl)
  123. values
  124. <foreach collection="entities" item="entity" separator=",">
  125. (#{entity.tid}, #{entity.uid}, #{entity.taskName}, #{entity.projectName}, #{entity.technologyName}, #{entity.financeTaxationName}, #{entity.lastYear}, #{entity.lastRdSalesAmount}, #{entity.lastRdBudget}, #{entity.beforeLastYear}, #{entity.beforeLastRdSalesAmount}, #{entity.beforeLastRdBudget}, #{entity.workersNumber}, #{entity.technologyNumber}, #{entity.workersRate}, #{entity.projectApprovalNumber}, #{entity.rdBudget}, #{entity.rdBudgetRate}, #{entity.threeYearsRdBudgetRate}, #{entity.rdSalesAmount}, #{entity.dataCycle}, #{entity.actualSalesAmount}, #{entity.actualRdNumber}, #{entity.actualOutsourcingNumber}, #{entity.actualCooperateNumber}, #{entity.actualRegistrationNumber}, #{entity.actualRdAmount}, #{entity.actualRdRate}, #{entity.threeYearsActualRdRate}, #{entity.rdCompletionProgress}, #{entity.torchStatus}, #{entity.chStatus}, #{entity.statisticsStatus}, #{entity.finalSettlementStatus}, #{entity.torchOther}, #{entity.chOther}, #{entity.statisticsOther}, #{entity.finalSettlementOther}, #{entity.reportFormsRdNumber}, #{entity.intellectualPropertyAmount}, #{entity.reportRdAmount}, #{entity.rdReservesStatus}, #{entity.rdReservesOther}, #{entity.rdAwardCompensationStatus}, #{entity.rdAwardCompensationOther}, #{entity.rdApplicationFee}, #{entity.rdAnnouncementAmount}, #{entity.rdAnnouncementOther}, #{entity.adDeliverStatus}, #{entity.adDeliverOther}, #{entity.adDeliverFinish}, #{entity.htDeliverStatus}, #{entity.htDeliverOther}, #{entity.htDeliverFinish}, #{entity.closeMeetingStatus}, #{entity.closeMeetingOther}, #{entity.phasedType}, #{entity.phasedContent}, #{entity.projectApprovalWriteNumber}, #{entity.projectApprovalWriteRate}, #{entity.adPrepareJulyStatus}, #{entity.adPrepareJulyOther}, #{entity.adPrepareOctoberStatus}, #{entity.adPrepareOctoberOther}, #{entity.ipInventionPatentDeclare}, #{entity.ipInventionPatentAuthorize}, #{entity.ipInventionPatentAuthorizeCount}, #{entity.ipUtilityModelDeclare}, #{entity.ipUtilityModelAuthorize}, #{entity.ipUtilityModelAuthorizeCount}, #{entity.ipSoftwareWorksDeclare}, #{entity.ipSoftwareWorksAuthorize}, #{entity.ipSoftwareWorksAuthorizeCount}, #{entity.ipHt}, #{entity.ipHtI}, #{entity.ipHtIi}, #{entity.outsourcingDev}, #{entity.contractRegistration}, #{entity.publicReleaseStipulation}, #{entity.publicReleaseActual}, #{entity.trainingStipulation}, #{entity.trainingActual}, #{entity.trainingOther}, #{entity.htScore}, #{entity.htBatch}, #{entity.htFocus}, #{entity.webSubmit}, #{entity.webSubmitOther}, #{entity.paperSubmit}, #{entity.paperSubmitOther}, #{entity.reviewProvince}, #{entity.reviewCountry}, #{entity.reviewProvinceNumber}, #{entity.reviewCountryNumber}, #{entity.remarks}, #{entity.updateTime}, #{entity.downloadTime}, #{entity.createTime}, #{entity.memberLvl})
  126. </foreach>
  127. </insert>
  128. <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
  129. insert into task_details(tid, uid, task_name, project_name, technology_name, finance_taxation_name, last_year, last_rd_sales_amount, last_rd_budget, before_last_year, before_last_rd_sales_amount, before_last_rd_budget, workers_number, technology_number, workers_rate, project_approval_number, rd_budget, rd_budget_rate, three_years_rd_budget_rate, rd_sales_amount, data_cycle, actual_sales_amount, actual_rd_number, actual_outsourcing_number, actual_cooperate_number, actual_registration_number, actual_rd_amount, actual_rd_rate, three_years_actual_rd_rate, rd_completion_progress, torch_status, ch_status, statistics_status, final_settlement_status, torch_other, ch_other, statistics_other, final_settlement_other, report_forms_rd_number, intellectual_property_amount, report_rd_amount, rd_reserves_status, rd_reserves_other, rd_award_compensation_status, rd_award_compensation_other, rd_application_fee, rd_announcement_amount, rd_announcement_other, ad_deliver_status, ad_deliver_other, ad_deliver_finish, ht_deliver_status, ht_deliver_other, ht_deliver_finish, close_meeting_status, close_meeting_other, phased_type, phased_content, project_approval_write_number, project_approval_write_rate, ad_prepare_july_status, ad_prepare_july_other, ad_prepare_october_status, ad_prepare_october_other, ip_invention_patent_declare, ip_invention_patent_authorize, ip_invention_patent_authorize_count, ip_utility_model_declare, ip_utility_model_authorize, ip_utility_model_authorize_count, ip_software_works_declare, ip_software_works_authorize, ip_software_works_authorize_count, ip_ht, ip_ht_i, ip_ht_ii, outsourcing_dev, contract_registration, public_release_stipulation, public_release_actual, training_stipulation, training_actual, training_other, ht_score, ht_batch, ht_focus, web_submit, web_submit_other, paper_submit, paper_submit_other, review_province, review_country, review_province_number, review_country_number, remarks, update_time, download_time, create_time, member_lvl)
  130. values
  131. <foreach collection="entities" item="entity" separator=",">
  132. (#{entity.tid}, #{entity.uid}, #{entity.taskName}, #{entity.projectName}, #{entity.technologyName}, #{entity.financeTaxationName}, #{entity.lastYear}, #{entity.lastRdSalesAmount}, #{entity.lastRdBudget}, #{entity.beforeLastYear}, #{entity.beforeLastRdSalesAmount}, #{entity.beforeLastRdBudget}, #{entity.workersNumber}, #{entity.technologyNumber}, #{entity.workersRate}, #{entity.projectApprovalNumber}, #{entity.rdBudget}, #{entity.rdBudgetRate}, #{entity.threeYearsRdBudgetRate}, #{entity.rdSalesAmount}, #{entity.dataCycle}, #{entity.actualSalesAmount}, #{entity.actualRdNumber}, #{entity.actualOutsourcingNumber}, #{entity.actualCooperateNumber}, #{entity.actualRegistrationNumber}, #{entity.actualRdAmount}, #{entity.actualRdRate}, #{entity.threeYearsActualRdRate}, #{entity.rdCompletionProgress}, #{entity.torchStatus}, #{entity.chStatus}, #{entity.statisticsStatus}, #{entity.finalSettlementStatus}, #{entity.torchOther}, #{entity.chOther}, #{entity.statisticsOther}, #{entity.finalSettlementOther}, #{entity.reportFormsRdNumber}, #{entity.intellectualPropertyAmount}, #{entity.reportRdAmount}, #{entity.rdReservesStatus}, #{entity.rdReservesOther}, #{entity.rdAwardCompensationStatus}, #{entity.rdAwardCompensationOther}, #{entity.rdApplicationFee}, #{entity.rdAnnouncementAmount}, #{entity.rdAnnouncementOther}, #{entity.adDeliverStatus}, #{entity.adDeliverOther}, #{entity.adDeliverFinish}, #{entity.htDeliverStatus}, #{entity.htDeliverOther}, #{entity.htDeliverFinish}, #{entity.closeMeetingStatus}, #{entity.closeMeetingOther}, #{entity.phasedType}, #{entity.phasedContent}, #{entity.projectApprovalWriteNumber}, #{entity.projectApprovalWriteRate}, #{entity.adPrepareJulyStatus}, #{entity.adPrepareJulyOther}, #{entity.adPrepareOctoberStatus}, #{entity.adPrepareOctoberOther}, #{entity.ipInventionPatentDeclare}, #{entity.ipInventionPatentAuthorize}, #{entity.ipInventionPatentAuthorizeCount}, #{entity.ipUtilityModelDeclare}, #{entity.ipUtilityModelAuthorize}, #{entity.ipUtilityModelAuthorizeCount}, #{entity.ipSoftwareWorksDeclare}, #{entity.ipSoftwareWorksAuthorize}, #{entity.ipSoftwareWorksAuthorizeCount}, #{entity.ipHt}, #{entity.ipHtI}, #{entity.ipHtIi}, #{entity.outsourcingDev}, #{entity.contractRegistration}, #{entity.publicReleaseStipulation}, #{entity.publicReleaseActual}, #{entity.trainingStipulation}, #{entity.trainingActual}, #{entity.trainingOther}, #{entity.htScore}, #{entity.htBatch}, #{entity.htFocus}, #{entity.webSubmit}, #{entity.webSubmitOther}, #{entity.paperSubmit}, #{entity.paperSubmitOther}, #{entity.reviewProvince}, #{entity.reviewCountry}, #{entity.reviewProvinceNumber}, #{entity.reviewCountryNumber}, #{entity.remarks}, #{entity.updateTime}, #{entity.downloadTime}, #{entity.createTime}, #{entity.memberLvl})
  133. </foreach>
  134. on duplicate key update
  135. tid = values(tid),
  136. uid = values(uid),
  137. task_name = values(task_name),
  138. project_name = values(project_name),
  139. technology_name = values(technology_name),
  140. finance_taxation_name = values(finance_taxation_name),
  141. last_year = values(last_year),
  142. last_rd_sales_amount = values(last_rd_sales_amount),
  143. last_rd_budget = values(last_rd_budget),
  144. before_last_year = values(before_last_year),
  145. before_last_rd_sales_amount = values(before_last_rd_sales_amount),
  146. before_last_rd_budget = values(before_last_rd_budget),
  147. workers_number = values(workers_number),
  148. technology_number = values(technology_number),
  149. workers_rate = values(workers_rate),
  150. project_approval_number = values(project_approval_number),
  151. rd_budget = values(rd_budget),
  152. rd_budget_rate = values(rd_budget_rate),
  153. three_years_rd_budget_rate = values(three_years_rd_budget_rate),
  154. rd_sales_amount = values(rd_sales_amount),
  155. data_cycle = values(data_cycle),
  156. actual_sales_amount = values(actual_sales_amount),
  157. actual_rd_number = values(actual_rd_number),
  158. actual_outsourcing_number = values(actual_outsourcing_number),
  159. actual_cooperate_number = values(actual_cooperate_number),
  160. actual_registration_number = values(actual_registration_number),
  161. actual_rd_amount = values(actual_rd_amount),
  162. actual_rd_rate = values(actual_rd_rate),
  163. three_years_actual_rd_rate = values(three_years_actual_rd_rate),
  164. rd_completion_progress = values(rd_completion_progress),
  165. torch_status = values(torch_status),
  166. ch_status = values(ch_status),
  167. statistics_status = values(statistics_status),
  168. final_settlement_status = values(final_settlement_status),
  169. torch_other = values(torch_other),
  170. ch_other = values(ch_other),
  171. statistics_other = values(statistics_other),
  172. final_settlement_other = values(final_settlement_other),
  173. report_forms_rd_number = values(report_forms_rd_number),
  174. intellectual_property_amount = values(intellectual_property_amount),
  175. report_rd_amount = values(report_rd_amount),
  176. rd_reserves_status = values(rd_reserves_status),
  177. rd_reserves_other = values(rd_reserves_other),
  178. rd_award_compensation_status = values(rd_award_compensation_status),
  179. rd_award_compensation_other = values(rd_award_compensation_other),
  180. rd_application_fee = values(rd_application_fee),
  181. rd_announcement_amount = values(rd_announcement_amount),
  182. rd_announcement_other = values(rd_announcement_other),
  183. ad_deliver_status = values(ad_deliver_status),
  184. ad_deliver_other = values(ad_deliver_other),
  185. ad_deliver_finish = values(ad_deliver_finish),
  186. ht_deliver_status = values(ht_deliver_status),
  187. ht_deliver_other = values(ht_deliver_other),
  188. ht_deliver_finish = values(ht_deliver_finish),
  189. close_meeting_status = values(close_meeting_status),
  190. close_meeting_other = values(close_meeting_other),
  191. phased_type = values(phased_type),
  192. phased_content = values(phased_content),
  193. project_approval_write_number = values(project_approval_write_number),
  194. project_approval_write_rate = values(project_approval_write_rate),
  195. ad_prepare_july_status = values(ad_prepare_july_status),
  196. ad_prepare_july_other = values(ad_prepare_july_other),
  197. ad_prepare_october_status = values(ad_prepare_october_status),
  198. ad_prepare_october_other = values(ad_prepare_october_other),
  199. ip_invention_patent_declare = values(ip_invention_patent_declare),
  200. ip_invention_patent_authorize = values(ip_invention_patent_authorize),
  201. ip_invention_patent_authorize_count = values(ip_invention_patent_authorize_count),
  202. ip_utility_model_declare = values(ip_utility_model_declare),
  203. ip_utility_model_authorize = values(ip_utility_model_authorize),
  204. ip_utility_model_authorize_count = values(ip_utility_model_authorize_count),
  205. ip_software_works_declare = values(ip_software_works_declare),
  206. ip_software_works_authorize = values(ip_software_works_authorize),
  207. ip_software_works_authorize_count = values(ip_software_works_authorize_count),
  208. ip_ht = values(ip_ht),
  209. ip_ht_i = values(ip_ht_i),
  210. ip_ht_ii = values(ip_ht_ii),
  211. outsourcing_dev = values(outsourcing_dev),
  212. contract_registration = values(contract_registration),
  213. public_release_stipulation = values(public_release_stipulation),
  214. public_release_actual = values(public_release_actual),
  215. training_stipulation = values(training_stipulation),
  216. training_actual = values(training_actual),
  217. training_other = values(training_other),
  218. ht_score = values(ht_score),
  219. ht_batch = values(ht_batch),
  220. ht_focus = values(ht_focus),
  221. web_submit = values(web_submit),
  222. web_submit_other = values(web_submit_other),
  223. paper_submit = values(paper_submit),
  224. paper_submit_other = values(paper_submit_other),
  225. review_province = values(review_province),
  226. review_country = values(review_country),
  227. review_province_number = values(review_province_number),
  228. review_country_number = values(review_country_number),
  229. remarks = values(remarks),
  230. update_time = values(update_time),
  231. download_time = values(download_time),
  232. create_time = values(create_time),
  233. member_lvl = values(member_lvl)
  234. </insert>
  235. <!--通过主键修改数据-->
  236. <update id="update">
  237. update task_details
  238. <set>
  239. <if test="tid != null">
  240. tid = #{tid},
  241. </if>
  242. <if test="uid != null and uid != ''">
  243. uid = #{uid},
  244. </if>
  245. <if test="taskName != null and taskName != ''">
  246. task_name = #{taskName},
  247. </if>
  248. <if test="projectName != null and projectName != ''">
  249. project_name = #{projectName},
  250. </if>
  251. <if test="technologyName != null and technologyName != ''">
  252. technology_name = #{technologyName},
  253. </if>
  254. <if test="financeTaxationName != null and financeTaxationName != ''">
  255. finance_taxation_name = #{financeTaxationName},
  256. </if>
  257. <if test="lastYear != null">
  258. last_year = #{lastYear},
  259. </if>
  260. <if test="lastRdSalesAmount != null">
  261. last_rd_sales_amount = #{lastRdSalesAmount},
  262. </if>
  263. <if test="lastRdBudget != null">
  264. last_rd_budget = #{lastRdBudget},
  265. </if>
  266. <if test="beforeLastYear != null">
  267. before_last_year = #{beforeLastYear},
  268. </if>
  269. <if test="beforeLastRdSalesAmount != null">
  270. before_last_rd_sales_amount = #{beforeLastRdSalesAmount},
  271. </if>
  272. <if test="beforeLastRdBudget != null">
  273. before_last_rd_budget = #{beforeLastRdBudget},
  274. </if>
  275. <if test="workersNumber != null">
  276. workers_number = #{workersNumber},
  277. </if>
  278. <if test="technologyNumber != null">
  279. technology_number = #{technologyNumber},
  280. </if>
  281. <if test="workersRate != null">
  282. workers_rate = #{workersRate},
  283. </if>
  284. <if test="projectApprovalNumber != null">
  285. project_approval_number = #{projectApprovalNumber},
  286. </if>
  287. <if test="rdBudget != null">
  288. rd_budget = #{rdBudget},
  289. </if>
  290. <if test="rdBudgetRate != null">
  291. rd_budget_rate = #{rdBudgetRate},
  292. </if>
  293. <if test="threeYearsRdBudgetRate != null">
  294. three_years_rd_budget_rate = #{threeYearsRdBudgetRate},
  295. </if>
  296. <if test="rdSalesAmount != null">
  297. rd_sales_amount = #{rdSalesAmount},
  298. </if>
  299. <if test="dataCycle != null">
  300. data_cycle = #{dataCycle},
  301. </if>
  302. <if test="actualSalesAmount != null">
  303. actual_sales_amount = #{actualSalesAmount},
  304. </if>
  305. <if test="actualRdNumber != null">
  306. actual_rd_number = #{actualRdNumber},
  307. </if>
  308. <if test="actualOutsourcingNumber != null">
  309. actual_outsourcing_number = #{actualOutsourcingNumber},
  310. </if>
  311. <if test="actualCooperateNumber != null">
  312. actual_cooperate_number = #{actualCooperateNumber},
  313. </if>
  314. <if test="actualRegistrationNumber != null">
  315. actual_registration_number = #{actualRegistrationNumber},
  316. </if>
  317. <if test="actualRdAmount != null">
  318. actual_rd_amount = #{actualRdAmount},
  319. </if>
  320. <if test="actualRdRate != null">
  321. actual_rd_rate = #{actualRdRate},
  322. </if>
  323. <if test="threeYearsActualRdRate != null">
  324. three_years_actual_rd_rate = #{threeYearsActualRdRate},
  325. </if>
  326. <if test="rdCompletionProgress != null">
  327. rd_completion_progress = #{rdCompletionProgress},
  328. </if>
  329. <if test="torchStatus != null">
  330. torch_status = #{torchStatus},
  331. </if>
  332. <if test="chStatus != null">
  333. ch_status = #{chStatus},
  334. </if>
  335. <if test="statisticsStatus != null">
  336. statistics_status = #{statisticsStatus},
  337. </if>
  338. <if test="finalSettlementStatus != null">
  339. final_settlement_status = #{finalSettlementStatus},
  340. </if>
  341. <if test="torchOther != null and torchOther != ''">
  342. torch_other = #{torchOther},
  343. </if>
  344. <if test="chOther != null and chOther != ''">
  345. ch_other = #{chOther},
  346. </if>
  347. <if test="statisticsOther != null and statisticsOther != ''">
  348. statistics_other = #{statisticsOther},
  349. </if>
  350. <if test="finalSettlementOther != null and finalSettlementOther != ''">
  351. final_settlement_other = #{finalSettlementOther},
  352. </if>
  353. <if test="reportFormsRdNumber != null">
  354. report_forms_rd_number = #{reportFormsRdNumber},
  355. </if>
  356. <if test="intellectualPropertyAmount != null">
  357. intellectual_property_amount = #{intellectualPropertyAmount},
  358. </if>
  359. <if test="reportRdAmount != null">
  360. report_rd_amount = #{reportRdAmount},
  361. </if>
  362. <if test="rdReservesStatus != null">
  363. rd_reserves_status = #{rdReservesStatus},
  364. </if>
  365. <if test="rdReservesOther != null and rdReservesOther != ''">
  366. rd_reserves_other = #{rdReservesOther},
  367. </if>
  368. <if test="rdAwardCompensationStatus != null">
  369. rd_award_compensation_status = #{rdAwardCompensationStatus},
  370. </if>
  371. <if test="rdAwardCompensationOther != null and rdAwardCompensationOther != ''">
  372. rd_award_compensation_other = #{rdAwardCompensationOther},
  373. </if>
  374. <if test="rdApplicationFee != null">
  375. rd_application_fee = #{rdApplicationFee},
  376. </if>
  377. <if test="rdAnnouncementAmount != null">
  378. rd_announcement_amount = #{rdAnnouncementAmount},
  379. </if>
  380. <if test="rdAnnouncementOther != null and rdAnnouncementOther != ''">
  381. rd_announcement_other = #{rdAnnouncementOther},
  382. </if>
  383. <if test="adDeliverStatus != null">
  384. ad_deliver_status = #{adDeliverStatus},
  385. </if>
  386. <if test="adDeliverOther != null and adDeliverOther != ''">
  387. ad_deliver_other = #{adDeliverOther},
  388. </if>
  389. <if test="adDeliverFinish != null">
  390. ad_deliver_finish = #{adDeliverFinish},
  391. </if>
  392. <if test="htDeliverStatus != null">
  393. ht_deliver_status = #{htDeliverStatus},
  394. </if>
  395. <if test="htDeliverOther != null and htDeliverOther != ''">
  396. ht_deliver_other = #{htDeliverOther},
  397. </if>
  398. <if test="htDeliverFinish != null">
  399. ht_deliver_finish = #{htDeliverFinish},
  400. </if>
  401. <if test="closeMeetingStatus != null">
  402. close_meeting_status = #{closeMeetingStatus},
  403. </if>
  404. <if test="closeMeetingOther != null and closeMeetingOther != ''">
  405. close_meeting_other = #{closeMeetingOther},
  406. </if>
  407. <if test="phasedType != null">
  408. phased_type = #{phasedType},
  409. </if>
  410. <if test="phasedContent != null and phasedContent != ''">
  411. phased_content = #{phasedContent},
  412. </if>
  413. <if test="projectApprovalWriteNumber != null">
  414. project_approval_write_number = #{projectApprovalWriteNumber},
  415. </if>
  416. <if test="projectApprovalWriteRate != null">
  417. project_approval_write_rate = #{projectApprovalWriteRate},
  418. </if>
  419. <if test="adPrepareJulyStatus != null">
  420. ad_prepare_july_status = #{adPrepareJulyStatus},
  421. </if>
  422. <if test="adPrepareJulyOther != null and adPrepareJulyOther != ''">
  423. ad_prepare_july_other = #{adPrepareJulyOther},
  424. </if>
  425. <if test="adPrepareOctoberStatus != null">
  426. ad_prepare_october_status = #{adPrepareOctoberStatus},
  427. </if>
  428. <if test="adPrepareOctoberOther != null and adPrepareOctoberOther != ''">
  429. ad_prepare_october_other = #{adPrepareOctoberOther},
  430. </if>
  431. <if test="ipInventionPatentDeclare != null">
  432. ip_invention_patent_declare = #{ipInventionPatentDeclare},
  433. </if>
  434. <if test="ipInventionPatentAuthorize != null">
  435. ip_invention_patent_authorize = #{ipInventionPatentAuthorize},
  436. </if>
  437. <if test="ipInventionPatentAuthorizeCount != null">
  438. ip_invention_patent_authorize_count = #{ipInventionPatentAuthorizeCount},
  439. </if>
  440. <if test="ipUtilityModelDeclare != null">
  441. ip_utility_model_declare = #{ipUtilityModelDeclare},
  442. </if>
  443. <if test="ipUtilityModelAuthorize != null">
  444. ip_utility_model_authorize = #{ipUtilityModelAuthorize},
  445. </if>
  446. <if test="ipUtilityModelAuthorizeCount != null">
  447. ip_utility_model_authorize_count = #{ipUtilityModelAuthorizeCount},
  448. </if>
  449. <if test="ipSoftwareWorksDeclare != null">
  450. ip_software_works_declare = #{ipSoftwareWorksDeclare},
  451. </if>
  452. <if test="ipSoftwareWorksAuthorize != null">
  453. ip_software_works_authorize = #{ipSoftwareWorksAuthorize},
  454. </if>
  455. <if test="ipSoftwareWorksAuthorizeCount != null">
  456. ip_software_works_authorize_count = #{ipSoftwareWorksAuthorizeCount},
  457. </if>
  458. <if test="ipHt != null">
  459. ip_ht = #{ipHt},
  460. </if>
  461. <if test="ipHtI != null">
  462. ip_ht_i = #{ipHtI},
  463. </if>
  464. <if test="ipHtIi != null">
  465. ip_ht_ii = #{ipHtIi},
  466. </if>
  467. <if test="outsourcingDev != null">
  468. outsourcing_dev = #{outsourcingDev},
  469. </if>
  470. <if test="contractRegistration != null">
  471. contract_registration = #{contractRegistration},
  472. </if>
  473. <if test="publicReleaseStipulation != null">
  474. public_release_stipulation = #{publicReleaseStipulation},
  475. </if>
  476. <if test="publicReleaseActual != null">
  477. public_release_actual = #{publicReleaseActual},
  478. </if>
  479. <if test="trainingStipulation != null">
  480. training_stipulation = #{trainingStipulation},
  481. </if>
  482. <if test="trainingActual != null">
  483. training_actual = #{trainingActual},
  484. </if>
  485. <if test="trainingOther != null and trainingOther != ''">
  486. training_other = #{trainingOther},
  487. </if>
  488. <if test="htScore != null">
  489. ht_score = #{htScore},
  490. </if>
  491. <if test="htBatch != null">
  492. ht_batch = #{htBatch},
  493. </if>
  494. <if test="htFocus != null">
  495. ht_focus = #{htFocus},
  496. </if>
  497. <if test="webSubmit != null">
  498. web_submit = #{webSubmit},
  499. </if>
  500. <if test="webSubmitOther != null and webSubmitOther != ''">
  501. web_submit_other = #{webSubmitOther},
  502. </if>
  503. <if test="paperSubmit != null">
  504. paper_submit = #{paperSubmit},
  505. </if>
  506. <if test="paperSubmitOther != null and paperSubmitOther != ''">
  507. paper_submit_other = #{paperSubmitOther},
  508. </if>
  509. <if test="reviewProvince != null">
  510. review_province = #{reviewProvince},
  511. </if>
  512. <if test="reviewCountry != null">
  513. review_country = #{reviewCountry},
  514. </if>
  515. <if test="reviewProvinceNumber != null">
  516. review_province_number = #{reviewProvinceNumber},
  517. </if>
  518. <if test="reviewCountryNumber != null">
  519. review_country_number = #{reviewCountryNumber},
  520. </if>
  521. <if test="remarks != null and remarks != ''">
  522. remarks = #{remarks},
  523. </if>
  524. <if test="updateTime != null">
  525. update_time = #{updateTime},
  526. </if>
  527. <if test="downloadTime != null">
  528. download_time = #{downloadTime},
  529. </if>
  530. <if test="createTime != null">
  531. create_time = #{createTime},
  532. </if>
  533. <if test="memberLvl != null">
  534. member_lvl = #{memberLvl},
  535. </if>
  536. </set>
  537. where id = #{id}
  538. </update>
  539. <!--查询指定行数据-->
  540. <select id="findTaskDetailsList" resultMap="TaskDetailsMap">
  541. select
  542. <include refid="TaskDetailsAllSql"/>
  543. from task_details
  544. <where>
  545. <if test="id != null">
  546. and id = #{id}
  547. </if>
  548. <if test="tid != null">
  549. and tid = #{tid}
  550. </if>
  551. <if test="uid != null and uid != ''">
  552. and uid = #{uid}
  553. </if>
  554. <if test="taskName != null and taskName != ''">
  555. and task_name = #{taskName}
  556. </if>
  557. <if test="projectName != null and projectName != ''">
  558. and project_name = #{projectName}
  559. </if>
  560. <if test="technologyName != null and technologyName != ''">
  561. and technology_name = #{technologyName}
  562. </if>
  563. <if test="financeTaxationName != null and financeTaxationName != ''">
  564. and finance_taxation_name = #{financeTaxationName}
  565. </if>
  566. <if test="lastYear != null">
  567. and last_year = #{lastYear}
  568. </if>
  569. <if test="lastRdSalesAmount != null">
  570. and last_rd_sales_amount = #{lastRdSalesAmount}
  571. </if>
  572. <if test="lastRdBudget != null">
  573. and last_rd_budget = #{lastRdBudget}
  574. </if>
  575. <if test="beforeLastYear != null">
  576. and before_last_year = #{beforeLastYear}
  577. </if>
  578. <if test="beforeLastRdSalesAmount != null">
  579. and before_last_rd_sales_amount = #{beforeLastRdSalesAmount}
  580. </if>
  581. <if test="beforeLastRdBudget != null">
  582. and before_last_rd_budget = #{beforeLastRdBudget}
  583. </if>
  584. <if test="workersNumber != null">
  585. and workers_number = #{workersNumber}
  586. </if>
  587. <if test="technologyNumber != null">
  588. and technology_number = #{technologyNumber}
  589. </if>
  590. <if test="workersRate != null">
  591. and workers_rate = #{workersRate}
  592. </if>
  593. <if test="projectApprovalNumber != null">
  594. and project_approval_number = #{projectApprovalNumber}
  595. </if>
  596. <if test="rdBudget != null">
  597. and rd_budget = #{rdBudget}
  598. </if>
  599. <if test="rdBudgetRate != null">
  600. and rd_budget_rate = #{rdBudgetRate}
  601. </if>
  602. <if test="threeYearsRdBudgetRate != null">
  603. and three_years_rd_budget_rate = #{threeYearsRdBudgetRate}
  604. </if>
  605. <if test="rdSalesAmount != null">
  606. and rd_sales_amount = #{rdSalesAmount}
  607. </if>
  608. <if test="dataCycle != null">
  609. and data_cycle = #{dataCycle}
  610. </if>
  611. <if test="actualSalesAmount != null">
  612. and actual_sales_amount = #{actualSalesAmount}
  613. </if>
  614. <if test="actualRdNumber != null">
  615. and actual_rd_number = #{actualRdNumber}
  616. </if>
  617. <if test="actualOutsourcingNumber != null">
  618. and actual_outsourcing_number = #{actualOutsourcingNumber}
  619. </if>
  620. <if test="actualCooperateNumber != null">
  621. and actual_cooperate_number = #{actualCooperateNumber}
  622. </if>
  623. <if test="actualRegistrationNumber != null">
  624. and actual_registration_number = #{actualRegistrationNumber}
  625. </if>
  626. <if test="actualRdAmount != null">
  627. and actual_rd_amount = #{actualRdAmount}
  628. </if>
  629. <if test="actualRdRate != null">
  630. and actual_rd_rate = #{actualRdRate}
  631. </if>
  632. <if test="threeYearsActualRdRate != null">
  633. and three_years_actual_rd_rate = #{threeYearsActualRdRate}
  634. </if>
  635. <if test="rdCompletionProgress != null">
  636. and rd_completion_progress = #{rdCompletionProgress}
  637. </if>
  638. <if test="torchStatus != null">
  639. and torch_status = #{torchStatus}
  640. </if>
  641. <if test="chStatus != null">
  642. and ch_status = #{chStatus}
  643. </if>
  644. <if test="statisticsStatus != null">
  645. and statistics_status = #{statisticsStatus}
  646. </if>
  647. <if test="finalSettlementStatus != null">
  648. and final_settlement_status = #{finalSettlementStatus}
  649. </if>
  650. <if test="torchOther != null and torchOther != ''">
  651. and torch_other = #{torchOther}
  652. </if>
  653. <if test="chOther != null and chOther != ''">
  654. and ch_other = #{chOther}
  655. </if>
  656. <if test="statisticsOther != null and statisticsOther != ''">
  657. and statistics_other = #{statisticsOther}
  658. </if>
  659. <if test="finalSettlementOther != null and finalSettlementOther != ''">
  660. and final_settlement_other = #{finalSettlementOther}
  661. </if>
  662. <if test="reportFormsRdNumber != null">
  663. and report_forms_rd_number = #{reportFormsRdNumber}
  664. </if>
  665. <if test="intellectualPropertyAmount != null">
  666. and intellectual_property_amount = #{intellectualPropertyAmount}
  667. </if>
  668. <if test="reportRdAmount != null">
  669. and report_rd_amount = #{reportRdAmount}
  670. </if>
  671. <if test="rdReservesStatus != null">
  672. and rd_reserves_status = #{rdReservesStatus}
  673. </if>
  674. <if test="rdReservesOther != null and rdReservesOther != ''">
  675. and rd_reserves_other = #{rdReservesOther}
  676. </if>
  677. <if test="rdAwardCompensationStatus != null">
  678. and rd_award_compensation_status = #{rdAwardCompensationStatus}
  679. </if>
  680. <if test="rdAwardCompensationOther != null and rdAwardCompensationOther != ''">
  681. and rd_award_compensation_other = #{rdAwardCompensationOther}
  682. </if>
  683. <if test="rdApplicationFee != null">
  684. and rd_application_fee = #{rdApplicationFee}
  685. </if>
  686. <if test="rdAnnouncementAmount != null">
  687. and rd_announcement_amount = #{rdAnnouncementAmount}
  688. </if>
  689. <if test="rdAnnouncementOther != null and rdAnnouncementOther != ''">
  690. and rd_announcement_other = #{rdAnnouncementOther}
  691. </if>
  692. <if test="adDeliverStatus != null">
  693. and ad_deliver_status = #{adDeliverStatus}
  694. </if>
  695. <if test="adDeliverOther != null and adDeliverOther != ''">
  696. and ad_deliver_other = #{adDeliverOther}
  697. </if>
  698. <if test="adDeliverFinish != null">
  699. and ad_deliver_finish = #{adDeliverFinish}
  700. </if>
  701. <if test="htDeliverStatus != null">
  702. and ht_deliver_status = #{htDeliverStatus}
  703. </if>
  704. <if test="htDeliverOther != null and htDeliverOther != ''">
  705. and ht_deliver_other = #{htDeliverOther}
  706. </if>
  707. <if test="htDeliverFinish != null">
  708. and ht_deliver_finish = #{htDeliverFinish}
  709. </if>
  710. <if test="closeMeetingStatus != null">
  711. and close_meeting_status = #{closeMeetingStatus}
  712. </if>
  713. <if test="closeMeetingOther != null and closeMeetingOther != ''">
  714. and close_meeting_other = #{closeMeetingOther}
  715. </if>
  716. <if test="phasedType != null">
  717. and phased_type = #{phasedType}
  718. </if>
  719. <if test="phasedContent != null and phasedContent != ''">
  720. and phased_content = #{phasedContent}
  721. </if>
  722. <if test="projectApprovalWriteNumber != null">
  723. and project_approval_write_number = #{projectApprovalWriteNumber}
  724. </if>
  725. <if test="projectApprovalWriteRate != null">
  726. and project_approval_write_rate = #{projectApprovalWriteRate}
  727. </if>
  728. <if test="adPrepareJulyStatus != null">
  729. and ad_prepare_july_status = #{adPrepareJulyStatus}
  730. </if>
  731. <if test="adPrepareJulyOther != null and adPrepareJulyOther != ''">
  732. and ad_prepare_july_other = #{adPrepareJulyOther}
  733. </if>
  734. <if test="adPrepareOctoberStatus != null">
  735. and ad_prepare_october_status = #{adPrepareOctoberStatus}
  736. </if>
  737. <if test="adPrepareOctoberOther != null and adPrepareOctoberOther != ''">
  738. and ad_prepare_october_other = #{adPrepareOctoberOther}
  739. </if>
  740. <if test="ipInventionPatentDeclare != null">
  741. and ip_invention_patent_declare = #{ipInventionPatentDeclare}
  742. </if>
  743. <if test="ipInventionPatentAuthorize != null">
  744. and ip_invention_patent_authorize = #{ipInventionPatentAuthorize}
  745. </if>
  746. <if test="ipInventionPatentAuthorizeCount != null">
  747. and ip_invention_patent_authorize_count = #{ipInventionPatentAuthorizeCount}
  748. </if>
  749. <if test="ipUtilityModelDeclare != null">
  750. and ip_utility_model_declare = #{ipUtilityModelDeclare}
  751. </if>
  752. <if test="ipUtilityModelAuthorize != null">
  753. and ip_utility_model_authorize = #{ipUtilityModelAuthorize}
  754. </if>
  755. <if test="ipUtilityModelAuthorizeCount != null">
  756. and ip_utility_model_authorize_count = #{ipUtilityModelAuthorizeCount}
  757. </if>
  758. <if test="ipSoftwareWorksDeclare != null">
  759. and ip_software_works_declare = #{ipSoftwareWorksDeclare}
  760. </if>
  761. <if test="ipSoftwareWorksAuthorize != null">
  762. and ip_software_works_authorize = #{ipSoftwareWorksAuthorize}
  763. </if>
  764. <if test="ipSoftwareWorksAuthorizeCount != null">
  765. and ip_software_works_authorize_count = #{ipSoftwareWorksAuthorizeCount}
  766. </if>
  767. <if test="ipHt != null">
  768. and ip_ht = #{ipHt}
  769. </if>
  770. <if test="ipHtI != null">
  771. and ip_ht_i = #{ipHtI}
  772. </if>
  773. <if test="ipHtIi != null">
  774. and ip_ht_ii = #{ipHtIi}
  775. </if>
  776. <if test="outsourcingDev != null">
  777. and outsourcing_dev = #{outsourcingDev}
  778. </if>
  779. <if test="contractRegistration != null">
  780. and contract_registration = #{contractRegistration}
  781. </if>
  782. <if test="publicReleaseStipulation != null">
  783. and public_release_stipulation = #{publicReleaseStipulation}
  784. </if>
  785. <if test="publicReleaseActual != null">
  786. and public_release_actual = #{publicReleaseActual}
  787. </if>
  788. <if test="trainingStipulation != null">
  789. and training_stipulation = #{trainingStipulation}
  790. </if>
  791. <if test="trainingActual != null">
  792. and training_actual = #{trainingActual}
  793. </if>
  794. <if test="trainingOther != null and trainingOther != ''">
  795. and training_other = #{trainingOther}
  796. </if>
  797. <if test="htScore != null">
  798. and ht_score = #{htScore}
  799. </if>
  800. <if test="htBatch != null">
  801. and ht_batch = #{htBatch}
  802. </if>
  803. <if test="htFocus != null">
  804. and ht_focus = #{htFocus}
  805. </if>
  806. <if test="webSubmit != null">
  807. and web_submit = #{webSubmit}
  808. </if>
  809. <if test="webSubmitOther != null and webSubmitOther != ''">
  810. and web_submit_other = #{webSubmitOther}
  811. </if>
  812. <if test="paperSubmit != null">
  813. and paper_submit = #{paperSubmit}
  814. </if>
  815. <if test="paperSubmitOther != null and paperSubmitOther != ''">
  816. and paper_submit_other = #{paperSubmitOther}
  817. </if>
  818. <if test="reviewProvince != null">
  819. and review_province = #{reviewProvince}
  820. </if>
  821. <if test="reviewCountry != null">
  822. and review_country = #{reviewCountry}
  823. </if>
  824. <if test="reviewProvinceNumber != null">
  825. and review_province_number = #{reviewProvinceNumber}
  826. </if>
  827. <if test="reviewCountryNumber != null">
  828. and review_country_number = #{reviewCountryNumber}
  829. </if>
  830. <if test="remarks != null and remarks != ''">
  831. and remarks = #{remarks}
  832. </if>
  833. <if test="updateTime != null">
  834. and update_time = #{updateTime}
  835. </if>
  836. <if test="downloadTime != null">
  837. and download_time = #{downloadTime}
  838. </if>
  839. <if test="createTime != null">
  840. and create_time = #{createTime}
  841. </if>
  842. <if test="memberLvl != null">
  843. and member_lvl = #{memberLvl}
  844. </if>
  845. </where>
  846. <if test="page_sql != null">
  847. ${page_sql}
  848. </if>
  849. </select>
  850. <!--统计总行数-->
  851. <select id="findTaskDetailsCount" resultType="java.lang.Integer">
  852. select count(1)
  853. from task_details
  854. <where>
  855. <if test="id != null">
  856. and id = #{id}
  857. </if>
  858. <if test="tid != null">
  859. and tid = #{tid}
  860. </if>
  861. <if test="uid != null and uid != ''">
  862. and uid = #{uid}
  863. </if>
  864. <if test="taskName != null and taskName != ''">
  865. and task_name = #{taskName}
  866. </if>
  867. <if test="projectName != null and projectName != ''">
  868. and project_name = #{projectName}
  869. </if>
  870. <if test="technologyName != null and technologyName != ''">
  871. and technology_name = #{technologyName}
  872. </if>
  873. <if test="financeTaxationName != null and financeTaxationName != ''">
  874. and finance_taxation_name = #{financeTaxationName}
  875. </if>
  876. <if test="lastYear != null">
  877. and last_year = #{lastYear}
  878. </if>
  879. <if test="lastRdSalesAmount != null">
  880. and last_rd_sales_amount = #{lastRdSalesAmount}
  881. </if>
  882. <if test="lastRdBudget != null">
  883. and last_rd_budget = #{lastRdBudget}
  884. </if>
  885. <if test="beforeLastYear != null">
  886. and before_last_year = #{beforeLastYear}
  887. </if>
  888. <if test="beforeLastRdSalesAmount != null">
  889. and before_last_rd_sales_amount = #{beforeLastRdSalesAmount}
  890. </if>
  891. <if test="beforeLastRdBudget != null">
  892. and before_last_rd_budget = #{beforeLastRdBudget}
  893. </if>
  894. <if test="workersNumber != null">
  895. and workers_number = #{workersNumber}
  896. </if>
  897. <if test="technologyNumber != null">
  898. and technology_number = #{technologyNumber}
  899. </if>
  900. <if test="workersRate != null">
  901. and workers_rate = #{workersRate}
  902. </if>
  903. <if test="projectApprovalNumber != null">
  904. and project_approval_number = #{projectApprovalNumber}
  905. </if>
  906. <if test="rdBudget != null">
  907. and rd_budget = #{rdBudget}
  908. </if>
  909. <if test="rdBudgetRate != null">
  910. and rd_budget_rate = #{rdBudgetRate}
  911. </if>
  912. <if test="threeYearsRdBudgetRate != null">
  913. and three_years_rd_budget_rate = #{threeYearsRdBudgetRate}
  914. </if>
  915. <if test="rdSalesAmount != null">
  916. and rd_sales_amount = #{rdSalesAmount}
  917. </if>
  918. <if test="dataCycle != null">
  919. and data_cycle = #{dataCycle}
  920. </if>
  921. <if test="actualSalesAmount != null">
  922. and actual_sales_amount = #{actualSalesAmount}
  923. </if>
  924. <if test="actualRdNumber != null">
  925. and actual_rd_number = #{actualRdNumber}
  926. </if>
  927. <if test="actualOutsourcingNumber != null">
  928. and actual_outsourcing_number = #{actualOutsourcingNumber}
  929. </if>
  930. <if test="actualCooperateNumber != null">
  931. and actual_cooperate_number = #{actualCooperateNumber}
  932. </if>
  933. <if test="actualRegistrationNumber != null">
  934. and actual_registration_number = #{actualRegistrationNumber}
  935. </if>
  936. <if test="actualRdAmount != null">
  937. and actual_rd_amount = #{actualRdAmount}
  938. </if>
  939. <if test="actualRdRate != null">
  940. and actual_rd_rate = #{actualRdRate}
  941. </if>
  942. <if test="threeYearsActualRdRate != null">
  943. and three_years_actual_rd_rate = #{threeYearsActualRdRate}
  944. </if>
  945. <if test="rdCompletionProgress != null">
  946. and rd_completion_progress = #{rdCompletionProgress}
  947. </if>
  948. <if test="torchStatus != null">
  949. and torch_status = #{torchStatus}
  950. </if>
  951. <if test="chStatus != null">
  952. and ch_status = #{chStatus}
  953. </if>
  954. <if test="statisticsStatus != null">
  955. and statistics_status = #{statisticsStatus}
  956. </if>
  957. <if test="finalSettlementStatus != null">
  958. and final_settlement_status = #{finalSettlementStatus}
  959. </if>
  960. <if test="torchOther != null and torchOther != ''">
  961. and torch_other = #{torchOther}
  962. </if>
  963. <if test="chOther != null and chOther != ''">
  964. and ch_other = #{chOther}
  965. </if>
  966. <if test="statisticsOther != null and statisticsOther != ''">
  967. and statistics_other = #{statisticsOther}
  968. </if>
  969. <if test="finalSettlementOther != null and finalSettlementOther != ''">
  970. and final_settlement_other = #{finalSettlementOther}
  971. </if>
  972. <if test="reportFormsRdNumber != null">
  973. and report_forms_rd_number = #{reportFormsRdNumber}
  974. </if>
  975. <if test="intellectualPropertyAmount != null">
  976. and intellectual_property_amount = #{intellectualPropertyAmount}
  977. </if>
  978. <if test="reportRdAmount != null">
  979. and report_rd_amount = #{reportRdAmount}
  980. </if>
  981. <if test="rdReservesStatus != null">
  982. and rd_reserves_status = #{rdReservesStatus}
  983. </if>
  984. <if test="rdReservesOther != null and rdReservesOther != ''">
  985. and rd_reserves_other = #{rdReservesOther}
  986. </if>
  987. <if test="rdAwardCompensationStatus != null">
  988. and rd_award_compensation_status = #{rdAwardCompensationStatus}
  989. </if>
  990. <if test="rdAwardCompensationOther != null and rdAwardCompensationOther != ''">
  991. and rd_award_compensation_other = #{rdAwardCompensationOther}
  992. </if>
  993. <if test="rdApplicationFee != null">
  994. and rd_application_fee = #{rdApplicationFee}
  995. </if>
  996. <if test="rdAnnouncementAmount != null">
  997. and rd_announcement_amount = #{rdAnnouncementAmount}
  998. </if>
  999. <if test="rdAnnouncementOther != null and rdAnnouncementOther != ''">
  1000. and rd_announcement_other = #{rdAnnouncementOther}
  1001. </if>
  1002. <if test="adDeliverStatus != null">
  1003. and ad_deliver_status = #{adDeliverStatus}
  1004. </if>
  1005. <if test="adDeliverOther != null and adDeliverOther != ''">
  1006. and ad_deliver_other = #{adDeliverOther}
  1007. </if>
  1008. <if test="adDeliverFinish != null">
  1009. and ad_deliver_finish = #{adDeliverFinish}
  1010. </if>
  1011. <if test="htDeliverStatus != null">
  1012. and ht_deliver_status = #{htDeliverStatus}
  1013. </if>
  1014. <if test="htDeliverOther != null and htDeliverOther != ''">
  1015. and ht_deliver_other = #{htDeliverOther}
  1016. </if>
  1017. <if test="htDeliverFinish != null">
  1018. and ht_deliver_finish = #{htDeliverFinish}
  1019. </if>
  1020. <if test="closeMeetingStatus != null">
  1021. and close_meeting_status = #{closeMeetingStatus}
  1022. </if>
  1023. <if test="closeMeetingOther != null and closeMeetingOther != ''">
  1024. and close_meeting_other = #{closeMeetingOther}
  1025. </if>
  1026. <if test="phasedType != null">
  1027. and phased_type = #{phasedType}
  1028. </if>
  1029. <if test="phasedContent != null and phasedContent != ''">
  1030. and phased_content = #{phasedContent}
  1031. </if>
  1032. <if test="projectApprovalWriteNumber != null">
  1033. and project_approval_write_number = #{projectApprovalWriteNumber}
  1034. </if>
  1035. <if test="projectApprovalWriteRate != null">
  1036. and project_approval_write_rate = #{projectApprovalWriteRate}
  1037. </if>
  1038. <if test="adPrepareJulyStatus != null">
  1039. and ad_prepare_july_status = #{adPrepareJulyStatus}
  1040. </if>
  1041. <if test="adPrepareJulyOther != null and adPrepareJulyOther != ''">
  1042. and ad_prepare_july_other = #{adPrepareJulyOther}
  1043. </if>
  1044. <if test="adPrepareOctoberStatus != null">
  1045. and ad_prepare_october_status = #{adPrepareOctoberStatus}
  1046. </if>
  1047. <if test="adPrepareOctoberOther != null and adPrepareOctoberOther != ''">
  1048. and ad_prepare_october_other = #{adPrepareOctoberOther}
  1049. </if>
  1050. <if test="ipInventionPatentDeclare != null">
  1051. and ip_invention_patent_declare = #{ipInventionPatentDeclare}
  1052. </if>
  1053. <if test="ipInventionPatentAuthorize != null">
  1054. and ip_invention_patent_authorize = #{ipInventionPatentAuthorize}
  1055. </if>
  1056. <if test="ipInventionPatentAuthorizeCount != null">
  1057. and ip_invention_patent_authorize_count = #{ipInventionPatentAuthorizeCount}
  1058. </if>
  1059. <if test="ipUtilityModelDeclare != null">
  1060. and ip_utility_model_declare = #{ipUtilityModelDeclare}
  1061. </if>
  1062. <if test="ipUtilityModelAuthorize != null">
  1063. and ip_utility_model_authorize = #{ipUtilityModelAuthorize}
  1064. </if>
  1065. <if test="ipUtilityModelAuthorizeCount != null">
  1066. and ip_utility_model_authorize_count = #{ipUtilityModelAuthorizeCount}
  1067. </if>
  1068. <if test="ipSoftwareWorksDeclare != null">
  1069. and ip_software_works_declare = #{ipSoftwareWorksDeclare}
  1070. </if>
  1071. <if test="ipSoftwareWorksAuthorize != null">
  1072. and ip_software_works_authorize = #{ipSoftwareWorksAuthorize}
  1073. </if>
  1074. <if test="ipSoftwareWorksAuthorizeCount != null">
  1075. and ip_software_works_authorize_count = #{ipSoftwareWorksAuthorizeCount}
  1076. </if>
  1077. <if test="ipHt != null">
  1078. and ip_ht = #{ipHt}
  1079. </if>
  1080. <if test="ipHtI != null">
  1081. and ip_ht_i = #{ipHtI}
  1082. </if>
  1083. <if test="ipHtIi != null">
  1084. and ip_ht_ii = #{ipHtIi}
  1085. </if>
  1086. <if test="outsourcingDev != null">
  1087. and outsourcing_dev = #{outsourcingDev}
  1088. </if>
  1089. <if test="contractRegistration != null">
  1090. and contract_registration = #{contractRegistration}
  1091. </if>
  1092. <if test="publicReleaseStipulation != null">
  1093. and public_release_stipulation = #{publicReleaseStipulation}
  1094. </if>
  1095. <if test="publicReleaseActual != null">
  1096. and public_release_actual = #{publicReleaseActual}
  1097. </if>
  1098. <if test="trainingStipulation != null">
  1099. and training_stipulation = #{trainingStipulation}
  1100. </if>
  1101. <if test="trainingActual != null">
  1102. and training_actual = #{trainingActual}
  1103. </if>
  1104. <if test="trainingOther != null and trainingOther != ''">
  1105. and training_other = #{trainingOther}
  1106. </if>
  1107. <if test="htScore != null">
  1108. and ht_score = #{htScore}
  1109. </if>
  1110. <if test="htBatch != null">
  1111. and ht_batch = #{htBatch}
  1112. </if>
  1113. <if test="htFocus != null">
  1114. and ht_focus = #{htFocus}
  1115. </if>
  1116. <if test="webSubmit != null">
  1117. and web_submit = #{webSubmit}
  1118. </if>
  1119. <if test="webSubmitOther != null and webSubmitOther != ''">
  1120. and web_submit_other = #{webSubmitOther}
  1121. </if>
  1122. <if test="paperSubmit != null">
  1123. and paper_submit = #{paperSubmit}
  1124. </if>
  1125. <if test="paperSubmitOther != null and paperSubmitOther != ''">
  1126. and paper_submit_other = #{paperSubmitOther}
  1127. </if>
  1128. <if test="reviewProvince != null">
  1129. and review_province = #{reviewProvince}
  1130. </if>
  1131. <if test="reviewCountry != null">
  1132. and review_country = #{reviewCountry}
  1133. </if>
  1134. <if test="reviewProvinceNumber != null">
  1135. and review_province_number = #{reviewProvinceNumber}
  1136. </if>
  1137. <if test="reviewCountryNumber != null">
  1138. and review_country_number = #{reviewCountryNumber}
  1139. </if>
  1140. <if test="remarks != null and remarks != ''">
  1141. and remarks = #{remarks}
  1142. </if>
  1143. <if test="updateTime != null">
  1144. and update_time = #{updateTime}
  1145. </if>
  1146. <if test="downloadTime != null">
  1147. and download_time = #{downloadTime}
  1148. </if>
  1149. <if test="createTime != null">
  1150. and create_time = #{createTime}
  1151. </if>
  1152. <if test="memberLvl != null">
  1153. and member_lvl = #{memberLvl}
  1154. </if>
  1155. </where>
  1156. </select>
  1157. <!--通过主键删除-->
  1158. <delete id="deleteById">
  1159. delete from task_details where id = #{id}
  1160. </delete>
  1161. <select id="selectByTid" resultMap="TaskDetailsMap">
  1162. select
  1163. <include refid="TaskDetailsAllSql"/>
  1164. from task_details
  1165. where tid = #{id}
  1166. </select>
  1167. <select id="selectByTidList" resultType="com.goafanti.techproject.bo.OutTaskDetailsLog">
  1168. select
  1169. id,tdid,aid,aname,DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') createTime
  1170. from task_details_log
  1171. where tdid = #{tdid}
  1172. order by create_time desc
  1173. </select>
  1174. <select id="selectByTidCount" resultType="java.lang.Integer">
  1175. select
  1176. count(*)
  1177. from task_details_log
  1178. where tdid = #{tdid}
  1179. </select>
  1180. <select id="selectTaskDetailsList" resultMap="TaskDetailsMap">
  1181. select
  1182. a.*
  1183. from task_details a
  1184. <include refid="selectTaskDetailsSql"/>
  1185. <if test="page_sql !=null">
  1186. ${page_sql}
  1187. </if>
  1188. </select>
  1189. <sql id="selectTaskDetailsSql">
  1190. left join t_order_task b on a.id =b.progress_tid
  1191. left join admin c on b.task_receiver=c.id
  1192. left join t_order_mid d on b.order_no=d.order_no
  1193. left join t_order_new e on b.order_no=e.order_no
  1194. <if test="serviceYear !=null">
  1195. left join t_task_member f on b.id=f.tid
  1196. </if>
  1197. where (c.superior_id= #{aid} or c.id= #{aid})
  1198. <if test="userName != null and userName != ''">
  1199. and d.buyer_name like concat('%',#{userName},'%')
  1200. </if>
  1201. <if test="consultantName !=null">
  1202. and (a.technology_name like concat('%',#{consultantName},'%')
  1203. or a.finance_taxation_name like concat('%',#{consultantName},'%'))
  1204. </if>
  1205. <if test="contractNo !=null">
  1206. and e.contract_no like concat('%',#{contractNo},'%')
  1207. </if>
  1208. <if test="serviceYear !=null">
  1209. and f.service_year like concat('%',#{serviceYear},'%')
  1210. </if>
  1211. <if test="projectDebtorId !=null">
  1212. and b.task_receiver = #{projectDebtorId}
  1213. </if>
  1214. <if test="projectStatus !=null">
  1215. and b.project_status = #{projectStatus}
  1216. </if>
  1217. <if test="outSourcingStatus !=null">
  1218. and b.outsource= #{outSourcingStatus}
  1219. </if>
  1220. <if test="updateTime !=null">
  1221. and a.update_time between #{updateTime} and #{updateTime} + interval 1 day
  1222. </if>
  1223. <if test="progress !=null">
  1224. and a.progress = #{progress}
  1225. </if>
  1226. <if test="applicationLevel !=null">
  1227. <if test="applicationLevel == 0">
  1228. and e.total_amount &lt; 3
  1229. </if>
  1230. <if test="applicationLevel == 1">
  1231. and e.total_amount &gt; 3 and e.total_amount &lt; 8
  1232. </if>
  1233. <if test="applicationLevel == 2">
  1234. and e.total_amount &gt; 8
  1235. </if>
  1236. </if>
  1237. <if test="reviewProvince !=null">
  1238. and (a.review_province = #{reviewProvince}
  1239. or a.review_country = #{reviewProvince})
  1240. </if>
  1241. <if test="finalSettlementStatus !=null">
  1242. and a.final_settlement_status = #{finalSettlementStatus}
  1243. </if>
  1244. <if test="adDeliverStatus !=null">
  1245. and (a.ad_prepare_july_status = #{adDeliverStatus}
  1246. or a.ad_prepare_october_status = #{adDeliverStatus})
  1247. </if>
  1248. <if test="torchStatus !=null">
  1249. and a.torch_status = #{torchStatus}
  1250. </if>
  1251. <if test="statisticsStatus !=null">
  1252. and a.statistics_status = #{statisticsStatus}
  1253. </if>
  1254. <if test="chStatus !=null">
  1255. and a.ch_status = #{chStatus}
  1256. </if>
  1257. </sql>
  1258. <select id="selectTaskDetailsCount" resultType="java.lang.Integer">
  1259. select
  1260. count(*)
  1261. from task_details a
  1262. <include refid="selectTaskDetailsSql"/>
  1263. </select>
  1264. </mapper>