From cb6715b82a225a2328b2b29a2c03150017fad1fd Mon Sep 17 00:00:00 2001 From: liuyunfeng Date: Wed, 8 Nov 2023 16:29:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E7=94=9F=E6=88=90HostSN2=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/BillNumberRecordDomainService.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Services/BillNumberRecordDomainService.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Services/BillNumberRecordDomainService.cs index 9781ce5..8151032 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Services/BillNumberRecordDomainService.cs +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Services/BillNumberRecordDomainService.cs @@ -41,18 +41,18 @@ namespace WY.NewJit.MsgCheck ObjectResultDto ret = new ObjectResultDto(true, null); if (isupdate) { - await _billNumberRepository.UpdateManyAsync(_billNumberRecordCaches); + //await _billNumberRepository.UpdateManyAsync(_billNumberRecordCaches); foreach (var item in _billNumberRecordCaches) { var re = await _billNumberRepository.GetListAsync(r=>r.Id==item.Id); - if (re.Count == 0) - { - await _billNumberRepository.InsertAsync(item); - } - else - { - await _billNumberRepository.UpdateAsync(item); - } + if (re.Count == 0) + { + await _billNumberRepository.InsertAsync(item); + } + else + { + await _billNumberRepository.UpdateAsync(item); + } } } else