From 250de8a254d202c978d0f8e32aab4194ec021d96 Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Thu, 9 Nov 2023 13:22:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E5=8D=95=E6=8D=AE=E5=8F=B7?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/BillNumberRecordDomainService.cs | 12 +++--------- 1 file changed, 3 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 a566786..8b0521d 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 @@ -24,20 +24,17 @@ namespace WY.NewJit.MsgCheck private readonly LogRemindDomainService _logRemindDomainService; public static List _billNumberRecordCaches= new List() ;//记录内存 - private readonly IObjectMapper _objectMapper; - public BillNumberRecordDomainService( IRepository billNumberRepository, ILogger logger, LogRemindDomainService logRemindDomainService, - IRepository waitPrintRepository, - IObjectMapper objectMapper) + IRepository waitPrintRepository) { _billNumberRepository = billNumberRepository; _logger = logger; _logRemindDomainService = logRemindDomainService; _waitPrintRepository = waitPrintRepository; - _objectMapper = objectMapper; + } /// /// 获取和更新记录和内存 @@ -66,10 +63,7 @@ namespace WY.NewJit.MsgCheck else { _billNumberRecordCaches.Clear(); - //_billNumberRecordCaches = await _billNumberRepository.GetListAsync(); - var aa = await _billNumberRepository.GetListAsync(); - _billNumberRecordCaches = _objectMapper.Map, List>(aa); - + _billNumberRecordCaches = await _billNumberRepository.GetListAsync(); foreach (var item in _billNumberRecordCaches) {