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) {