From ffbe646f15db0cb69e5f4628416404bef9cb0b55 Mon Sep 17 00:00:00 2001
From: lvzb <35200379@qq.com>
Date: Thu, 23 Nov 2023 11:07:34 +0800
Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=9F=A5=E6=96=AD=E5=8F=B7=E6=A0=BC?=
=?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../PrintTable/WaitPrintAppService.cs | 7 +++++--
.../MsgCheck/Services/BillNumberRecordDomainService.cs | 8 +++++---
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs
index 5455b89..b97e522 100644
--- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs
+++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs
@@ -855,7 +855,9 @@ namespace WY.NewJit.PrintTable
if (isBreakNum)
{
var breakNumLst = billLst.Where(itm => itm.BillStatus == BillStatusEnum.BreakNum).OrderBy(itm => itm.HostSN2).Select(itm => itm.HostSN2.ToString() + ",").ToList();
- string breakNumStr = string.Concat(breakNumLst);
+
+ string breakNumStr = string.Join("
", breakNumLst);
+ // string breakNumStr = string.Concat(breakNumLst);
retLst.Add($"存在断号:{breakNumStr}");
return new ListResultDto(retLst);
}
@@ -864,7 +866,8 @@ namespace WY.NewJit.PrintTable
if (containNotMatch)
{
var lst = billLst.Where(itm => itm.BillStatus == BillStatusEnum.NotMatch).OrderBy(itm => itm.HostSN2).Select(itm => itm.HostSN2.ToString() + ",").ToList();
- string str = string.Concat(lst);
+ string str = string.Join("
", lst);
+ //string str = string.Concat(lst);
retLst.Add($"存在未知总成:{str}");
return new ListResultDto(retLst);
}
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 42448cc..6584381 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
@@ -20,21 +20,23 @@ namespace WY.NewJit.MsgCheck
{
private readonly IRepository _billNumberRepository;
private readonly IRepository _waitPrintRepository;
- private ILogger _logger;
+ private ILogger _logger;//日志
private readonly LogRemindDomainService _logRemindDomainService;
+ private readonly Microsoft.Extensions.Configuration.IConfiguration _configuration;//配置
public static List _billNumberRecordCaches= new List() ;//记录内存
public BillNumberRecordDomainService(
IRepository billNumberRepository,
ILogger logger,
LogRemindDomainService logRemindDomainService,
- IRepository waitPrintRepository)
+ IRepository waitPrintRepository,
+ Microsoft.Extensions.Configuration.IConfiguration configuration)
{
_billNumberRepository = billNumberRepository;
_logger = logger;
_logRemindDomainService = logRemindDomainService;
_waitPrintRepository = waitPrintRepository;
-
+ _configuration = configuration;
}
///
/// 获取和更新记录和内存