SELECT id, code, order_master_id, order_master_code, customer_id, order_type, order_status, worker_id, rev_time, work_begin_time, work_finish_time, create_by, create_time, remark FROM order_detail DELETE FROM order_detail WHERE id IN #{orderDetailId} UPDATE order_detail code = #{code}, order_master_id = #{orderMasterId}, order_master_code = #{orderMasterCode}, customer_id = #{customerId}, order_type = #{orderType}, order_status = #{orderStatus}, worker_id = #{workerId}, rev_time = #{revTime}, work_begin_time = #{workBeginTime}, work_finish_time = #{workFinishTime}, update_by = #{updateBy}, update_time = SYSDATE() WHERE id = #{id} INSERT INTO order_detail( code, order_master_id, order_master_code, customer_id, order_type, order_status, worker_id, rev_time, work_begin_time, work_finish_time, create_by, create_time )VALUES( #{code}, o#{orderMasterId}, #{orderMasterCode}, #{customerId}, #{orderType}, #{orderStatus}, #{workerId}, #{revTime}, #{workBeginTime}, #{workFinishTime}, #{createBy}, SYSDATE() )