优化
This commit is contained in:
@@ -2338,6 +2338,11 @@
|
||||
箱信息ID
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Core.Dto.InStockTask.UpdateInStockTaskBoxRequest.TaskDetailId">
|
||||
<summary>
|
||||
单据ID(等同-入库任务单明细ID)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Core.Dto.InStockTask.UpdateInStockTaskBoxRequest.ErpDetailId">
|
||||
<summary>
|
||||
对应金蝶的明细ID
|
||||
|
||||
@@ -1075,6 +1075,11 @@
|
||||
入库任务单ID
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Domain.Entitys.InStockTaskBox.TaskDetailId">
|
||||
<summary>
|
||||
单据ID(等同-入库任务单明细ID)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Domain.Entitys.InStockTaskBox.BoxId">
|
||||
<summary>
|
||||
箱号ID
|
||||
|
||||
@@ -19,6 +19,11 @@ namespace WMS.Web.Core.Dto.InStockTask
|
||||
/// </summary>
|
||||
public int BoxId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据ID(等同-入库任务单明细ID)
|
||||
/// </summary>
|
||||
public int TaskDetailId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 对应金蝶的明细ID
|
||||
/// </summary>
|
||||
|
||||
@@ -24,6 +24,11 @@ namespace WMS.Web.Domain.Entitys
|
||||
/// </summary>
|
||||
public int TaskId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据ID(等同-入库任务单明细ID)
|
||||
/// </summary>
|
||||
public int TaskDetailId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 箱号ID
|
||||
/// </summary>
|
||||
|
||||
@@ -176,10 +176,13 @@ namespace WMS.Web.Repositories
|
||||
var boxList = await _context.InStockTaskBoxDetails
|
||||
.GroupJoin(_context.InstockTaskBox, boxde => boxde.Fid, ts => ts.Id, (detail, ts) => new { detail, ts })
|
||||
.SelectMany(x => x.ts.DefaultIfEmpty(), (p, box) => new { p.detail, box })
|
||||
.GroupJoin(_context.InStockTaskDetails, p => p.box.TaskDetailId, ts => ts.Id, (p, ts) => new { p.detail, p.box, ts })
|
||||
.SelectMany(x => x.ts.DefaultIfEmpty(), (p, taskDet) => new { p.detail, p.box, taskDet })
|
||||
.Where(x => x.box.TaskId == entity.Id).Select(x => new InStockTaskBoxInfoDto()
|
||||
{
|
||||
BoxId = x.box.BoxId,
|
||||
BoxBillNo = x.box.BoxBillNo,
|
||||
SaleBillNo=x.taskDet.SaleBillNo,
|
||||
Method = InventoryInOutMethod.Box.GetRemark(),
|
||||
MaterialNumber = x.detail.MaterialNumber,
|
||||
Specifications = _erpBasicDataExtendService.GetMaterialSpecifications(materials, x.detail.MaterialNumber),
|
||||
|
||||
Reference in New Issue
Block a user