select id,rfid,factory_id,factory_code,order_id,machine_id,bad_meg,product_id,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, machine_name, bad_meg, product_id, product_code, product_name, product_spc, 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}, #{machineName}, #{badMeg}, #{productId}, #{productCode}, #{productName}, #{productSpc}, #{attr1}, #{attr2}, #{attr3}, #{attr4}, #{createBy}, #{updateBy}, #{createTime}, #{updateTime}, #{isqua}, #{fileId}, INSERT INTO base_file(file_id, file_name, file_address, source_id, remark, create_by, create_time) VALUES ( #{baseFile.fileId}, #{baseFile.fileName}, #{baseFile.fileAddress}, #{baseFile.sourceId}, #{baseFile.remark}, #{baseFile.createBy}, #{baseFile.createTime} ) 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}