id,user_id,line_id,
station_id,plan_id,process_id,
node_id,dt,status,
start_time,end_time,assistants
${alias}.id,
${alias}.user_id,
${alias}.line_id,
${alias}.station_id,
${alias}.plan_id,
${alias}.process_id,
${alias}.node_id,
${alias}.dt,
${alias}.status,
${alias}.start_time,
${alias}.end_time,
${alias}.assistants
delete from sta_assembly_work_last
where id = #{id,jdbcType=BIGINT}
insert into sta_assembly_work_last
( id,user_id,line_id
,station_id,plan_id,process_id
,node_id,dt,status
,start_time,end_time,assistants
)
values (#{id,jdbcType=BIGINT},#{userId,jdbcType=BIGINT},#{lineId,jdbcType=BIGINT}
,#{stationId,jdbcType=BIGINT},#{planId,jdbcType=BIGINT},#{processId,jdbcType=BIGINT}
,#{nodeId,jdbcType=BIGINT},#{dt,jdbcType=TIMESTAMP},#{status,jdbcType=TINYINT}
,#{startTime,jdbcType=TIMESTAMP},#{endTime,jdbcType=TIMESTAMP},#{assistants,jdbcType=VARCHAR}
)
insert into sta_assembly_work_last
id,
user_id,
line_id,
station_id,
plan_id,
process_id,
node_id,
dt,
status,
start_time,
end_time,
assistants,
#{id,jdbcType=BIGINT},
#{userId,jdbcType=BIGINT},
#{lineId,jdbcType=BIGINT},
#{stationId,jdbcType=BIGINT},
#{planId,jdbcType=BIGINT},
#{processId,jdbcType=BIGINT},
#{nodeId,jdbcType=BIGINT},
#{dt,jdbcType=TIMESTAMP},
#{status,jdbcType=TINYINT},
#{startTime,jdbcType=TIMESTAMP},
#{endTime,jdbcType=TIMESTAMP},
#{assistants,jdbcType=VARCHAR},
update sta_assembly_work_last
user_id = #{userId,jdbcType=BIGINT},
line_id = #{lineId,jdbcType=BIGINT},
station_id = #{stationId,jdbcType=BIGINT},
plan_id = #{planId,jdbcType=BIGINT},
process_id = #{processId,jdbcType=BIGINT},
node_id = #{nodeId,jdbcType=BIGINT},
dt = #{dt,jdbcType=TIMESTAMP},
status = #{status,jdbcType=TINYINT},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
assistants = #{assistants,jdbcType=VARCHAR},
where id = #{id,jdbcType=BIGINT}
update sta_assembly_work_last
set
user_id = #{userId,jdbcType=BIGINT},
line_id = #{lineId,jdbcType=BIGINT},
station_id = #{stationId,jdbcType=BIGINT},
plan_id = #{planId,jdbcType=BIGINT},
process_id = #{processId,jdbcType=BIGINT},
node_id = #{nodeId,jdbcType=BIGINT},
dt = #{dt,jdbcType=TIMESTAMP},
status = #{status,jdbcType=TINYINT},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
assistants = #{assistants,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}