private Integer getInstanceNumByEnable(boolean isEnd) {
   if (isEnd) {
     return workflowInstanceManager.getEndInstanceNumByEnable(getCompanyId(), getCurrentUser());
   } else {
     return workflowInstanceManager.getNotEndInstanceNumByEnable(getCompanyId(), getCurrentUser());
   }
 }