优化发送接口
This commit is contained in:
@@ -179,9 +179,8 @@ namespace WMS.Web.Domain.Services
|
||||
//var taskIds = notSendDetails.GroupBy(x => x.Fid).Select(x => x.Key).ToList();
|
||||
|
||||
//var instockTotalDetails = await _inStockRepositories.GetInStockTotalDetails(taskIds);
|
||||
var instockTotalDetails = notSendDetails.GroupBy(x => new { x.TaskDetailId, x.CustomerCode, x.MaterialNumber }).Select(x => new
|
||||
var instockTotalDetails = notSendDetails.GroupBy(x => new { x.CustomerCode, x.MaterialNumber }).Select(x => new
|
||||
{
|
||||
TaskDetailId = x.Key.TaskDetailId,
|
||||
CustomerCode = x.Key.CustomerCode,
|
||||
MaterialNumber = x.Key.MaterialNumber,
|
||||
TotalQty = x.Sum(t => t.Qty)
|
||||
@@ -252,9 +251,9 @@ namespace WMS.Web.Domain.Services
|
||||
foreach (var det in item.Details)
|
||||
{
|
||||
if (i == item.Details.Count)
|
||||
content = det.Specifications + " 数量" + Convert.ToInt32(det.Qty);
|
||||
content = content+ det.Specifications + " 数量" + Convert.ToInt32(det.Qty);
|
||||
else
|
||||
content = det.Specifications + " 数量" + Convert.ToInt32(det.Qty) + ",";
|
||||
content = content + det.Specifications + " 数量" + Convert.ToInt32(det.Qty) + ",";
|
||||
i = i + 1;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user