From c94b0427d769c8d4107ef6a3533df77edb0d186b Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Wed, 22 Nov 2023 16:43:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8E=B7=E5=8F=96=E5=B7=B2?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=95=B0=E6=8D=AE=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Interfaces/IWaitPrintAppService.cs | 1 + .../PrintTable/WaitPrintAppService.cs | 31 ++++++++++++++++++- .../WY.NewJit.Application.xml | 7 +++++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/PrintTable/Interfaces/IWaitPrintAppService.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/PrintTable/Interfaces/IWaitPrintAppService.cs index 520e606..2ae2c21 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/PrintTable/Interfaces/IWaitPrintAppService.cs +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/PrintTable/Interfaces/IWaitPrintAppService.cs @@ -11,6 +11,7 @@ namespace WY.NewJit.PrintTable { public interface IWaitPrintAppService { + Task> GetAlreadyPrintListAsync(QueryAlreadyPrintDto input); Task> GetReplenishPrintListAsync(QueryReplenishPrintDto input); Task> GetReplenishPrintZHBListAsync(QueryReplenishPrintDto input); 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 6dc2cee..cc4328b 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 @@ -817,7 +817,36 @@ namespace WY.NewJit.PrintTable return new PagedResultDto(0, new List()); } } - + /// + /// 已打印列表 + /// + /// 输入查询条件 + /// 返回符合条件的排序分页列表 + [HttpGet] + [UnitOfWork(false)] + [Route("already-print-list")] + public virtual async Task> GetAlreadyPrintListAsync(QueryAlreadyPrintDto input) + { + _logger.LogDebug(_errorMessagePrefix + "GetAlreadyPrintListAsync 进入"); + try + { + PagedResultDto ret = new PagedResultDto(); + string where = GetWhere(input); + ret.TotalCount = await GetEntityCountAsync("FisAlreadyPrint", where); + //计算分页 + int skipNum = input.SkipCount; + int takeNum = input.MaxResultCount; + var lst = await GetEntityListFromToAsync("FisAlreadyPrint", where, "HostSN2", skipNum, takeNum); + ret.Items = lst; + return ret; + } + catch (Exception ex) + { + string errMsg = _errorMessagePrefix + "GetAlreadyPrintListAsync 执行出错:" + ex.Message; + _logger.LogError(errMsg); + return new PagedResultDto(0, new List()); + } + } /// /// 打印前检查大众顺序号是否断号 /// diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml index 9dd9355..8963c36 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml @@ -1996,6 +1996,13 @@ 输入查询条件 返回符合条件的排序分页列表 + + + 已打印列表 + + 输入查询条件 + 返回符合条件的排序分页列表 + 打印前检查大众顺序号是否断号