TaskDetailsMapper.xml 72 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269
  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. <select id="selectByTidList" resultType="com.goafanti.techproject.bo.OutTaskDetailsLog">
  1157. select
  1158. id,tdid,aid,aname,DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') createTime
  1159. from task_details_log
  1160. where tdid = #{tdid}
  1161. order by create_time desc
  1162. </select>
  1163. <select id="selectByTidCount" resultType="java.lang.Integer">
  1164. select
  1165. count(*)
  1166. from task_details_log
  1167. where tdid = #{tdid}
  1168. </select>
  1169. <select id="selectTaskDetailsList" resultMap="TaskDetailsMap">
  1170. select
  1171. a.*
  1172. from task_details a
  1173. <include refid="selectTaskDetailsSql"/>
  1174. <if test="page_sql !=null">
  1175. ${page_sql}
  1176. </if>
  1177. </select>
  1178. <sql id="selectTaskDetailsSql">
  1179. left join t_order_task b on a.id =b.progress_tid
  1180. left join admin c on b.task_receiver=c.id
  1181. left join t_order_mid d on b.order_no=d.order_no
  1182. left join t_order_new e on b.order_no=e.order_no
  1183. <if test="serviceYear !=null">
  1184. left join t_task_member f on b.id=f.tid
  1185. </if>
  1186. where (c.superior_id= #{aid} or c.id= #{aid})
  1187. <if test="userName != null and userName != ''">
  1188. and d.buyer_name like concat('%',#{userName},'%')
  1189. </if>
  1190. <if test="consultantName !=null">
  1191. and (a.technology_name like concat('%',#{consultantName},'%')
  1192. or a.finance_taxation_name like concat('%',#{consultantName},'%'))
  1193. </if>
  1194. <if test="contractNo !=null">
  1195. and e.contract_no like concat('%',#{contractNo},'%')
  1196. </if>
  1197. <if test="serviceYear !=null">
  1198. and f.service_year like concat('%',#{serviceYear},'%')
  1199. </if>
  1200. <if test="projectDebtorId !=null">
  1201. and b.task_receiver = #{projectDebtorId}
  1202. </if>
  1203. <if test="projectStatus !=null">
  1204. and b.project_status = #{projectStatus}
  1205. </if>
  1206. <if test="outSourcingStatus !=null">
  1207. and b.outsource= #{outSourcingStatus}
  1208. </if>
  1209. <if test="updateTime !=null">
  1210. and a.update_time between #{updateTime} and #{updateTime} + interval 1 day
  1211. </if>
  1212. <if test="progress !=null">
  1213. and a.progress = #{progress}
  1214. </if>
  1215. <if test="applicationLevel !=null">
  1216. <if test="applicationLevel == 0">
  1217. and e.total_amount &lt; 3
  1218. </if>
  1219. <if test="applicationLevel == 1">
  1220. and e.total_amount &gt; 3 and e.total_amount &lt; 8
  1221. </if>
  1222. <if test="applicationLevel == 2">
  1223. and e.total_amount &gt; 8
  1224. </if>
  1225. </if>
  1226. <if test="reviewProvince !=null">
  1227. and a.review_province = #{reviewProvince}
  1228. </if>
  1229. <if test="finalSettlementStatus !=null">
  1230. and a.final_settlement_status = #{finalSettlementStatus}
  1231. </if>
  1232. <if test="adDeliverStatus !=null">
  1233. and a.ad_deliver_status = #{adDeliverStatus}
  1234. </if>
  1235. <if test="torchStatus !=null">
  1236. and a.torch_status = #{torchStatus}
  1237. </if>
  1238. <if test="statisticsStatus !=null">
  1239. and a.statistics_status = #{statisticsStatus}
  1240. </if>
  1241. <if test="chStatus !=null">
  1242. and a.ch_status = #{chStatus}
  1243. </if>
  1244. </sql>
  1245. <select id="selectTaskDetailsCount" resultType="java.lang.Integer">
  1246. select
  1247. count(*)
  1248. from task_details a
  1249. <include refid="selectTaskDetailsSql"/>
  1250. </select>
  1251. </mapper>