From 72a17eca3c0ce2329672e78e41f9a685dfa9ae2a Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Thu, 9 Nov 2023 15:01:47 +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=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/BillNumberRecordDomainService.cs | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 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 8b0521d..42448cc 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 @@ -122,13 +122,20 @@ namespace WY.NewJit.MsgCheck BillNumberTypeEnum type = BillNumberTypeEnum.正常; if (i + recordNumber > 1999) { - if ((i + recordNumber - 1999) != number) type = BillNumberTypeEnum.断号; + if ((i + recordNumber - 1999) != number) + { + type = BillNumberTypeEnum.断号; + _logger.LogDebug($"#999#产生断号数据【{i + recordNumber - 1999}】,传入号码为【{number}】,缓存号码【{recordcache.RecordNumber}】,插入条数【{recordcache.InsertedRows}】,轮数【{roundNumber}】,下一轮"); + } item = CreatPrintData(type, i + recordNumber - 1999, roundNumber * 100000); } else { - if ((i + recordNumber) != number) type = BillNumberTypeEnum.断号; - + if ((i + recordNumber) != number) + { + type = BillNumberTypeEnum.断号; + _logger.LogDebug($"#999#产生断号数据【{i + recordNumber}】,传入号码为【{number}】,缓存号码【{recordcache.RecordNumber}】,插入条数【{recordcache.InsertedRows}】,轮数【{roundNumber}】,当前轮"); + } item = CreatPrintData(type, i + recordNumber, (roundNumber - 1) * 100000); } datas.Add(item); @@ -152,7 +159,12 @@ namespace WY.NewJit.MsgCheck for (int i = 1; i <= recordcache.InsertedRows; i++) { BillNumberTypeEnum type = BillNumberTypeEnum.正常; - if ((i + recordNumber) != number) type = BillNumberTypeEnum.断号; + if ((i + recordNumber) != number) + { + type = BillNumberTypeEnum.断号; + _logger.LogDebug($"#999#产生断号数据【{i + recordNumber}】,传入号码为【{number}】,缓存号码【{recordcache.RecordNumber}】,插入条数【{recordcache.InsertedRows}】,轮数【{recordcache.RoundNumber}】,方法当前轮数"); + } + var item = CreatPrintData(type, i + recordNumber, roundNumber * 100000); datas.Add(item); }