select id, client_id, avg1, avg5, avg15, interrupt, uti, num, normal, idle, iowait, system, noresp, user, create_by, update_by, create_time, update_time from initial_cpu_info
insert into initial_cpu_info
client_id,
avg1,
avg5,
avg15,
interrupt,
uti,
num,
normal,
idle,
iowait,
system,
noresp,
user,
create_by,
update_by,
create_time,
update_time,
#{clientId},
#{avg1},
#{avg5},
#{avg15},
#{interrupt},
#{uti},
#{num},
#{normal},
#{idle},
#{iowait},
#{system},
#{noresp},
#{user},
#{createBy},
#{updateBy},
#{createTime},
#{updateTime},
update initial_cpu_info
client_id = #{clientId},
avg1 = #{avg1},
avg5 = #{avg5},
avg15 = #{avg15},
interrupt = #{interrupt},
uti = #{uti},
num = #{num},
normal = #{normal},
idle = #{idle},
iowait = #{iowait},
system = #{system},
noresp = #{noresp},
user = #{user},
create_by = #{createBy},
update_by = #{updateBy},
create_time = #{createTime},
update_time = #{updateTime},
where id = #{id}
delete from initial_cpu_info where id = #{id}
delete from initial_cpu_info where id in
#{id}
INSERT INTO initial_cpu_info
(
client_id,
avg1,
avg5,
avg15,
interrupt,
uti,
num,
normal,
idle,
iowait,
`system`,
noresp,
`user`,
create_by,
update_by,
create_time,
update_time
)
VALUES
(
#{item.clientId},
#{item.avg1},
#{item.avg5},
#{item.avg15},
#{item.interrupt},
#{item.uti},
#{item.num},
#{item.normal},
#{item.idle},
#{item.iowait},
#{item.system},
#{item.noresp},
#{item.user},
#{item.createBy},
#{item.updateBy},
#{item.createTime}
NOW()
,
#{item.updateTime}
NOW()
)