From 3e4d916ce75979eb1fac4f9a631a4d4f49514e4a Mon Sep 17 00:00:00 2001 From: liguoyang Date: Tue, 15 Apr 2025 15:40:50 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=9F=A5=E8=AF=A2=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WorkGrids/Services/Implements/WorkGridScheduleService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Dlhis.Basic/WorkGrids/Services/Implements/WorkGridScheduleService.cs b/Src/Dlhis.Basic/WorkGrids/Services/Implements/WorkGridScheduleService.cs index ee91f759..c638f6bf 100644 --- a/Src/Dlhis.Basic/WorkGrids/Services/Implements/WorkGridScheduleService.cs +++ b/Src/Dlhis.Basic/WorkGrids/Services/Implements/WorkGridScheduleService.cs @@ -310,6 +310,11 @@ public class WorkGridScheduleService : IWorkGridScheduleService var t = request.IsError.ToString().ToLower(); var filterString = $"{{\"IsError\":{t}"; + if (request.UserCode.IsEmpty()) + { + request.UserCode = request.Search; + } + return await _dbContext.Queryable() .LeftJoin((log, d) => log.DeviceUniqueNo == d.UniqueNo) .LeftJoin((log, d, ga) => log.UserUniqueNo == ga.Code)