Fixed the error of checking the updated date to uploaded date
This commit is contained in:
parent
64e6255458
commit
a1ab143df5
@ -165,9 +165,8 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
if (documentFilter.IsUploadedAt)
|
if (documentFilter.IsUploadedAt)
|
||||||
{
|
{
|
||||||
documentQuery = documentQuery.Where(da =>
|
documentQuery = documentQuery.Where(da =>
|
||||||
da.UpdatedAt.HasValue &&
|
da.UploadedAt.Date >= documentFilter.StartDate.Value.Date &&
|
||||||
da.UpdatedAt.Value.Date >= documentFilter.StartDate.Value.Date &&
|
da.UploadedAt.Date <= documentFilter.EndDate.Value.Date);
|
||||||
da.UpdatedAt.Value.Date <= documentFilter.EndDate.Value.Date);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user