select record_id, defect_code, defect_subclass, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, factory_code, del_flag, belong_to, ok_quality, noOk_quality from qc_check_task_defect
insert into qc_check_task_defect
record_id,
defect_code,
defect_subclass,
attr1,
attr2,
attr3,
attr4,
create_by,
create_time,
update_by,
update_time,
factory_code,
del_flag,
belong_to,
ok_quality,
noOk_quality,
#{recordId},
#{defectCode},
#{defectSubclass},
#{attr1},
#{attr2},
#{attr3},
#{attr4},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{factoryCode},
#{delFlag},
#{belongTo},
#{okQuality},
#{noOkQuality},
update qc_check_task_defect
defect_code = #{defectCode},
defect_subclass = #{defectSubclass},
attr1 = #{attr1},
attr2 = #{attr2},
attr3 = #{attr3},
attr4 = #{attr4},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
factory_code = #{factoryCode},
del_flag = #{delFlag},
belong_to = #{belongTo},
ok_quality = #{okQuality},
noOk_quality = #{noOkQuality},
where record_id = #{recordId}
delete from qc_check_task_defect where record_id = #{recordId}
delete from qc_check_task_defect where record_id in
#{recordId}
delete from qc_check_task_defect where belong_to = #{belongTo}