Browse Source

生成单据号添加日志

master
lvzb 1 year ago
parent
commit
72a17eca3c
  1. 20
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Services/BillNumberRecordDomainService.cs

20
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgCheck/Services/BillNumberRecordDomainService.cs

@ -122,13 +122,20 @@ namespace WY.NewJit.MsgCheck
BillNumberTypeEnum type = BillNumberTypeEnum.; BillNumberTypeEnum type = BillNumberTypeEnum.;
if (i + recordNumber > 1999) 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); item = CreatPrintData(type, i + recordNumber - 1999, roundNumber * 100000);
} }
else 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); item = CreatPrintData(type, i + recordNumber, (roundNumber - 1) * 100000);
} }
datas.Add(item); datas.Add(item);
@ -152,7 +159,12 @@ namespace WY.NewJit.MsgCheck
for (int i = 1; i <= recordcache.InsertedRows; i++) for (int i = 1; i <= recordcache.InsertedRows; i++)
{ {
BillNumberTypeEnum type = BillNumberTypeEnum.; 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); var item = CreatPrintData(type, i + recordNumber, roundNumber * 100000);
datas.Add(item); datas.Add(item);
} }

Loading…
Cancel
Save