From b43fd83b899c77281cb49e1fc5859213fcfdb3d2 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 21 Aug 2024 14:44:41 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=AD=98=E5=9C=A8=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E4=B8=8D=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs b/Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs index 683c8442..cafa3607 100644 --- a/Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs +++ b/Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs @@ -32,6 +32,11 @@ public class DataDownloadService : IDataDownloadService public async Task InitAsync(string factory) { + if (await _dbContext.Queryable().Where(x => x.IsSync == false).AnyAsync()) + { + return; + } + var factories = factory.Split(','); await TruncateAsync();