李昊 4 years ago
parent
commit
53350ea1a7

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

@@ -37,7 +37,7 @@ namespace GxPress.Repository.Implement.TrackLog
             var result = new PagedList<Entity.tede2.TrackLog.TrackLog>();
             var query = Q.NewQuery();
             if (!string.IsNullOrEmpty(request.KeyWord))
-                query.WhereLike(nameof(Entity.tede2.TrackLog.TrackLog.Remark), $"%request.KeyWord%");
+                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.EndTime, out var endTime))