From 1acb8b7d13b416ed28d297c96fbfdf701adb1280 Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Wed, 22 Nov 2023 17:08:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=93=E5=8D=B0=E5=89=8D?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E5=A4=A7=E4=BC=97=E9=A1=BA=E5=BA=8F=E5=8F=B7?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E6=96=AD=E5=8F=B7=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PrintTable/WaitPrintAppService.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 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 cc4328b..c89d1b1 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 @@ -872,8 +872,15 @@ namespace WY.NewJit.PrintTable return new ListResultDto(retLst); } //判断是否断号 - ListResultDto tempLst = await GetMBReportDetailList(input, true); //------------------- - List billLst = tempLst.Item; + int printBillCnt = input.EndHostSN - input.BeginHostSN + 1; + List billLst = await _waitPrintRepository.Where(itm => + itm.BusinessType == BusinessTypeEnum.MenBan + && itm.ProductLine == input.ProductLine //生产线 + && itm.PrintType == PrintTypeEnum.OrderPrint //顺序打印 + && itm.HostSN2 >= minHostSN2) + .OrderBy(itm => itm.HostSN2) + .Take(printBillCnt).ToListAsync(); + bool isBreakNum = billLst.Any(itm => itm.BillStatus == BillStatusEnum.BreakNum); if (isBreakNum) {