| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282 |
- <?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"/>
- <result property="memberLvl" column="member_lvl" jdbcType="INTEGER"/>
- </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, member_lvl
- </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, member_lvl)
- 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})
- </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, member_lvl)
- 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}, #{entity.memberLvl})
- </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, member_lvl)
- 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}, #{entity.memberLvl})
- </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),
- member_lvl = values(member_lvl)
- </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>
- <if test="memberLvl != null">
- member_lvl = #{memberLvl},
- </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>
- <if test="memberLvl != null">
- and member_lvl = #{memberLvl}
- </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>
- <if test="memberLvl != null">
- and member_lvl = #{memberLvl}
- </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}
- or a.review_country = #{reviewProvince})
- </if>
- <if test="finalSettlementStatus !=null">
- and a.final_settlement_status = #{finalSettlementStatus}
- </if>
- <if test="adDeliverStatus !=null">
- and (a.ad_prepare_july_status = #{adDeliverStatus}
- or a.ad_prepare_october_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>
|