|
|
@ -110,6 +110,8 @@ namespace WY.NewJit.PrintTable |
|
|
|
|
|
|
|
private readonly M100DomainService _m100DomainService; |
|
|
|
|
|
|
|
private readonly IRepository<BillR100, Guid> _billR100Repository; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// BLOB存储
|
|
|
|
/// </summary>
|
|
|
@ -133,8 +135,8 @@ namespace WY.NewJit.PrintTable |
|
|
|
IRepository<ZhuHuBanPackingList, Guid> zhuHuBanPackingListRepository, |
|
|
|
IRepository<PrintTemplateConfiguration, Guid> printTemplateConfigurationRepository, |
|
|
|
M100DomainService m100DomainService, |
|
|
|
IBlobContainer<OurFileContainer> blobContainer |
|
|
|
|
|
|
|
IBlobContainer<OurFileContainer> blobContainer, |
|
|
|
IRepository<BillR100, Guid> billR100Repository |
|
|
|
) |
|
|
|
{ |
|
|
|
_waitPrintRepository = waitPrintRepository; |
|
|
@ -154,6 +156,7 @@ namespace WY.NewJit.PrintTable |
|
|
|
_printTemplateConfigurationRepository = printTemplateConfigurationRepository; |
|
|
|
_m100DomainService = m100DomainService; |
|
|
|
_blobContainer = blobContainer; |
|
|
|
_billR100Repository = billR100Repository; |
|
|
|
} |
|
|
|
|
|
|
|
#region 私有方法
|
|
|
@ -782,6 +785,20 @@ namespace WY.NewJit.PrintTable |
|
|
|
|| input.BusinessType == BusinessTypeEnum.AC_ZhuHuBan) |
|
|
|
{ |
|
|
|
ret = await QueryByConditionAsync(input, (PagedAndSortedBase)input); |
|
|
|
|
|
|
|
var knrLst = ret.Items.Select(itm => itm.KNR).ToList(); |
|
|
|
|
|
|
|
List<BillR100> r100Lst = await _billR100Repository.Where(itm => knrLst.Contains(itm.KNR)).ToListAsync(); |
|
|
|
//List<BillR100> r100Lst = await _billR100Repository.GetListAsync(itm => knrLst.Contains(itm.KNR));
|
|
|
|
foreach (var waitPrintItem in ret.Items) |
|
|
|
{ |
|
|
|
BillR100 r100Obj = r100Lst.FirstOrDefault(itm => itm.KNR == waitPrintItem.KNR); |
|
|
|
if (r100Obj != null) |
|
|
|
{ |
|
|
|
waitPrintItem.R100OnlineTime = r100Obj.OnlineTime; |
|
|
|
waitPrintItem.R100ReceiveTime = r100Obj.ReceiveTime; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//else if (input.BusinessType == BusinessTypeEnum.OtherZhuHuBan || input.BusinessType == BusinessTypeEnum.ZhuHuBan)
|
|
|
|
//{
|
|
|
|