From 39060a44f62bed7d154e3129018198a4b1ca0982 Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Wed, 8 Nov 2023 14:58:46 +0800 Subject: [PATCH] 11 --- .../Services/BillNumberRecordDomainService.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 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 ced4ca0..61dbe7f 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 @@ -82,11 +82,14 @@ namespace WY.NewJit.MsgCheck var recordcache= _billNumberRecordCaches.FirstOrDefault(r=>r.ProductLine==productLine); if (recordcache == null) { - recordcache = new BillNumberRecord(); - recordcache.RecordNumber = 0; - recordcache.RoundNumber = 1; - recordcache.RecordNumber = 0; - recordcache.ProductLine = productLine; + recordcache = new BillNumberRecord( + GuidGenerator.Create(), + productLine, + 1, + 0, + 0, + DateTime.Now + ); _billNumberRecordCaches.Add(recordcache); var item = CreatPrintData(BillNumberTypeEnum.正常, number, 1 * 100000); datas.Add(item);