select id, timestamp_random_code, mac_id,machine_id, current_color_code, current_specification, current_lot_number, current_spindle_count, start_time, planned_end_time,plan_status,number,productType,product_id,salesman_id,productTypeName from {DBNAME}.details_of_the_refueling_plan insert into {DBNAME}.details_of_the_refueling_plan id, timestamp_random_code, machine_id, current_color_code, current_specification, current_lot_number, current_spindle_count, start_time, planned_end_time, plan_status, `number`, `productType` #{id}, #{timestampRandomCode}, #{machineId}, #{currentColorCode}, #{currentSpecification}, #{currentLotNumber}, #{currentSpindleCount}, #{startTime}, #{plannedEndTime}, #{planStatus}, #{number}, #{productType} INSERT INTO {DBNAME}.details_of_the_refueling_plan timestamp_random_code, mac_id, machine_id, current_color_code, current_specification, current_lot_number, current_spindle_count, start_time, planned_end_time, plan_status, `number`, `productType`, `product_id`, `salesman_id`, `productTypeName` VALUES #{item.timestampRandomCode}, #{item.macId}, #{item.machineId}, #{item.currentColorCode}, #{item.currentSpecification}, #{item.currentLotNumber}, #{item.currentSpindleCount}, #{item.startTime}, #{item.plannedEndTime}, #{item.planStatus}, #{item.number}, #{item.productType}, #{item.productId}, #{item.salesmanId}, #{item.productTypeName} update {DBNAME}.details_of_the_refueling_plan timestamp_random_code = #{timestampRandomCode}, machine_id = #{machineId}, current_color_code = #{currentColorCode}, current_specification = #{currentSpecification}, current_lot_number = #{currentLotNumber}, current_spindle_count = #{currentSpindleCount}, start_time = #{startTime}, planned_end_time = #{plannedEndTime}, plan_status = #{planStatus}, `number` = #{number}, `productType`= #{productType}, `product_id`= #{productId}, `salesman_id`= #{salesmanId}, where id = #{id} update {DBNAME}.details_of_the_refueling_plan timestamp_random_code = #{timestampRandomCode}, machine_id = #{machineId}, current_color_code = #{currentColorCode}, current_specification = #{currentSpecification}, current_lot_number = #{currentLotNumber}, current_spindle_count = #{currentSpindleCount}, start_time = #{startTime}, planned_end_time = #{plannedEndTime}, plan_status = #{planStatus}, `number` = #{number}, `productType`= #{productType}, `product_id`= #{productId}, `salesman_id`= #{salesmanId}, where machine_id = #{machineId} and productType=#{productType} and plan_status=#{planStatusOld} delete from {DBNAME}.details_of_the_refueling_plan where id = #{id} delete from {DBNAME}.details_of_the_refueling_plan where id in #{id} delete from {DBNAME}.details_of_the_refueling_plan where machine_id = #{machineId} and timestamp_random_code='停机';