SELECT id, dept_id, code, customer_id, order_type, order_status, pay_type, pay_status, worker_id, pay_time, rev_time, create_by, create_time, remark FROM order_master DELETE FROM order_master WHERE id IN #{orderMasterId} UPDATE order_master code = #{code}, customer_id = #{customerId}, order_type = #{orderType}, order_status = #{orderStatus}, pay_type = #{payType}, pay_status = #{payStatus}, worker_id = #{workerId}, pay_time = #{payTime}, rev_time = #{revTime}, update_by = #{updateBy}, update_time = SYSDATE() WHERE id = #{id} INSERT INTO order_master( dept_id, code, customer_id, order_type, order_status, pay_type, pay_status, worker_id, pay_time, rev_time, create_by, create_time )VALUES( #{deptId}, #{code}, #{customerId}, #{orderType}, #{orderStatus}, #{payType}, #{payStatus}, #{workerId}, #{payTime}, #{revTime}, #{createBy}, SYSDATE() )