|
@@ -40,7 +40,7 @@ namespace GxPress.Repository.Implement.TrackLog
|
|
|
query.WhereLike(nameof(Entity.tede2.TrackLog.TrackLog.Remark), $"%request.KeyWord%");
|
|
|
if (!string.IsNullOrEmpty(request.BeginTime) && !string.IsNullOrEmpty(request.EndTime))
|
|
|
{
|
|
|
- if (DateTime.TryParse(request.BeginTime, out var beginTime) && DateTime.TryParse(request.BeginTime, out var endTime))
|
|
|
+ if (DateTime.TryParse(request.BeginTime, out var beginTime) && DateTime.TryParse(request.EndTime, out var endTime))
|
|
|
{
|
|
|
query.WhereDate(nameof(Entity.tede2.TrackLog.TrackLog.CreatedDate), ">=", beginTime);
|
|
|
query.WhereDate(nameof(Entity.tede2.TrackLog.TrackLog.CreatedDate), "<=", endTime);
|