优化发送接口

This commit is contained in:
tongfei
2024-04-09 16:55:53 +08:00
parent 1d42183b3c
commit fc6ee79513

View File

@@ -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;
}