username@email.com
2022-02-11 3a864ec2d204077d34bd0b874540829702581c6c
zhengcaioa/Services/AdmAttendanceService.cs
@@ -118,6 +118,8 @@
                            && (string.IsNullOrWhiteSpace(searchEntity.DeptId) || b.DeptId == searchEntity.DeptId.Trim())
                              && (string.IsNullOrWhiteSpace(searchEntity.Userid) || b.DeptId == searchEntity.Userid.Trim())
                                && (string.IsNullOrWhiteSpace(searchEntity.UserName) || b.UserName.Contains(searchEntity.UserName.Trim()))
                                  && (string.IsNullOrWhiteSpace(searchEntity.YearMonth) || a.Year ==  DateTime.Parse(searchEntity.YearMonth.Trim()+"-01").Year)
                           && (string.IsNullOrWhiteSpace(searchEntity.YearMonth) || a.Month == DateTime.Parse(searchEntity.YearMonth.Trim() + "-01").Month)
                         select new AdmAttendanceDTO
                         {
                             Id = a.Id,
@@ -150,7 +152,7 @@
            if (searchEntity.totalrows == 0)
            //if (searchEntity.totalrows == 0)
                searchEntity.totalrows = query.Count();
            var rolelist = query.Skip((searchEntity.page - 1) * searchEntity.rows).Take(searchEntity.rows).ToList();