select check_result_id, material_type, material_id, material_batch, check_mode, check_sample, plan_code, plan_detail_code, saleorder_code, po_no, po_line, project_no, check_status, remark, create_by, create_time, update_by, update_time, attr1 from qms_check_result insert into qms_check_result material_type, material_id, material_batch, check_mode, check_sample, plan_code, plan_detail_code, saleorder_code, po_no, po_line, project_no, check_status, remark, create_by, create_time, update_by, update_time, attr1, #{materialType}, #{materialId}, #{materialBatch}, #{checkMode}, #{checkSample}, #{planCode}, #{planDetailCode}, #{saleorderCode}, #{poNo}, #{poLine}, #{projectNo}, #{checkStatus}, #{remark}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{attr1}, update qms_check_result material_type = #{materialType}, material_id = #{materialId}, material_batch = #{materialBatch}, check_mode = #{checkMode}, check_sample = #{checkSample}, plan_code = #{planCode}, plan_detail_code = #{planDetailCode}, saleorder_code = #{saleorderCode}, po_no = #{poNo}, po_line = #{poLine}, project_no = #{projectNo}, check_status = #{checkStatus}, remark = #{remark}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, attr1 = #{attr1}, where check_result_id = #{checkResultId} delete from qms_check_result where check_result_id = #{checkResultId} delete from qms_check_result where check_result_id in #{checkResultId} delete from qms_check_result_detail where check_result_id in #{checkResultId} delete from qms_check_result_detail where check_result_id = #{checkResultId} insert into qms_check_result_detail( check_result_detail_id, check_result_id, material_barcode, check_status, remark, create_by, create_time, update_by, update_time) values ( #{item.checkResultDetailId}, #{item.checkResultId}, #{item.materialBarcode}, #{item.checkStatus}, #{item.remark}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime})