select line_id, alarm_id, type, x1, y1, x2, y2, confidence, desc from alarm_defect
insert into alarm_defect
alarm_id,
type,
x1,
y1,
x2,
y2,
confidence,
desc,
#{alarmId},
#{type},
#{x1},
#{y1},
#{x2},
#{y2},
#{confidence},
#{desc},
update alarm_defect
alarm_id = #{alarmId},
type = #{type},
x1 = #{x1},
y1 = #{y1},
x2 = #{x2},
y2 = #{y2},
confidence = #{confidence},
desc = #{desc},
where line_id = #{lineId}
delete from alarm_defect where line_id = #{lineId}
delete from alarm_defect where line_id in
#{lineId}