李昊 4 anos atrás
pai
commit
b0f2695943

+ 1 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/TrackLog/TrackLogRepository.cs

@@ -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);