增加总入库量
This commit is contained in:
@@ -3023,6 +3023,11 @@
|
||||
数量
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Core.Dto.InStockQueryResponse.TotalQty">
|
||||
<summary>
|
||||
总入库量
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:WMS.Web.Core.Dto.InStockQueryResponse.Creator">
|
||||
<summary>
|
||||
创建人
|
||||
|
||||
@@ -82,7 +82,11 @@ namespace WMS.Web.Core.Dto
|
||||
/// </summary>
|
||||
[Column("入库数量")]
|
||||
public decimal Qty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总入库量
|
||||
/// </summary>
|
||||
[Column("总入库量")]
|
||||
public decimal TotalQty { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
|
||||
@@ -365,6 +365,7 @@ namespace WMS.Web.Repositories
|
||||
}
|
||||
|
||||
int total = await query.CountAsync();
|
||||
decimal totalQty = await query.SumAsync(s => s.detail.Qty);
|
||||
var list = await query.Select(s => new InStockQueryResponse()
|
||||
{
|
||||
Id = s.order.Id,
|
||||
@@ -380,6 +381,7 @@ namespace WMS.Web.Repositories
|
||||
Specifications = _erpBasicDataExtendService.GetMaterialSpecifications(materials, s.detail.MaterialNumber),
|
||||
Stock = _singleDataService.GetSingleData(SingleAction.StocksJoinOrgCode, companyId, s.order.StockCode + s.order.OrgCode),
|
||||
Qty = s.detail.Qty,
|
||||
TotalQty= totalQty,
|
||||
Creator = _singleDataService.GetSingleData(SingleAction.Staffs, companyId, s.order.CreatorId),
|
||||
CreateTime = s.order.CreateTime.ToString("yyyy-MM-dd HH:mm:ss"),
|
||||
SuccessSync = (s.order.Type != InstockType.Purchase ? "--" : (s.order.SuccessSync == SyncStatus.Success ? "成功" : (s.order.SuccessSync == SyncStatus.SyncIng ? "同步中" : "失败"))),
|
||||
|
||||
Reference in New Issue
Block a user