select raw_outstock_id, task_code, warehouse_id, location_code, order_id, plan_code, plan_detail_code, station_id, product_id, operation_type, task_type, apply_reason, audit_reason, audit_status, execute_status, apply_by, apply_date, audit_by, audit_date, update_by, update_date, begin_time, end_time from wms_raw_outstock insert into wms_raw_outstock task_code, warehouse_id, location_code, order_id, plan_code, plan_detail_code, station_id, product_id, operation_type, task_type, apply_reason, audit_reason, audit_status, execute_status, apply_by, apply_date, audit_by, audit_date, update_by, update_date, begin_time, end_time, #{taskCode}, #{warehouseId}, #{locationCode}, #{orderId}, #{planCode}, #{planDetailCode}, #{stationId}, #{productId}, #{operationType}, #{taskType}, #{applyReason}, #{auditReason}, #{auditStatus}, #{executeStatus}, #{applyBy}, #{applyDate}, #{auditBy}, #{auditDate}, #{updateBy}, #{updateDate}, #{beginTime}, #{endTime}, update wms_raw_outstock task_code = #{taskCode}, warehouse_id = #{warehouseId}, location_code = #{locationCode}, order_id = #{orderId}, plan_code = #{planCode}, plan_detail_code = #{planDetailCode}, station_id = #{stationId}, product_id = #{productId}, operation_type = #{operationType}, task_type = #{taskType}, apply_reason = #{applyReason}, audit_reason = #{auditReason}, audit_status = #{auditStatus}, execute_status = #{executeStatus}, apply_by = #{applyBy}, apply_date = #{applyDate}, audit_by = #{auditBy}, audit_date = #{auditDate}, update_by = #{updateBy}, update_date = #{updateDate}, begin_time = #{beginTime}, end_time = #{endTime}, where raw_outstock_id = #{rawOutstockId} delete from wms_raw_outstock where raw_outstock_id = #{rawOutstockId} delete from wms_raw_outstock where raw_outstock_id in #{rawOutstockId} delete from wms_raw_outstock_detail where raw_outstock_id in #{rawOutstockId} delete from wms_raw_outstock_detail where raw_outstock_id = #{rawOutstockId} insert into wms_raw_outstock_detail( raw_outstock_detail_id, raw_outstock_id, location_code, material_barcode, material_id, instock_batch, material_production_Date, plan_amount, outstock_amount, execute_status, erp_status, outstock_person, outstock_time, outstock_way, machine_name, quality_status, create_by, create_date, update_by, update_date, stack_amount) values ( #{item.rawOutstockDetailId}, #{item.rawOutstockId}, #{item.locationCode}, #{item.materialBarcode}, #{item.materialId}, #{item.instockBatch}, #{item.materialProductionDate}, #{item.planAmount}, #{item.outstockAmount}, #{item.executeStatus}, #{item.erpStatus}, #{item.outstockPerson}, #{item.outstockTime}, #{item.outstockWay}, #{item.machineName}, #{item.qualityStatus}, #{item.createBy}, #{item.createDate}, #{item.updateBy}, #{item.updateDate}, #{item.stackAmount})