public bool IsActiveByGroups(string groups, string userName)
 {
     try
     {
         return(handler.IsActiveByGroups(groups, userName));
     }
     catch (Exception ex)
     {
         var exception = new EmployeeException(0, "根据传入组别判断是否有此人!", ex);
         logger.Log(Level.Error, exception, "Error in  HrEmployee by Groups.");
         throw exception;
     }
 }
 public List <UserGroups> GetAllUserGroups()
 {
     try
     {
         return(handler.GetAllUserGroups());
     }
     catch (Exception ex)
     {
         var exception = new EmployeeException(0, "查询所有组别的的所有员工!", ex);
         logger.Log(Level.Error, exception, "Error in  HrEmployee by Groups.");
         throw exception;
     }
 }
        public List <WMSUserObject> SelectShopsEmployeeByEmailAddress(string emailAddress)
        {
            try
            {
                return(handler.SelectShopsEmployeeByEmailAddress(emailAddress));
            }
            catch (TuhuBizException)
            {
                throw;
            }
            catch (Exception innerEx)
            {
                var exception = new EmployeeException(BizErrorCode.SystemError, "查询人员所在仓库失败", innerEx);
                logger.Log(Level.Error, exception, "Error occurred in getting WMSUserObject by emailAddress.");

                throw exception;
            }
        }