public override void RequestProcess(MyOrderRequest request)
 {
     //判断是否有权限
     if ((request?.Amount ?? 0) < 10000)
     {
         Console.WriteLine($"{Name} 部门经理批准了采购{request?.Name}的计划!");
     }
     else if (NextHandler != null)
     {
         NextHandler.RequestProcess(request);
     }
 }
        public override void RequestProcess(MyOrderRequest request)
        {
            decimal amount = request?.Amount ?? 0;

            if (amount > 50000 && amount <= 100000)
            {
                Console.WriteLine($"{Name} CEO批准了{request?.Name}的计划!");
            }
            else
            {
                Console.WriteLine($"计划的金额太大,需要董事会会议讨论才能决定!");
            }
        }
        public override void RequestProcess(MyOrderRequest request)
        {
            decimal amount = request?.Amount ?? 0;

            if (amount > 10000 && amount <= 50000)
            {
                Console.WriteLine($"{Name} 财务经理批准了{request?.Name}的计划!");
            }
            else if (NextHandler != null)
            {
                NextHandler.RequestProcess(request);
            }
        }