select id,rfid,factory_id,factory_code,order_id,machine_id,bad_meg,product_id,isqua,isqua,file_id,attr1,attr2,
attr3,attr4,create_by,create_time,update_by,update_time,order_code,machine_code,
workorder_id,workorder_code,workorder_name,product_code
from qc_pro_check
insert into qc_pro_check
rfid,id,factory_id,factory_code,workorder_id,workorder_code,workorder_name,order_id,order_code,machine_id,machine_code,bad_meg,product_id,product_code,attr1,attr2,attr3,attr4,create_by,update_by,create_time,update_time,isqua,file_id,#{rfid},#{id},#{factoryId},#{factoryCode},#{workorderId},#{workorderCode},#{workorderName},#{orderId},#{orderCode},#{machineId},#{machineCode},#{badMeg},#{productId},#{productCode},#{attr1},#{attr2},#{attr3},#{attr4},#{createBy},#{updateBy},#{createTime},#{updateTime},#{isqua},#{fileId},
update qc_pro_check
#{id},#{rfid},#{factoryId},#{factoryCode},#{workorderId},#{workorderCode},#{workorderName},#{orderId},#{orderCode},#{machineId},#{machineCode},#{badMeg},#{productId},#{productCode},#{attr1},#{attr2},#{attr3},#{attr4},#{createBy},#{updateBy},#{createTime},#{updateTime},#{isqua},#{fileId},
where id = #{id}
delete from qc_pro_check where id = #{id}