id, eqmid, acquisitionTime, H2, CH4, C2H6, C2H4, C2H2, CO, CO2, O2, N2, TotalHydrocarbon,
isupload, create_time, update_time
update data_ysp
isupload = #{isupload,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=TIMESTAMP},
where
id #{maxid}
and id not in
#{id}
update data_ysp
isupload = #{isupload,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=TIMESTAMP},
where
id in
#{id}
update data_ysp
isupload = #{isupload,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=TIMESTAMP},
where isupload is null
and (
(
eqmid = #{item.eqmid}
and id #{item.maxid}
)
)
update data_ysp
isupload = #{isupload,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=TIMESTAMP},
where isupload is null
and id #{maxid}
and eqmid in
#{id}
delete
from data_ysp
where acquisitionTime #{time}