From ba7a4f6f41d7af0906d1efe48a90566e77baa3b0 Mon Sep 17 00:00:00 2001 From: zhouhongjun <565221961@qq.com> Date: Tue, 21 Nov 2023 09:59:11 +0800 Subject: [PATCH] =?UTF-8?q?HBPO=5FSA=E6=AF=94=E5=AF=B9=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=90=8E=E6=9B=B4=E6=96=B0=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Report/JisHBPOSaSeEdiCompareExportService.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisHBPOSaSeEdiCompareExportService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisHBPOSaSeEdiCompareExportService.cs index 01631d91..a1ebed59 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisHBPOSaSeEdiCompareExportService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisHBPOSaSeEdiCompareExportService.cs @@ -115,6 +115,15 @@ namespace SettleAccount.Job.Services.Report result.ShouldNotBeNull(); _fileContainer.SaveAsync(filename, result.Result, true); + //比对完成后更新状态 + var pubSaEntityList = _settleAccountDbContext.Set().Where(t => t.Version == version && t.BusinessType == businessType).ToList(); + foreach (var item in pubSaEntityList) + { + item.State = "2"; + } + + _settleAccountDbContext.SaveChanges(); + Notify(); return id.ToString(); }