|
|
@@ -0,0 +1,437 @@
|
|
|
+<?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="uid" column="uid" jdbcType="VARCHAR"/>
|
|
|
+ <result property="tid" column="tid" jdbcType="INTEGER"/>
|
|
|
+ <result property="salesAmount" column="sales_amount" jdbcType="VARCHAR"/>
|
|
|
+ <result property="researchAmount" column="research_amount" 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="prjectApprovalNumber" column="prject_approval_number" jdbcType="INTEGER"/>
|
|
|
+ <result property="rdBudget" column="rd_budget" jdbcType="VARCHAR"/>
|
|
|
+ <result property="rdBudgetRate" column="rd_budget_rate" jdbcType="INTEGER"/>
|
|
|
+ <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="VARCHAR"/>
|
|
|
+ <result property="actualSalesAmount" column="actual_sales_amount" jdbcType="VARCHAR"/>
|
|
|
+ <result property="actualRdNumber" column="actual_rd_number" jdbcType="INTEGER"/>
|
|
|
+ <result property="actualRdAmount" column="actual_rd_amount" jdbcType="VARCHAR"/>
|
|
|
+ <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="aid" column="aid" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="TaskDetailsAllSql">
|
|
|
+ id, uid, tid, sales_amount, research_amount, workers_number, technology_number, workers_rate, prject_approval_number, rd_budget, rd_budget_rate, three_years_rd_budget_rate, rd_sales_amount, data_cycle, actual_sales_amount, actual_rd_number, actual_rd_amount, 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, aid, 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(uid, tid, sales_amount, research_amount, workers_number, technology_number,
|
|
|
+ workers_rate, prject_approval_number, rd_budget, rd_budget_rate,
|
|
|
+ three_years_rd_budget_rate, rd_sales_amount, data_cycle, actual_sales_amount,
|
|
|
+ actual_rd_number, actual_rd_amount, 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, aid, create_time)
|
|
|
+ values (#{uid}, #{tid}, #{salesAmount}, #{researchAmount}, #{workersNumber}, #{technologyNumber},
|
|
|
+ #{workersRate}, #{prjectApprovalNumber}, #{rdBudget}, #{rdBudgetRate}, #{threeYearsRdBudgetRate},
|
|
|
+ #{rdSalesAmount}, #{dataCycle}, #{actualSalesAmount}, #{actualRdNumber}, #{actualRdAmount},
|
|
|
+ #{torchStatus}, #{chStatus}, #{statisticsStatus}, #{finalSettlementStatus}, #{torchOther}, #{chOther},
|
|
|
+ #{statisticsOther}, #{finalSettlementOther}, #{reportFormsRdNumber}, #{intellectualPropertyAmount},
|
|
|
+ #{reportRdAmount}, #{aid}, #{createTime})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <insert id="insertBatch">
|
|
|
+ insert into task_details(uid, tid, sales_amount, research_amount, workers_number, technology_number,
|
|
|
+ workers_rate, prject_approval_number, rd_budget, rd_budget_rate, three_years_rd_budget_rate, rd_sales_amount,
|
|
|
+ data_cycle, actual_sales_amount, actual_rd_number, actual_rd_amount, 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, aid, create_time)
|
|
|
+ values
|
|
|
+ <foreach collection="entities" item="entity" separator=",">
|
|
|
+ (#{entity.uid}, #{entity.tid}, #{entity.salesAmount}, #{entity.researchAmount}, #{entity.workersNumber},
|
|
|
+ #{entity.technologyNumber}, #{entity.workersRate}, #{entity.prjectApprovalNumber}, #{entity.rdBudget},
|
|
|
+ #{entity.rdBudgetRate}, #{entity.threeYearsRdBudgetRate}, #{entity.rdSalesAmount}, #{entity.dataCycle},
|
|
|
+ #{entity.actualSalesAmount}, #{entity.actualRdNumber}, #{entity.actualRdAmount}, #{entity.torchStatus},
|
|
|
+ #{entity.chStatus}, #{entity.statisticsStatus}, #{entity.finalSettlementStatus}, #{entity.torchOther},
|
|
|
+ #{entity.chOther}, #{entity.statisticsOther}, #{entity.finalSettlementOther}, #{entity.reportFormsRdNumber},
|
|
|
+ #{entity.intellectualPropertyAmount}, #{entity.reportRdAmount}, #{entity.aid}, #{entity.createTime})
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
+ insert into task_details(uid, tid, sales_amount, research_amount, workers_number, technology_number,
|
|
|
+ workers_rate, prject_approval_number, rd_budget, rd_budget_rate, three_years_rd_budget_rate, rd_sales_amount,
|
|
|
+ data_cycle, actual_sales_amount, actual_rd_number, actual_rd_amount, 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, aid, create_time)
|
|
|
+ values
|
|
|
+ <foreach collection="entities" item="entity" separator=",">
|
|
|
+ (#{entity.uid}, #{entity.tid}, #{entity.salesAmount}, #{entity.researchAmount}, #{entity.workersNumber},
|
|
|
+ #{entity.technologyNumber}, #{entity.workersRate}, #{entity.prjectApprovalNumber}, #{entity.rdBudget},
|
|
|
+ #{entity.rdBudgetRate}, #{entity.threeYearsRdBudgetRate}, #{entity.rdSalesAmount}, #{entity.dataCycle},
|
|
|
+ #{entity.actualSalesAmount}, #{entity.actualRdNumber}, #{entity.actualRdAmount}, #{entity.torchStatus},
|
|
|
+ #{entity.chStatus}, #{entity.statisticsStatus}, #{entity.finalSettlementStatus}, #{entity.torchOther},
|
|
|
+ #{entity.chOther}, #{entity.statisticsOther}, #{entity.finalSettlementOther}, #{entity.reportFormsRdNumber},
|
|
|
+ #{entity.intellectualPropertyAmount}, #{entity.reportRdAmount}, #{entity.aid}, #{entity.createTime})
|
|
|
+ </foreach>
|
|
|
+ on duplicate key update
|
|
|
+ uid = values(uid),
|
|
|
+ tid = values(tid),
|
|
|
+ sales_amount = values(sales_amount),
|
|
|
+ research_amount = values(research_amount),
|
|
|
+ workers_number = values(workers_number),
|
|
|
+ technology_number = values(technology_number),
|
|
|
+ workers_rate = values(workers_rate),
|
|
|
+ prject_approval_number = values(prject_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_rd_amount = values(actual_rd_amount),
|
|
|
+ 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),
|
|
|
+ aid = values(aid),
|
|
|
+ create_time = values(create_time)
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <!--通过主键修改数据-->
|
|
|
+ <update id="update">
|
|
|
+ update task_details
|
|
|
+ <set>
|
|
|
+ <if test="uid != null and uid != ''">
|
|
|
+ uid = #{uid},
|
|
|
+ </if>
|
|
|
+ <if test="tid != null">
|
|
|
+ tid = #{tid},
|
|
|
+ </if>
|
|
|
+ <if test="salesAmount != null">
|
|
|
+ sales_amount = #{salesAmount},
|
|
|
+ </if>
|
|
|
+ <if test="researchAmount != null">
|
|
|
+ research_amount = #{researchAmount},
|
|
|
+ </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="prjectApprovalNumber != null">
|
|
|
+ prject_approval_number = #{prjectApprovalNumber},
|
|
|
+ </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 and dataCycle != ''">
|
|
|
+ data_cycle = #{dataCycle},
|
|
|
+ </if>
|
|
|
+ <if test="actualSalesAmount != null">
|
|
|
+ actual_sales_amount = #{actualSalesAmount},
|
|
|
+ </if>
|
|
|
+ <if test="actualRdNumber != null">
|
|
|
+ actual_rd_number = #{actualRdNumber},
|
|
|
+ </if>
|
|
|
+ <if test="actualRdAmount != null">
|
|
|
+ actual_rd_amount = #{actualRdAmount},
|
|
|
+ </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="aid != null and aid != ''">
|
|
|
+ aid = #{aid},
|
|
|
+ </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="uid != null and uid != ''">
|
|
|
+ and uid = #{uid}
|
|
|
+ </if>
|
|
|
+ <if test="tid != null">
|
|
|
+ and tid = #{tid}
|
|
|
+ </if>
|
|
|
+ <if test="salesAmount != null">
|
|
|
+ and sales_amount = #{salesAmount}
|
|
|
+ </if>
|
|
|
+ <if test="researchAmount != null">
|
|
|
+ and research_amount = #{researchAmount}
|
|
|
+ </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="prjectApprovalNumber != null">
|
|
|
+ and prject_approval_number = #{prjectApprovalNumber}
|
|
|
+ </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 dataCycle != ''">
|
|
|
+ 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="actualRdAmount != null">
|
|
|
+ and actual_rd_amount = #{actualRdAmount}
|
|
|
+ </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="aid != null and aid != ''">
|
|
|
+ and aid = #{aid}
|
|
|
+ </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="uid != null and uid != ''">
|
|
|
+ and uid = #{uid}
|
|
|
+ </if>
|
|
|
+ <if test="tid != null">
|
|
|
+ and tid = #{tid}
|
|
|
+ </if>
|
|
|
+ <if test="salesAmount != null">
|
|
|
+ and sales_amount = #{salesAmount}
|
|
|
+ </if>
|
|
|
+ <if test="researchAmount != null">
|
|
|
+ and research_amount = #{researchAmount}
|
|
|
+ </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="prjectApprovalNumber != null">
|
|
|
+ and prject_approval_number = #{prjectApprovalNumber}
|
|
|
+ </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 dataCycle != ''">
|
|
|
+ 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="actualRdAmount != null">
|
|
|
+ and actual_rd_amount = #{actualRdAmount}
|
|
|
+ </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="aid != null and aid != ''">
|
|
|
+ and aid = #{aid}
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ and create_time = #{createTime}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!--通过主键删除-->
|
|
|
+ <delete id="deleteById">
|
|
|
+ delete
|
|
|
+ from task_details
|
|
|
+ where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+</mapper>
|
|
|
+
|