TaskDetailsMapper.xml 69 KB

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