TaskDetailsMapper.xml 78 KB

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