From 2717941757028bdb38c5aa9eeedb7a8938eaf1ca Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 12 Feb 2025 14:34:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=80=BB=E8=BE=91=E5=8F=96=E5=8F=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Implements/DeviceUploadLogService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Src/Dlhis.ScheduledTask/DeviceUploadLog/Services/Implements/DeviceUploadLogService.cs b/Src/Dlhis.ScheduledTask/DeviceUploadLog/Services/Implements/DeviceUploadLogService.cs index 9a949f49..0ce08267 100644 --- a/Src/Dlhis.ScheduledTask/DeviceUploadLog/Services/Implements/DeviceUploadLogService.cs +++ b/Src/Dlhis.ScheduledTask/DeviceUploadLog/Services/Implements/DeviceUploadLogService.cs @@ -123,8 +123,7 @@ public class DeviceUploadLogService : IDeviceUploadLogService public async Task ManuallyUploadAsync(List requestIds) { var existsOther = await _dbContext.Queryable() - .Where(x => requestIds.Contains(x.Id)) - .Where(x => x.Type != DeviceUploadLogTypeEnumType.Attendance) + .Where(x => requestIds.Contains(x.Id) && !x.NeedUpload) .AnyAsync(); existsOther.ThrowIfTrue("存在非考勤通行记录,无法上传");