|
|
@@ -30,11 +30,13 @@
|
|
|
<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="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, uid, tid, 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
|
|
|
+ id, uid, tid, 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, update_time, download_time, create_time
|
|
|
</sql>
|
|
|
|
|
|
<!--查询单个-->
|
|
|
@@ -52,13 +54,13 @@
|
|
|
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)
|
|
|
+ report_rd_amount, aid, update_time, download_time, create_time)
|
|
|
values (#{uid}, #{tid}, #{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})
|
|
|
+ #{aid}, #{updateTime}, #{downloadTime}, #{createTime})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertBatch">
|
|
|
@@ -66,7 +68,7 @@
|
|
|
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)
|
|
|
+ intellectual_property_amount, report_rd_amount, aid, update_time, download_time, create_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
(#{entity.uid}, #{entity.tid}, #{entity.workersNumber}, #{entity.technologyNumber}, #{entity.workersRate},
|
|
|
@@ -75,7 +77,8 @@
|
|
|
#{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})
|
|
|
+ #{entity.intellectualPropertyAmount}, #{entity.reportRdAmount}, #{entity.aid}, #{entity.updateTime},
|
|
|
+ #{entity.downloadTime}, #{entity.createTime})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
@@ -84,7 +87,7 @@
|
|
|
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)
|
|
|
+ intellectual_property_amount, report_rd_amount, aid, update_time, download_time, create_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
(#{entity.uid}, #{entity.tid}, #{entity.workersNumber}, #{entity.technologyNumber}, #{entity.workersRate},
|
|
|
@@ -93,7 +96,8 @@
|
|
|
#{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})
|
|
|
+ #{entity.intellectualPropertyAmount}, #{entity.reportRdAmount}, #{entity.aid}, #{entity.updateTime},
|
|
|
+ #{entity.downloadTime}, #{entity.createTime})
|
|
|
</foreach>
|
|
|
on duplicate key update
|
|
|
uid = values(uid),
|
|
|
@@ -122,6 +126,8 @@
|
|
|
intellectual_property_amount = values(intellectual_property_amount),
|
|
|
report_rd_amount = values(report_rd_amount),
|
|
|
aid = values(aid),
|
|
|
+ update_time = values(update_time),
|
|
|
+ download_time = values(download_time),
|
|
|
create_time = values(create_time)
|
|
|
</insert>
|
|
|
|
|
|
@@ -207,6 +213,12 @@
|
|
|
<if test="aid != null and aid != ''">
|
|
|
aid = #{aid},
|
|
|
</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>
|
|
|
@@ -302,6 +314,12 @@
|
|
|
<if test="aid != null and aid != ''">
|
|
|
and aid = #{aid}
|
|
|
</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>
|
|
|
@@ -397,6 +415,12 @@
|
|
|
<if test="aid != null and aid != ''">
|
|
|
and aid = #{aid}
|
|
|
</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>
|