| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.goafanti.common.dao.TaskDetailsMapper">
- <resultMap type="com.goafanti.common.model.TaskDetails" id="TaskDetailsMap">
- <result property="id" column="id" jdbcType="INTEGER"/>
- <result property="tid" column="tid" jdbcType="INTEGER"/>
- <result property="uid" column="uid" jdbcType="VARCHAR"/>
- <result property="taskName" column="task_name" jdbcType="VARCHAR"/>
- <result property="projectName" column="project_name" jdbcType="VARCHAR"/>
- <result property="technologyName" column="technology_name" jdbcType="VARCHAR"/>
- <result property="financeTaxationName" column="finance_taxation_name" jdbcType="VARCHAR"/>
- <result property="lastYear" column="last_year" jdbcType="INTEGER"/>
- <result property="lastRdSalesAmount" column="last_rd_sales_amount" jdbcType="VARCHAR"/>
- <result property="lastRdBudget" column="last_rd_budget" jdbcType="VARCHAR"/>
- <result property="beforeLastYear" column="before_last_year" jdbcType="INTEGER"/>
- <result property="beforeLastRdSalesAmount" column="before_last_rd_sales_amount" jdbcType="VARCHAR"/>
- <result property="beforeLastRdBudget" column="before_last_rd_budget" jdbcType="VARCHAR"/>
- <result property="workersNumber" column="workers_number" jdbcType="INTEGER"/>
- <result property="technologyNumber" column="technology_number" jdbcType="INTEGER"/>
- <result property="workersRate" column="workers_rate" jdbcType="NUMERIC"/>
- <result property="projectApprovalNumber" column="project_approval_number" jdbcType="INTEGER"/>
- <result property="rdBudget" column="rd_budget" jdbcType="VARCHAR"/>
- <result property="rdBudgetRate" column="rd_budget_rate" jdbcType="NUMERIC"/>
- <result property="threeYearsRdBudgetRate" column="three_years_rd_budget_rate" jdbcType="NUMERIC"/>
- <result property="rdSalesAmount" column="rd_sales_amount" jdbcType="VARCHAR"/>
- <result property="dataCycle" column="data_cycle" jdbcType="INTEGER"/>
- <result property="actualSalesAmount" column="actual_sales_amount" jdbcType="VARCHAR"/>
- <result property="actualRdNumber" column="actual_rd_number" jdbcType="INTEGER"/>
- <result property="actualOutsourcingNumber" column="actual_outsourcing_number" jdbcType="INTEGER"/>
- <result property="actualCooperateNumber" column="actual_cooperate_number" jdbcType="INTEGER"/>
- <result property="actualRegistrationNumber" column="actual_registration_number" jdbcType="INTEGER"/>
- <result property="actualRdAmount" column="actual_rd_amount" jdbcType="VARCHAR"/>
- <result property="actualRdRate" column="actual_rd_rate" jdbcType="NUMERIC"/>
- <result property="threeYearsActualRdRate" column="three_years_actual_rd_rate" jdbcType="NUMERIC"/>
- <result property="rdCompletionProgress" column="rd_completion_progress" jdbcType="NUMERIC"/>
- <result property="torchStatus" column="torch_status" jdbcType="INTEGER"/>
- <result property="chStatus" column="ch_status" jdbcType="INTEGER"/>
- <result property="statisticsStatus" column="statistics_status" jdbcType="INTEGER"/>
- <result property="finalSettlementStatus" column="final_settlement_status" jdbcType="INTEGER"/>
- <result property="torchOther" column="torch_other" jdbcType="VARCHAR"/>
- <result property="chOther" column="ch_other" jdbcType="VARCHAR"/>
- <result property="statisticsOther" column="statistics_other" jdbcType="VARCHAR"/>
- <result property="finalSettlementOther" column="final_settlement_other" jdbcType="VARCHAR"/>
- <result property="reportFormsRdNumber" column="report_forms_rd_number" jdbcType="INTEGER"/>
- <result property="intellectualPropertyAmount" column="intellectual_property_amount" jdbcType="VARCHAR"/>
- <result property="reportRdAmount" column="report_rd_amount" jdbcType="VARCHAR"/>
- <result property="rdReservesStatus" column="rd_reserves_status" jdbcType="INTEGER"/>
- <result property="rdReservesOther" column="rd_reserves_other" jdbcType="VARCHAR"/>
- <result property="rdAwardCompensationStatus" column="rd_award_compensation_status" jdbcType="INTEGER"/>
- <result property="rdAwardCompensationOther" column="rd_award_compensation_other" jdbcType="VARCHAR"/>
- <result property="rdApplicationFee" column="rd_application_fee" jdbcType="VARCHAR"/>
- <result property="rdAnnouncementAmount" column="rd_announcement_amount" jdbcType="VARCHAR"/>
- <result property="rdAnnouncementOther" column="rd_announcement_other" jdbcType="VARCHAR"/>
- <result property="adDeliverStatus" column="ad_deliver_status" jdbcType="INTEGER"/>
- <result property="adDeliverOther" column="ad_deliver_other" jdbcType="VARCHAR"/>
- <result property="adDeliverFinish" column="ad_deliver_finish" jdbcType="INTEGER"/>
- <result property="htDeliverStatus" column="ht_deliver_status" jdbcType="INTEGER"/>
- <result property="htDeliverOther" column="ht_deliver_other" jdbcType="VARCHAR"/>
- <result property="htDeliverFinish" column="ht_deliver_finish" jdbcType="INTEGER"/>
- <result property="closeMeetingStatus" column="close_meeting_status" jdbcType="INTEGER"/>
- <result property="closeMeetingOther" column="close_meeting_other" jdbcType="VARCHAR"/>
- <result property="phasedType" column="phased_type" jdbcType="INTEGER"/>
- <result property="phasedContent" column="phased_content" jdbcType="VARCHAR"/>
- <result property="projectApprovalWriteNumber" column="project_approval_write_number" jdbcType="INTEGER"/>
- <result property="projectApprovalWriteRate" column="project_approval_write_rate" jdbcType="NUMERIC"/>
- <result property="adPrepareJulyStatus" column="ad_prepare_july_status" jdbcType="INTEGER"/>
- <result property="adPrepareJulyOther" column="ad_prepare_july_other" jdbcType="VARCHAR"/>
- <result property="adPrepareOctoberStatus" column="ad_prepare_october_status" jdbcType="INTEGER"/>
- <result property="adPrepareOctoberOther" column="ad_prepare_october_other" jdbcType="VARCHAR"/>
- <result property="ipInventionPatentDeclare" column="ip_invention_patent_declare" jdbcType="INTEGER"/>
- <result property="ipInventionPatentAuthorize" column="ip_invention_patent_authorize" jdbcType="INTEGER"/>
- <result property="ipInventionPatentAuthorizeCount" column="ip_invention_patent_authorize_count" jdbcType="INTEGER"/>
- <result property="ipUtilityModelDeclare" column="ip_utility_model_declare" jdbcType="INTEGER"/>
- <result property="ipUtilityModelAuthorize" column="ip_utility_model_authorize" jdbcType="INTEGER"/>
- <result property="ipUtilityModelAuthorizeCount" column="ip_utility_model_authorize_count" jdbcType="INTEGER"/>
- <result property="ipSoftwareWorksDeclare" column="ip_software_works_declare" jdbcType="INTEGER"/>
- <result property="ipSoftwareWorksAuthorize" column="ip_software_works_authorize" jdbcType="INTEGER"/>
- <result property="ipSoftwareWorksAuthorizeCount" column="ip_software_works_authorize_count" jdbcType="INTEGER"/>
- <result property="ipHt" column="ip_ht" jdbcType="INTEGER"/>
- <result property="ipHtI" column="ip_ht_i" jdbcType="INTEGER"/>
- <result property="ipHtIi" column="ip_ht_ii" jdbcType="INTEGER"/>
- <result property="outsourcingDev" column="outsourcing_dev" jdbcType="INTEGER"/>
- <result property="contractRegistration" column="contract_registration" jdbcType="INTEGER"/>
- <result property="publicReleaseStipulation" column="public_release_stipulation" jdbcType="INTEGER"/>
- <result property="publicReleaseActual" column="public_release_actual" jdbcType="INTEGER"/>
- <result property="trainingStipulation" column="training_stipulation" jdbcType="INTEGER"/>
- <result property="trainingActual" column="training_actual" jdbcType="INTEGER"/>
- <result property="trainingOther" column="training_other" jdbcType="VARCHAR"/>
- <result property="htScore" column="ht_score" jdbcType="INTEGER"/>
- <result property="htBatch" column="ht_batch" jdbcType="INTEGER"/>
- <result property="htFocus" column="ht_focus" jdbcType="INTEGER"/>
- <result property="webSubmit" column="web_submit" jdbcType="INTEGER"/>
- <result property="webSubmitOther" column="web_submit_other" jdbcType="VARCHAR"/>
- <result property="paperSubmit" column="paper_submit" jdbcType="INTEGER"/>
- <result property="paperSubmitOther" column="paper_submit_other" jdbcType="VARCHAR"/>
- <result property="reviewProvince" column="review_province" jdbcType="INTEGER"/>
- <result property="reviewCountry" column="review_country" jdbcType="INTEGER"/>
- <result property="reviewProvinceNumber" column="review_province_number" jdbcType="INTEGER"/>
- <result property="reviewCountryNumber" column="review_country_number" jdbcType="INTEGER"/>
- <result property="remarks" column="remarks" jdbcType="VARCHAR"/>
- <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
- <result property="downloadTime" column="download_time" jdbcType="TIMESTAMP"/>
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
- </resultMap>
-
- <sql id="TaskDetailsAllSql">
- 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
- </sql>
- <!--查询单个-->
- <select id="selectById" resultMap="TaskDetailsMap">
- select
- <include refid="TaskDetailsAllSql"/>
- from task_details
- where id = #{id}
- </select>
- <!--新增所有列-->
- <insert id="insert" keyProperty="id" useGeneratedKeys="true">
- 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)
- 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})
- </insert>
- <insert id="insertBatch">
- 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)
- values
- <foreach collection="entities" item="entity" separator=",">
- (#{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})
- </foreach>
- </insert>
- <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
- 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)
- values
- <foreach collection="entities" item="entity" separator=",">
- (#{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})
- </foreach>
- on duplicate key update
- tid = values(tid),
- uid = values(uid),
- task_name = values(task_name),
- project_name = values(project_name),
- technology_name = values(technology_name),
- finance_taxation_name = values(finance_taxation_name),
- last_year = values(last_year),
- last_rd_sales_amount = values(last_rd_sales_amount),
- last_rd_budget = values(last_rd_budget),
- before_last_year = values(before_last_year),
- before_last_rd_sales_amount = values(before_last_rd_sales_amount),
- before_last_rd_budget = values(before_last_rd_budget),
- workers_number = values(workers_number),
- technology_number = values(technology_number),
- workers_rate = values(workers_rate),
- project_approval_number = values(project_approval_number),
- rd_budget = values(rd_budget),
- rd_budget_rate = values(rd_budget_rate),
- three_years_rd_budget_rate = values(three_years_rd_budget_rate),
- rd_sales_amount = values(rd_sales_amount),
- data_cycle = values(data_cycle),
- actual_sales_amount = values(actual_sales_amount),
- actual_rd_number = values(actual_rd_number),
- actual_outsourcing_number = values(actual_outsourcing_number),
- actual_cooperate_number = values(actual_cooperate_number),
- actual_registration_number = values(actual_registration_number),
- actual_rd_amount = values(actual_rd_amount),
- actual_rd_rate = values(actual_rd_rate),
- three_years_actual_rd_rate = values(three_years_actual_rd_rate),
- rd_completion_progress = values(rd_completion_progress),
- torch_status = values(torch_status),
- ch_status = values(ch_status),
- statistics_status = values(statistics_status),
- final_settlement_status = values(final_settlement_status),
- torch_other = values(torch_other),
- ch_other = values(ch_other),
- statistics_other = values(statistics_other),
- final_settlement_other = values(final_settlement_other),
- report_forms_rd_number = values(report_forms_rd_number),
- intellectual_property_amount = values(intellectual_property_amount),
- report_rd_amount = values(report_rd_amount),
- rd_reserves_status = values(rd_reserves_status),
- rd_reserves_other = values(rd_reserves_other),
- rd_award_compensation_status = values(rd_award_compensation_status),
- rd_award_compensation_other = values(rd_award_compensation_other),
- rd_application_fee = values(rd_application_fee),
- rd_announcement_amount = values(rd_announcement_amount),
- rd_announcement_other = values(rd_announcement_other),
- ad_deliver_status = values(ad_deliver_status),
- ad_deliver_other = values(ad_deliver_other),
- ad_deliver_finish = values(ad_deliver_finish),
- ht_deliver_status = values(ht_deliver_status),
- ht_deliver_other = values(ht_deliver_other),
- ht_deliver_finish = values(ht_deliver_finish),
- close_meeting_status = values(close_meeting_status),
- close_meeting_other = values(close_meeting_other),
- phased_type = values(phased_type),
- phased_content = values(phased_content),
- project_approval_write_number = values(project_approval_write_number),
- project_approval_write_rate = values(project_approval_write_rate),
- ad_prepare_july_status = values(ad_prepare_july_status),
- ad_prepare_july_other = values(ad_prepare_july_other),
- ad_prepare_october_status = values(ad_prepare_october_status),
- ad_prepare_october_other = values(ad_prepare_october_other),
- ip_invention_patent_declare = values(ip_invention_patent_declare),
- ip_invention_patent_authorize = values(ip_invention_patent_authorize),
- ip_invention_patent_authorize_count = values(ip_invention_patent_authorize_count),
- ip_utility_model_declare = values(ip_utility_model_declare),
- ip_utility_model_authorize = values(ip_utility_model_authorize),
- ip_utility_model_authorize_count = values(ip_utility_model_authorize_count),
- ip_software_works_declare = values(ip_software_works_declare),
- ip_software_works_authorize = values(ip_software_works_authorize),
- ip_software_works_authorize_count = values(ip_software_works_authorize_count),
- ip_ht = values(ip_ht),
- ip_ht_i = values(ip_ht_i),
- ip_ht_ii = values(ip_ht_ii),
- outsourcing_dev = values(outsourcing_dev),
- contract_registration = values(contract_registration),
- public_release_stipulation = values(public_release_stipulation),
- public_release_actual = values(public_release_actual),
- training_stipulation = values(training_stipulation),
- training_actual = values(training_actual),
- training_other = values(training_other),
- ht_score = values(ht_score),
- ht_batch = values(ht_batch),
- ht_focus = values(ht_focus),
- web_submit = values(web_submit),
- web_submit_other = values(web_submit_other),
- paper_submit = values(paper_submit),
- paper_submit_other = values(paper_submit_other),
- review_province = values(review_province),
- review_country = values(review_country),
- review_province_number = values(review_province_number),
- review_country_number = values(review_country_number),
- remarks = values(remarks),
- update_time = values(update_time),
- download_time = values(download_time),
- create_time = values(create_time)
- </insert>
- <!--通过主键修改数据-->
- <update id="update">
- update task_details
- <set>
- <if test="tid != null">
- tid = #{tid},
- </if>
- <if test="uid != null and uid != ''">
- uid = #{uid},
- </if>
- <if test="taskName != null and taskName != ''">
- task_name = #{taskName},
- </if>
- <if test="projectName != null and projectName != ''">
- project_name = #{projectName},
- </if>
- <if test="technologyName != null and technologyName != ''">
- technology_name = #{technologyName},
- </if>
- <if test="financeTaxationName != null and financeTaxationName != ''">
- finance_taxation_name = #{financeTaxationName},
- </if>
- <if test="lastYear != null">
- last_year = #{lastYear},
- </if>
- <if test="lastRdSalesAmount != null">
- last_rd_sales_amount = #{lastRdSalesAmount},
- </if>
- <if test="lastRdBudget != null">
- last_rd_budget = #{lastRdBudget},
- </if>
- <if test="beforeLastYear != null">
- before_last_year = #{beforeLastYear},
- </if>
- <if test="beforeLastRdSalesAmount != null">
- before_last_rd_sales_amount = #{beforeLastRdSalesAmount},
- </if>
- <if test="beforeLastRdBudget != null">
- before_last_rd_budget = #{beforeLastRdBudget},
- </if>
- <if test="workersNumber != null">
- workers_number = #{workersNumber},
- </if>
- <if test="technologyNumber != null">
- technology_number = #{technologyNumber},
- </if>
- <if test="workersRate != null">
- workers_rate = #{workersRate},
- </if>
- <if test="projectApprovalNumber != null">
- project_approval_number = #{projectApprovalNumber},
- </if>
- <if test="rdBudget != null">
- rd_budget = #{rdBudget},
- </if>
- <if test="rdBudgetRate != null">
- rd_budget_rate = #{rdBudgetRate},
- </if>
- <if test="threeYearsRdBudgetRate != null">
- three_years_rd_budget_rate = #{threeYearsRdBudgetRate},
- </if>
- <if test="rdSalesAmount != null">
- rd_sales_amount = #{rdSalesAmount},
- </if>
- <if test="dataCycle != null">
- data_cycle = #{dataCycle},
- </if>
- <if test="actualSalesAmount != null">
- actual_sales_amount = #{actualSalesAmount},
- </if>
- <if test="actualRdNumber != null">
- actual_rd_number = #{actualRdNumber},
- </if>
- <if test="actualOutsourcingNumber != null">
- actual_outsourcing_number = #{actualOutsourcingNumber},
- </if>
- <if test="actualCooperateNumber != null">
- actual_cooperate_number = #{actualCooperateNumber},
- </if>
- <if test="actualRegistrationNumber != null">
- actual_registration_number = #{actualRegistrationNumber},
- </if>
- <if test="actualRdAmount != null">
- actual_rd_amount = #{actualRdAmount},
- </if>
- <if test="actualRdRate != null">
- actual_rd_rate = #{actualRdRate},
- </if>
- <if test="threeYearsActualRdRate != null">
- three_years_actual_rd_rate = #{threeYearsActualRdRate},
- </if>
- <if test="rdCompletionProgress != null">
- rd_completion_progress = #{rdCompletionProgress},
- </if>
- <if test="torchStatus != null">
- torch_status = #{torchStatus},
- </if>
- <if test="chStatus != null">
- ch_status = #{chStatus},
- </if>
- <if test="statisticsStatus != null">
- statistics_status = #{statisticsStatus},
- </if>
- <if test="finalSettlementStatus != null">
- final_settlement_status = #{finalSettlementStatus},
- </if>
- <if test="torchOther != null and torchOther != ''">
- torch_other = #{torchOther},
- </if>
- <if test="chOther != null and chOther != ''">
- ch_other = #{chOther},
- </if>
- <if test="statisticsOther != null and statisticsOther != ''">
- statistics_other = #{statisticsOther},
- </if>
- <if test="finalSettlementOther != null and finalSettlementOther != ''">
- final_settlement_other = #{finalSettlementOther},
- </if>
- <if test="reportFormsRdNumber != null">
- report_forms_rd_number = #{reportFormsRdNumber},
- </if>
- <if test="intellectualPropertyAmount != null">
- intellectual_property_amount = #{intellectualPropertyAmount},
- </if>
- <if test="reportRdAmount != null">
- report_rd_amount = #{reportRdAmount},
- </if>
- <if test="rdReservesStatus != null">
- rd_reserves_status = #{rdReservesStatus},
- </if>
- <if test="rdReservesOther != null and rdReservesOther != ''">
- rd_reserves_other = #{rdReservesOther},
- </if>
- <if test="rdAwardCompensationStatus != null">
- rd_award_compensation_status = #{rdAwardCompensationStatus},
- </if>
- <if test="rdAwardCompensationOther != null and rdAwardCompensationOther != ''">
- rd_award_compensation_other = #{rdAwardCompensationOther},
- </if>
- <if test="rdApplicationFee != null">
- rd_application_fee = #{rdApplicationFee},
- </if>
- <if test="rdAnnouncementAmount != null">
- rd_announcement_amount = #{rdAnnouncementAmount},
- </if>
- <if test="rdAnnouncementOther != null and rdAnnouncementOther != ''">
- rd_announcement_other = #{rdAnnouncementOther},
- </if>
- <if test="adDeliverStatus != null">
- ad_deliver_status = #{adDeliverStatus},
- </if>
- <if test="adDeliverOther != null and adDeliverOther != ''">
- ad_deliver_other = #{adDeliverOther},
- </if>
- <if test="adDeliverFinish != null">
- ad_deliver_finish = #{adDeliverFinish},
- </if>
- <if test="htDeliverStatus != null">
- ht_deliver_status = #{htDeliverStatus},
- </if>
- <if test="htDeliverOther != null and htDeliverOther != ''">
- ht_deliver_other = #{htDeliverOther},
- </if>
- <if test="htDeliverFinish != null">
- ht_deliver_finish = #{htDeliverFinish},
- </if>
- <if test="closeMeetingStatus != null">
- close_meeting_status = #{closeMeetingStatus},
- </if>
- <if test="closeMeetingOther != null and closeMeetingOther != ''">
- close_meeting_other = #{closeMeetingOther},
- </if>
- <if test="phasedType != null">
- phased_type = #{phasedType},
- </if>
- <if test="phasedContent != null and phasedContent != ''">
- phased_content = #{phasedContent},
- </if>
- <if test="projectApprovalWriteNumber != null">
- project_approval_write_number = #{projectApprovalWriteNumber},
- </if>
- <if test="projectApprovalWriteRate != null">
- project_approval_write_rate = #{projectApprovalWriteRate},
- </if>
- <if test="adPrepareJulyStatus != null">
- ad_prepare_july_status = #{adPrepareJulyStatus},
- </if>
- <if test="adPrepareJulyOther != null and adPrepareJulyOther != ''">
- ad_prepare_july_other = #{adPrepareJulyOther},
- </if>
- <if test="adPrepareOctoberStatus != null">
- ad_prepare_october_status = #{adPrepareOctoberStatus},
- </if>
- <if test="adPrepareOctoberOther != null and adPrepareOctoberOther != ''">
- ad_prepare_october_other = #{adPrepareOctoberOther},
- </if>
- <if test="ipInventionPatentDeclare != null">
- ip_invention_patent_declare = #{ipInventionPatentDeclare},
- </if>
- <if test="ipInventionPatentAuthorize != null">
- ip_invention_patent_authorize = #{ipInventionPatentAuthorize},
- </if>
- <if test="ipInventionPatentAuthorizeCount != null">
- ip_invention_patent_authorize_count = #{ipInventionPatentAuthorizeCount},
- </if>
- <if test="ipUtilityModelDeclare != null">
- ip_utility_model_declare = #{ipUtilityModelDeclare},
- </if>
- <if test="ipUtilityModelAuthorize != null">
- ip_utility_model_authorize = #{ipUtilityModelAuthorize},
- </if>
- <if test="ipUtilityModelAuthorizeCount != null">
- ip_utility_model_authorize_count = #{ipUtilityModelAuthorizeCount},
- </if>
- <if test="ipSoftwareWorksDeclare != null">
- ip_software_works_declare = #{ipSoftwareWorksDeclare},
- </if>
- <if test="ipSoftwareWorksAuthorize != null">
- ip_software_works_authorize = #{ipSoftwareWorksAuthorize},
- </if>
- <if test="ipSoftwareWorksAuthorizeCount != null">
- ip_software_works_authorize_count = #{ipSoftwareWorksAuthorizeCount},
- </if>
- <if test="ipHt != null">
- ip_ht = #{ipHt},
- </if>
- <if test="ipHtI != null">
- ip_ht_i = #{ipHtI},
- </if>
- <if test="ipHtIi != null">
- ip_ht_ii = #{ipHtIi},
- </if>
- <if test="outsourcingDev != null">
- outsourcing_dev = #{outsourcingDev},
- </if>
- <if test="contractRegistration != null">
- contract_registration = #{contractRegistration},
- </if>
- <if test="publicReleaseStipulation != null">
- public_release_stipulation = #{publicReleaseStipulation},
- </if>
- <if test="publicReleaseActual != null">
- public_release_actual = #{publicReleaseActual},
- </if>
- <if test="trainingStipulation != null">
- training_stipulation = #{trainingStipulation},
- </if>
- <if test="trainingActual != null">
- training_actual = #{trainingActual},
- </if>
- <if test="trainingOther != null and trainingOther != ''">
- training_other = #{trainingOther},
- </if>
- <if test="htScore != null">
- ht_score = #{htScore},
- </if>
- <if test="htBatch != null">
- ht_batch = #{htBatch},
- </if>
- <if test="htFocus != null">
- ht_focus = #{htFocus},
- </if>
- <if test="webSubmit != null">
- web_submit = #{webSubmit},
- </if>
- <if test="webSubmitOther != null and webSubmitOther != ''">
- web_submit_other = #{webSubmitOther},
- </if>
- <if test="paperSubmit != null">
- paper_submit = #{paperSubmit},
- </if>
- <if test="paperSubmitOther != null and paperSubmitOther != ''">
- paper_submit_other = #{paperSubmitOther},
- </if>
- <if test="reviewProvince != null">
- review_province = #{reviewProvince},
- </if>
- <if test="reviewCountry != null">
- review_country = #{reviewCountry},
- </if>
- <if test="reviewProvinceNumber != null">
- review_province_number = #{reviewProvinceNumber},
- </if>
- <if test="reviewCountryNumber != null">
- review_country_number = #{reviewCountryNumber},
- </if>
- <if test="remarks != null and remarks != ''">
- remarks = #{remarks},
- </if>
- <if test="updateTime != null">
- update_time = #{updateTime},
- </if>
- <if test="downloadTime != null">
- download_time = #{downloadTime},
- </if>
- <if test="createTime != null">
- create_time = #{createTime},
- </if>
- </set>
- where id = #{id}
- </update>
-
- <!--查询指定行数据-->
- <select id="findTaskDetailsList" resultMap="TaskDetailsMap">
- select
- <include refid="TaskDetailsAllSql"/>
- from task_details
- <where>
- <if test="id != null">
- and id = #{id}
- </if>
- <if test="tid != null">
- and tid = #{tid}
- </if>
- <if test="uid != null and uid != ''">
- and uid = #{uid}
- </if>
- <if test="taskName != null and taskName != ''">
- and task_name = #{taskName}
- </if>
- <if test="projectName != null and projectName != ''">
- and project_name = #{projectName}
- </if>
- <if test="technologyName != null and technologyName != ''">
- and technology_name = #{technologyName}
- </if>
- <if test="financeTaxationName != null and financeTaxationName != ''">
- and finance_taxation_name = #{financeTaxationName}
- </if>
- <if test="lastYear != null">
- and last_year = #{lastYear}
- </if>
- <if test="lastRdSalesAmount != null">
- and last_rd_sales_amount = #{lastRdSalesAmount}
- </if>
- <if test="lastRdBudget != null">
- and last_rd_budget = #{lastRdBudget}
- </if>
- <if test="beforeLastYear != null">
- and before_last_year = #{beforeLastYear}
- </if>
- <if test="beforeLastRdSalesAmount != null">
- and before_last_rd_sales_amount = #{beforeLastRdSalesAmount}
- </if>
- <if test="beforeLastRdBudget != null">
- and before_last_rd_budget = #{beforeLastRdBudget}
- </if>
- <if test="workersNumber != null">
- and workers_number = #{workersNumber}
- </if>
- <if test="technologyNumber != null">
- and technology_number = #{technologyNumber}
- </if>
- <if test="workersRate != null">
- and workers_rate = #{workersRate}
- </if>
- <if test="projectApprovalNumber != null">
- and project_approval_number = #{projectApprovalNumber}
- </if>
- <if test="rdBudget != null">
- and rd_budget = #{rdBudget}
- </if>
- <if test="rdBudgetRate != null">
- and rd_budget_rate = #{rdBudgetRate}
- </if>
- <if test="threeYearsRdBudgetRate != null">
- and three_years_rd_budget_rate = #{threeYearsRdBudgetRate}
- </if>
- <if test="rdSalesAmount != null">
- and rd_sales_amount = #{rdSalesAmount}
- </if>
- <if test="dataCycle != null">
- and data_cycle = #{dataCycle}
- </if>
- <if test="actualSalesAmount != null">
- and actual_sales_amount = #{actualSalesAmount}
- </if>
- <if test="actualRdNumber != null">
- and actual_rd_number = #{actualRdNumber}
- </if>
- <if test="actualOutsourcingNumber != null">
- and actual_outsourcing_number = #{actualOutsourcingNumber}
- </if>
- <if test="actualCooperateNumber != null">
- and actual_cooperate_number = #{actualCooperateNumber}
- </if>
- <if test="actualRegistrationNumber != null">
- and actual_registration_number = #{actualRegistrationNumber}
- </if>
- <if test="actualRdAmount != null">
- and actual_rd_amount = #{actualRdAmount}
- </if>
- <if test="actualRdRate != null">
- and actual_rd_rate = #{actualRdRate}
- </if>
- <if test="threeYearsActualRdRate != null">
- and three_years_actual_rd_rate = #{threeYearsActualRdRate}
- </if>
- <if test="rdCompletionProgress != null">
- and rd_completion_progress = #{rdCompletionProgress}
- </if>
- <if test="torchStatus != null">
- and torch_status = #{torchStatus}
- </if>
- <if test="chStatus != null">
- and ch_status = #{chStatus}
- </if>
- <if test="statisticsStatus != null">
- and statistics_status = #{statisticsStatus}
- </if>
- <if test="finalSettlementStatus != null">
- and final_settlement_status = #{finalSettlementStatus}
- </if>
- <if test="torchOther != null and torchOther != ''">
- and torch_other = #{torchOther}
- </if>
- <if test="chOther != null and chOther != ''">
- and ch_other = #{chOther}
- </if>
- <if test="statisticsOther != null and statisticsOther != ''">
- and statistics_other = #{statisticsOther}
- </if>
- <if test="finalSettlementOther != null and finalSettlementOther != ''">
- and final_settlement_other = #{finalSettlementOther}
- </if>
- <if test="reportFormsRdNumber != null">
- and report_forms_rd_number = #{reportFormsRdNumber}
- </if>
- <if test="intellectualPropertyAmount != null">
- and intellectual_property_amount = #{intellectualPropertyAmount}
- </if>
- <if test="reportRdAmount != null">
- and report_rd_amount = #{reportRdAmount}
- </if>
- <if test="rdReservesStatus != null">
- and rd_reserves_status = #{rdReservesStatus}
- </if>
- <if test="rdReservesOther != null and rdReservesOther != ''">
- and rd_reserves_other = #{rdReservesOther}
- </if>
- <if test="rdAwardCompensationStatus != null">
- and rd_award_compensation_status = #{rdAwardCompensationStatus}
- </if>
- <if test="rdAwardCompensationOther != null and rdAwardCompensationOther != ''">
- and rd_award_compensation_other = #{rdAwardCompensationOther}
- </if>
- <if test="rdApplicationFee != null">
- and rd_application_fee = #{rdApplicationFee}
- </if>
- <if test="rdAnnouncementAmount != null">
- and rd_announcement_amount = #{rdAnnouncementAmount}
- </if>
- <if test="rdAnnouncementOther != null and rdAnnouncementOther != ''">
- and rd_announcement_other = #{rdAnnouncementOther}
- </if>
- <if test="adDeliverStatus != null">
- and ad_deliver_status = #{adDeliverStatus}
- </if>
- <if test="adDeliverOther != null and adDeliverOther != ''">
- and ad_deliver_other = #{adDeliverOther}
- </if>
- <if test="adDeliverFinish != null">
- and ad_deliver_finish = #{adDeliverFinish}
- </if>
- <if test="htDeliverStatus != null">
- and ht_deliver_status = #{htDeliverStatus}
- </if>
- <if test="htDeliverOther != null and htDeliverOther != ''">
- and ht_deliver_other = #{htDeliverOther}
- </if>
- <if test="htDeliverFinish != null">
- and ht_deliver_finish = #{htDeliverFinish}
- </if>
- <if test="closeMeetingStatus != null">
- and close_meeting_status = #{closeMeetingStatus}
- </if>
- <if test="closeMeetingOther != null and closeMeetingOther != ''">
- and close_meeting_other = #{closeMeetingOther}
- </if>
- <if test="phasedType != null">
- and phased_type = #{phasedType}
- </if>
- <if test="phasedContent != null and phasedContent != ''">
- and phased_content = #{phasedContent}
- </if>
- <if test="projectApprovalWriteNumber != null">
- and project_approval_write_number = #{projectApprovalWriteNumber}
- </if>
- <if test="projectApprovalWriteRate != null">
- and project_approval_write_rate = #{projectApprovalWriteRate}
- </if>
- <if test="adPrepareJulyStatus != null">
- and ad_prepare_july_status = #{adPrepareJulyStatus}
- </if>
- <if test="adPrepareJulyOther != null and adPrepareJulyOther != ''">
- and ad_prepare_july_other = #{adPrepareJulyOther}
- </if>
- <if test="adPrepareOctoberStatus != null">
- and ad_prepare_october_status = #{adPrepareOctoberStatus}
- </if>
- <if test="adPrepareOctoberOther != null and adPrepareOctoberOther != ''">
- and ad_prepare_october_other = #{adPrepareOctoberOther}
- </if>
- <if test="ipInventionPatentDeclare != null">
- and ip_invention_patent_declare = #{ipInventionPatentDeclare}
- </if>
- <if test="ipInventionPatentAuthorize != null">
- and ip_invention_patent_authorize = #{ipInventionPatentAuthorize}
- </if>
- <if test="ipInventionPatentAuthorizeCount != null">
- and ip_invention_patent_authorize_count = #{ipInventionPatentAuthorizeCount}
- </if>
- <if test="ipUtilityModelDeclare != null">
- and ip_utility_model_declare = #{ipUtilityModelDeclare}
- </if>
- <if test="ipUtilityModelAuthorize != null">
- and ip_utility_model_authorize = #{ipUtilityModelAuthorize}
- </if>
- <if test="ipUtilityModelAuthorizeCount != null">
- and ip_utility_model_authorize_count = #{ipUtilityModelAuthorizeCount}
- </if>
- <if test="ipSoftwareWorksDeclare != null">
- and ip_software_works_declare = #{ipSoftwareWorksDeclare}
- </if>
- <if test="ipSoftwareWorksAuthorize != null">
- and ip_software_works_authorize = #{ipSoftwareWorksAuthorize}
- </if>
- <if test="ipSoftwareWorksAuthorizeCount != null">
- and ip_software_works_authorize_count = #{ipSoftwareWorksAuthorizeCount}
- </if>
- <if test="ipHt != null">
- and ip_ht = #{ipHt}
- </if>
- <if test="ipHtI != null">
- and ip_ht_i = #{ipHtI}
- </if>
- <if test="ipHtIi != null">
- and ip_ht_ii = #{ipHtIi}
- </if>
- <if test="outsourcingDev != null">
- and outsourcing_dev = #{outsourcingDev}
- </if>
- <if test="contractRegistration != null">
- and contract_registration = #{contractRegistration}
- </if>
- <if test="publicReleaseStipulation != null">
- and public_release_stipulation = #{publicReleaseStipulation}
- </if>
- <if test="publicReleaseActual != null">
- and public_release_actual = #{publicReleaseActual}
- </if>
- <if test="trainingStipulation != null">
- and training_stipulation = #{trainingStipulation}
- </if>
- <if test="trainingActual != null">
- and training_actual = #{trainingActual}
- </if>
- <if test="trainingOther != null and trainingOther != ''">
- and training_other = #{trainingOther}
- </if>
- <if test="htScore != null">
- and ht_score = #{htScore}
- </if>
- <if test="htBatch != null">
- and ht_batch = #{htBatch}
- </if>
- <if test="htFocus != null">
- and ht_focus = #{htFocus}
- </if>
- <if test="webSubmit != null">
- and web_submit = #{webSubmit}
- </if>
- <if test="webSubmitOther != null and webSubmitOther != ''">
- and web_submit_other = #{webSubmitOther}
- </if>
- <if test="paperSubmit != null">
- and paper_submit = #{paperSubmit}
- </if>
- <if test="paperSubmitOther != null and paperSubmitOther != ''">
- and paper_submit_other = #{paperSubmitOther}
- </if>
- <if test="reviewProvince != null">
- and review_province = #{reviewProvince}
- </if>
- <if test="reviewCountry != null">
- and review_country = #{reviewCountry}
- </if>
- <if test="reviewProvinceNumber != null">
- and review_province_number = #{reviewProvinceNumber}
- </if>
- <if test="reviewCountryNumber != null">
- and review_country_number = #{reviewCountryNumber}
- </if>
- <if test="remarks != null and remarks != ''">
- and remarks = #{remarks}
- </if>
- <if test="updateTime != null">
- and update_time = #{updateTime}
- </if>
- <if test="downloadTime != null">
- and download_time = #{downloadTime}
- </if>
- <if test="createTime != null">
- and create_time = #{createTime}
- </if>
- </where>
- <if test="page_sql != null">
- ${page_sql}
- </if>
- </select>
- <!--统计总行数-->
- <select id="findTaskDetailsCount" resultType="java.lang.Integer">
- select count(1)
- from task_details
- <where>
- <if test="id != null">
- and id = #{id}
- </if>
- <if test="tid != null">
- and tid = #{tid}
- </if>
- <if test="uid != null and uid != ''">
- and uid = #{uid}
- </if>
- <if test="taskName != null and taskName != ''">
- and task_name = #{taskName}
- </if>
- <if test="projectName != null and projectName != ''">
- and project_name = #{projectName}
- </if>
- <if test="technologyName != null and technologyName != ''">
- and technology_name = #{technologyName}
- </if>
- <if test="financeTaxationName != null and financeTaxationName != ''">
- and finance_taxation_name = #{financeTaxationName}
- </if>
- <if test="lastYear != null">
- and last_year = #{lastYear}
- </if>
- <if test="lastRdSalesAmount != null">
- and last_rd_sales_amount = #{lastRdSalesAmount}
- </if>
- <if test="lastRdBudget != null">
- and last_rd_budget = #{lastRdBudget}
- </if>
- <if test="beforeLastYear != null">
- and before_last_year = #{beforeLastYear}
- </if>
- <if test="beforeLastRdSalesAmount != null">
- and before_last_rd_sales_amount = #{beforeLastRdSalesAmount}
- </if>
- <if test="beforeLastRdBudget != null">
- and before_last_rd_budget = #{beforeLastRdBudget}
- </if>
- <if test="workersNumber != null">
- and workers_number = #{workersNumber}
- </if>
- <if test="technologyNumber != null">
- and technology_number = #{technologyNumber}
- </if>
- <if test="workersRate != null">
- and workers_rate = #{workersRate}
- </if>
- <if test="projectApprovalNumber != null">
- and project_approval_number = #{projectApprovalNumber}
- </if>
- <if test="rdBudget != null">
- and rd_budget = #{rdBudget}
- </if>
- <if test="rdBudgetRate != null">
- and rd_budget_rate = #{rdBudgetRate}
- </if>
- <if test="threeYearsRdBudgetRate != null">
- and three_years_rd_budget_rate = #{threeYearsRdBudgetRate}
- </if>
- <if test="rdSalesAmount != null">
- and rd_sales_amount = #{rdSalesAmount}
- </if>
- <if test="dataCycle != null">
- and data_cycle = #{dataCycle}
- </if>
- <if test="actualSalesAmount != null">
- and actual_sales_amount = #{actualSalesAmount}
- </if>
- <if test="actualRdNumber != null">
- and actual_rd_number = #{actualRdNumber}
- </if>
- <if test="actualOutsourcingNumber != null">
- and actual_outsourcing_number = #{actualOutsourcingNumber}
- </if>
- <if test="actualCooperateNumber != null">
- and actual_cooperate_number = #{actualCooperateNumber}
- </if>
- <if test="actualRegistrationNumber != null">
- and actual_registration_number = #{actualRegistrationNumber}
- </if>
- <if test="actualRdAmount != null">
- and actual_rd_amount = #{actualRdAmount}
- </if>
- <if test="actualRdRate != null">
- and actual_rd_rate = #{actualRdRate}
- </if>
- <if test="threeYearsActualRdRate != null">
- and three_years_actual_rd_rate = #{threeYearsActualRdRate}
- </if>
- <if test="rdCompletionProgress != null">
- and rd_completion_progress = #{rdCompletionProgress}
- </if>
- <if test="torchStatus != null">
- and torch_status = #{torchStatus}
- </if>
- <if test="chStatus != null">
- and ch_status = #{chStatus}
- </if>
- <if test="statisticsStatus != null">
- and statistics_status = #{statisticsStatus}
- </if>
- <if test="finalSettlementStatus != null">
- and final_settlement_status = #{finalSettlementStatus}
- </if>
- <if test="torchOther != null and torchOther != ''">
- and torch_other = #{torchOther}
- </if>
- <if test="chOther != null and chOther != ''">
- and ch_other = #{chOther}
- </if>
- <if test="statisticsOther != null and statisticsOther != ''">
- and statistics_other = #{statisticsOther}
- </if>
- <if test="finalSettlementOther != null and finalSettlementOther != ''">
- and final_settlement_other = #{finalSettlementOther}
- </if>
- <if test="reportFormsRdNumber != null">
- and report_forms_rd_number = #{reportFormsRdNumber}
- </if>
- <if test="intellectualPropertyAmount != null">
- and intellectual_property_amount = #{intellectualPropertyAmount}
- </if>
- <if test="reportRdAmount != null">
- and report_rd_amount = #{reportRdAmount}
- </if>
- <if test="rdReservesStatus != null">
- and rd_reserves_status = #{rdReservesStatus}
- </if>
- <if test="rdReservesOther != null and rdReservesOther != ''">
- and rd_reserves_other = #{rdReservesOther}
- </if>
- <if test="rdAwardCompensationStatus != null">
- and rd_award_compensation_status = #{rdAwardCompensationStatus}
- </if>
- <if test="rdAwardCompensationOther != null and rdAwardCompensationOther != ''">
- and rd_award_compensation_other = #{rdAwardCompensationOther}
- </if>
- <if test="rdApplicationFee != null">
- and rd_application_fee = #{rdApplicationFee}
- </if>
- <if test="rdAnnouncementAmount != null">
- and rd_announcement_amount = #{rdAnnouncementAmount}
- </if>
- <if test="rdAnnouncementOther != null and rdAnnouncementOther != ''">
- and rd_announcement_other = #{rdAnnouncementOther}
- </if>
- <if test="adDeliverStatus != null">
- and ad_deliver_status = #{adDeliverStatus}
- </if>
- <if test="adDeliverOther != null and adDeliverOther != ''">
- and ad_deliver_other = #{adDeliverOther}
- </if>
- <if test="adDeliverFinish != null">
- and ad_deliver_finish = #{adDeliverFinish}
- </if>
- <if test="htDeliverStatus != null">
- and ht_deliver_status = #{htDeliverStatus}
- </if>
- <if test="htDeliverOther != null and htDeliverOther != ''">
- and ht_deliver_other = #{htDeliverOther}
- </if>
- <if test="htDeliverFinish != null">
- and ht_deliver_finish = #{htDeliverFinish}
- </if>
- <if test="closeMeetingStatus != null">
- and close_meeting_status = #{closeMeetingStatus}
- </if>
- <if test="closeMeetingOther != null and closeMeetingOther != ''">
- and close_meeting_other = #{closeMeetingOther}
- </if>
- <if test="phasedType != null">
- and phased_type = #{phasedType}
- </if>
- <if test="phasedContent != null and phasedContent != ''">
- and phased_content = #{phasedContent}
- </if>
- <if test="projectApprovalWriteNumber != null">
- and project_approval_write_number = #{projectApprovalWriteNumber}
- </if>
- <if test="projectApprovalWriteRate != null">
- and project_approval_write_rate = #{projectApprovalWriteRate}
- </if>
- <if test="adPrepareJulyStatus != null">
- and ad_prepare_july_status = #{adPrepareJulyStatus}
- </if>
- <if test="adPrepareJulyOther != null and adPrepareJulyOther != ''">
- and ad_prepare_july_other = #{adPrepareJulyOther}
- </if>
- <if test="adPrepareOctoberStatus != null">
- and ad_prepare_october_status = #{adPrepareOctoberStatus}
- </if>
- <if test="adPrepareOctoberOther != null and adPrepareOctoberOther != ''">
- and ad_prepare_october_other = #{adPrepareOctoberOther}
- </if>
- <if test="ipInventionPatentDeclare != null">
- and ip_invention_patent_declare = #{ipInventionPatentDeclare}
- </if>
- <if test="ipInventionPatentAuthorize != null">
- and ip_invention_patent_authorize = #{ipInventionPatentAuthorize}
- </if>
- <if test="ipInventionPatentAuthorizeCount != null">
- and ip_invention_patent_authorize_count = #{ipInventionPatentAuthorizeCount}
- </if>
- <if test="ipUtilityModelDeclare != null">
- and ip_utility_model_declare = #{ipUtilityModelDeclare}
- </if>
- <if test="ipUtilityModelAuthorize != null">
- and ip_utility_model_authorize = #{ipUtilityModelAuthorize}
- </if>
- <if test="ipUtilityModelAuthorizeCount != null">
- and ip_utility_model_authorize_count = #{ipUtilityModelAuthorizeCount}
- </if>
- <if test="ipSoftwareWorksDeclare != null">
- and ip_software_works_declare = #{ipSoftwareWorksDeclare}
- </if>
- <if test="ipSoftwareWorksAuthorize != null">
- and ip_software_works_authorize = #{ipSoftwareWorksAuthorize}
- </if>
- <if test="ipSoftwareWorksAuthorizeCount != null">
- and ip_software_works_authorize_count = #{ipSoftwareWorksAuthorizeCount}
- </if>
- <if test="ipHt != null">
- and ip_ht = #{ipHt}
- </if>
- <if test="ipHtI != null">
- and ip_ht_i = #{ipHtI}
- </if>
- <if test="ipHtIi != null">
- and ip_ht_ii = #{ipHtIi}
- </if>
- <if test="outsourcingDev != null">
- and outsourcing_dev = #{outsourcingDev}
- </if>
- <if test="contractRegistration != null">
- and contract_registration = #{contractRegistration}
- </if>
- <if test="publicReleaseStipulation != null">
- and public_release_stipulation = #{publicReleaseStipulation}
- </if>
- <if test="publicReleaseActual != null">
- and public_release_actual = #{publicReleaseActual}
- </if>
- <if test="trainingStipulation != null">
- and training_stipulation = #{trainingStipulation}
- </if>
- <if test="trainingActual != null">
- and training_actual = #{trainingActual}
- </if>
- <if test="trainingOther != null and trainingOther != ''">
- and training_other = #{trainingOther}
- </if>
- <if test="htScore != null">
- and ht_score = #{htScore}
- </if>
- <if test="htBatch != null">
- and ht_batch = #{htBatch}
- </if>
- <if test="htFocus != null">
- and ht_focus = #{htFocus}
- </if>
- <if test="webSubmit != null">
- and web_submit = #{webSubmit}
- </if>
- <if test="webSubmitOther != null and webSubmitOther != ''">
- and web_submit_other = #{webSubmitOther}
- </if>
- <if test="paperSubmit != null">
- and paper_submit = #{paperSubmit}
- </if>
- <if test="paperSubmitOther != null and paperSubmitOther != ''">
- and paper_submit_other = #{paperSubmitOther}
- </if>
- <if test="reviewProvince != null">
- and review_province = #{reviewProvince}
- </if>
- <if test="reviewCountry != null">
- and review_country = #{reviewCountry}
- </if>
- <if test="reviewProvinceNumber != null">
- and review_province_number = #{reviewProvinceNumber}
- </if>
- <if test="reviewCountryNumber != null">
- and review_country_number = #{reviewCountryNumber}
- </if>
- <if test="remarks != null and remarks != ''">
- and remarks = #{remarks}
- </if>
- <if test="updateTime != null">
- and update_time = #{updateTime}
- </if>
- <if test="downloadTime != null">
- and download_time = #{downloadTime}
- </if>
- <if test="createTime != null">
- and create_time = #{createTime}
- </if>
- </where>
- </select>
- <!--通过主键删除-->
- <delete id="deleteById">
- delete from task_details where id = #{id}
- </delete>
- <select id="selectByTid" resultMap="TaskDetailsMap">
- select
- <include refid="TaskDetailsAllSql"/>
- from task_details
- where tid = #{id}
- </select>
- <select id="selectByTidList" resultType="com.goafanti.techproject.bo.OutTaskDetailsLog">
- select
- id,tdid,aid,aname,DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') createTime
- from task_details_log
- where tdid = #{tdid}
- order by create_time desc
- </select>
- <select id="selectByTidCount" resultType="java.lang.Integer">
- select
- count(*)
- from task_details_log
- where tdid = #{tdid}
- </select>
- <select id="selectTaskDetailsList" resultMap="TaskDetailsMap">
- select
- a.*
- from task_details a
- <include refid="selectTaskDetailsSql"/>
- <if test="page_sql !=null">
- ${page_sql}
- </if>
- </select>
- <sql id="selectTaskDetailsSql">
- left join t_order_task b on a.id =b.progress_tid
- left join admin c on b.task_receiver=c.id
- left join t_order_mid d on b.order_no=d.order_no
- left join t_order_new e on b.order_no=e.order_no
- <if test="serviceYear !=null">
- left join t_task_member f on b.id=f.tid
- </if>
- where (c.superior_id= #{aid} or c.id= #{aid})
- <if test="userName != null and userName != ''">
- and d.buyer_name like concat('%',#{userName},'%')
- </if>
- <if test="consultantName !=null">
- and (a.technology_name like concat('%',#{consultantName},'%')
- or a.finance_taxation_name like concat('%',#{consultantName},'%'))
- </if>
- <if test="contractNo !=null">
- and e.contract_no like concat('%',#{contractNo},'%')
- </if>
- <if test="serviceYear !=null">
- and f.service_year like concat('%',#{serviceYear},'%')
- </if>
- <if test="projectDebtorId !=null">
- and b.task_receiver = #{projectDebtorId}
- </if>
- <if test="projectStatus !=null">
- and b.project_status = #{projectStatus}
- </if>
- <if test="outSourcingStatus !=null">
- and b.outsource= #{outSourcingStatus}
- </if>
- <if test="updateTime !=null">
- and a.update_time between #{updateTime} and #{updateTime} + interval 1 day
- </if>
- <if test="progress !=null">
- and a.progress = #{progress}
- </if>
- <if test="applicationLevel !=null">
- <if test="applicationLevel == 0">
- and e.total_amount < 3
- </if>
- <if test="applicationLevel == 1">
- and e.total_amount > 3 and e.total_amount < 8
- </if>
- <if test="applicationLevel == 2">
- and e.total_amount > 8
- </if>
- </if>
- <if test="reviewProvince !=null">
- and a.review_province = #{reviewProvince}
- </if>
- <if test="finalSettlementStatus !=null">
- and a.final_settlement_status = #{finalSettlementStatus}
- </if>
- <if test="adDeliverStatus !=null">
- and a.ad_deliver_status = #{adDeliverStatus}
- </if>
- <if test="torchStatus !=null">
- and a.torch_status = #{torchStatus}
- </if>
- <if test="statisticsStatus !=null">
- and a.statistics_status = #{statisticsStatus}
- </if>
- <if test="chStatus !=null">
- and a.ch_status = #{chStatus}
- </if>
- </sql>
- <select id="selectTaskDetailsCount" resultType="java.lang.Integer">
- select
- count(*)
- from task_details a
- <include refid="selectTaskDetailsSql"/>
- </select>
- </mapper>
|