Skip to content

Commit

Permalink
责任链模式优化代码、增加流程图
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron4j committed Jul 12, 2019
1 parent 5220dab commit 53a7071
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @author: Byron
* @create: 2019/07/11 09:34
*/
public class AbstractLeaveHandler {
public abstract class AbstractLeaveHandler {
/**直接主管审批处理的请假天数*/
protected int MIN = 1;
/**部门经理处理的请假天数*/
Expand All @@ -26,9 +26,7 @@ protected void setNextHandler(AbstractLeaveHandler handler){
}

/**处理请假的请求,子类实现*/
protected void handlerRequest(LeaveRequest request){

}
abstract void handlerRequest(LeaveRequest request);


}

0 comments on commit 53a7071

Please sign in to comment.