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 @@ 输入查询条件 返回符合条件的排序分页列表 + + + 已打印列表 + + 输入查询条件 + 返回符合条件的排序分页列表 + 打印前检查大众顺序号是否断号