/// <summary> /// 根据创建用户ID返回请假单传输对象 /// </summary> /// <param name="UserID">用户ID</param> public List <LeaveDto> GetByCreateUsers(string UserID) { List <LeaveDto> temp = Mapper.Map <List <Leave>, List <LeaveDto> >(_leaveRepository.GetByCreateUsers(UserID).AsNoTracking().ToList()); return(GetLeaveDetail(temp)); }