public override void Process(ApplyForLeaveRequest request) { if (request.Days > 3) { Console.WriteLine($"请假{request.Days}天,总经理{ApproverName}意见:同意!"); } }
public override void Process(ApplyForLeaveRequest request) { if (request.Days <= 1) { Console.WriteLine($"请假{request.Days}天,组长{ApproverName}意见:同意!"); } else { if (NexApprover != null) { NexApprover.Process(request); } } }
public abstract void Process(ApplyForLeaveRequest request);