From 859bac29cc8a29071b4a080f88cccddfa9340afb Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 8 Jan 2025 17:22:15 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BC=98=E5=8C=96=E8=80=83=E5=8B=A4?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.ScheduledTask/Jobs/SyncOriginCardInfoJob.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Src/Dlhis.ScheduledTask/Jobs/SyncOriginCardInfoJob.cs b/Src/Dlhis.ScheduledTask/Jobs/SyncOriginCardInfoJob.cs index c1a4c3ed..c36997f6 100644 --- a/Src/Dlhis.ScheduledTask/Jobs/SyncOriginCardInfoJob.cs +++ b/Src/Dlhis.ScheduledTask/Jobs/SyncOriginCardInfoJob.cs @@ -1,4 +1,5 @@ using Dlhis.Entity.Basic.Entity; +using Dlhis.Entity.Basic.Enums; using Dlhis.Entity.Device.Entities; using Dlhis.Entity.Device.Enums; using Dlhis.Jip.Api; @@ -28,10 +29,7 @@ public class SyncOriginCardInfoJob : BaseJob var requests = await DbContext.Queryable() .LeftJoin((x, device) => x.DeviceUniqueNo == device.UniqueNo) .Where(x => x.ModifiedTime > start) - .Where(x => x.Type == DeviceUploadLogTypeEnumType.Attendance) - .Where(x => x.Sync == false) - .Where(x => !string.IsNullOrEmpty(x.UserUniqueNo)) - .Where(x => SqlFunc.Subqueryable().Where(p => p.Code == x.UserUniqueNo).NotAny()) + .Where(x => x.NeedUpload && x.Sync == false && x.UserType == GainfoUserTypeEnumType.Normal) .OrderBy(x => x.ModifiedTime) .Select((x, device) => new UploadAttendanceRequestItem {