select id, client_id, name, in_bytes, out_bytes, status, type, in_speed, out_speed, create_by, update_by, create_time, update_time from initial_switch_info_temp
insert into initial_switch_info_temp
client_id,
name,
in_bytes,
out_bytes,
status,
type,
in_speed,
out_speed,
create_by,
update_by,
create_time,
update_time,
#{clientId},
#{name},
#{inBytes},
#{outBytes},
#{status},
#{type},
#{inSpeed},
#{outSpeed},
#{createBy},
#{updateBy},
#{createTime},
#{updateTime},
update initial_switch_info_temp
client_id = #{clientId},
name = #{name},
in_bytes = #{inBytes},
out_bytes = #{outBytes},
status = #{status},
type = #{type},
in_speed = #{inSpeed},
out_speed = #{outSpeed},
create_by = #{createBy},
update_by = #{updateBy},
create_time = #{createTime},
update_time = #{updateTime},
where id = #{id}
delete from initial_switch_info_temp where id = #{id}
delete from initial_switch_info_temp where id in
#{id}
INSERT INTO initial_switch_info_temp
(
client_id, name, in_bytes, out_bytes, status, type, in_speed, out_speed,
create_by, update_by, create_time, update_time
)
VALUES
(
#{item.clientId}, #{item.name}, #{item.inBytes}, #{item.outBytes},
#{item.status}, #{item.type}, #{item.inSpeed}, #{item.outSpeed}, #{item.createBy}, #{item.updateBy},
#{item.createTime}
NOW()
,
#{item.updateTime}
NOW()
)
truncate table initial_switch_info_temp