From e6bdb51b5bf53fd48cab32ce63bf324fb0aa6542 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 7 Apr 2026 14:51:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=BC=BA=E5=88=A4=E6=96=AD=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=88=A4=E6=96=AD=E6=A0=87=E5=BF=97=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E7=BB=99=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Common/DTO/FileUploadRecordViewModel.cs | 3 ++- .../Service/Common/FileUploadRecordService.cs | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Common/DTO/FileUploadRecordViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/FileUploadRecordViewModel.cs index e983872d1..d0c43d664 100644 --- a/IRaCIS.Core.Application/Service/Common/DTO/FileUploadRecordViewModel.cs +++ b/IRaCIS.Core.Application/Service/Common/DTO/FileUploadRecordViewModel.cs @@ -41,7 +41,6 @@ public class FileUploadRecordView : FileUploadRecordAddOrEdit public DateTime UpdateTime { get; set; } - public bool? IsSync { get; set; } [Comment("同步结束时间-最后一个任务的时间")] @@ -93,6 +92,8 @@ public class FileUploadRecordAddOrEdit public bool? IsNeedSync { get; set; } public string UploadRegion { get; set; } public string TargetRegion { get; set; } + + public bool? IsSync { get; set; } } diff --git a/IRaCIS.Core.Application/Service/Common/FileUploadRecordService.cs b/IRaCIS.Core.Application/Service/Common/FileUploadRecordService.cs index 22c99add8..d1590720d 100644 --- a/IRaCIS.Core.Application/Service/Common/FileUploadRecordService.cs +++ b/IRaCIS.Core.Application/Service/Common/FileUploadRecordService.cs @@ -66,7 +66,7 @@ public class FileUploadRecordService(IRepository _fileUploadRe TargetRegion = g.First().TargetRegion, - IsSync = !g.Any(t => t.IsSync == false) + IsSync = !g.Any(t => t.IsSync == false || t.IsSync == null) }); @@ -222,7 +222,7 @@ public class FileUploadRecordService(IRepository _fileUploadRe addOrEditFileUploadRecord.Priority = 0; - + addOrEditFileUploadRecord.IsSync = false; } else { @@ -238,6 +238,8 @@ public class FileUploadRecordService(IRepository _fileUploadRe //系统文件,默认同步 addOrEditFileUploadRecord.IsNeedSync = true; + addOrEditFileUploadRecord.IsSync = false; + addOrEditFileUploadRecord.Priority = 0; }