From 8656240f1e3e11f485b40ac9353250dd9656af26 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Thu, 27 Jun 2024 14:07:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=83=A8=E9=97=A8=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs b/Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs index beb8ea05..a518bf71 100644 --- a/Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs +++ b/Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs @@ -36,7 +36,11 @@ public class DataDownloadService : IDataDownloadService foreach (var item in factories) { - await DownloadAsync(item); + if (!await _dbContext.Queryable().AnyAsync()) + { + await DownloadAsync(item); + } + await DownloadAsync(item); await DownloadAsync(item);