短信服务

This commit is contained in:
tongfei
2024-03-29 15:15:43 +08:00
parent 2f224fcaf3
commit 806af3bb70
24 changed files with 829 additions and 93 deletions

View File

@@ -141,7 +141,7 @@ namespace WMS.Web.Repositories
if (suppliers_result.IsSuccess)
suppliers = suppliers_result.Data.ToList();
var entity = await _context.InStockTask.Where(x => x.Id == id).FirstOrDefaultAsync();
var entity = await _context.InStockTask.Include(x=>x.Details).Where(x => x.Id == id).FirstOrDefaultAsync();
if (entity != null)
{
@@ -149,8 +149,8 @@ namespace WMS.Web.Repositories
{
Id = entity.Id,
BillNo = entity.BillNo,
SourceBillNo = entity.SourceBillNo,
SaleBillNo = entity.SaleBillNo,
SaleBillNo= (string.Join(",", entity.Details.Select(x => x.SaleBillNo).ToList()).TrimEnd(',')),
SourceBillNo = entity.SourceBillNo,
Status = entity.Status.GetRemark(),
Type = entity.Type.GetRemark(),
Supplier = _erpBasicDataExtendService.GetSupplierName(suppliers, entity.SupplierId??0),
@@ -207,7 +207,11 @@ namespace WMS.Web.Repositories
{
x.SerialNumbers = (string.Join(",", serialNumbList.Where(x => x.MaterialNumber == x.MaterialNumber).Select(x => x.SerialNumber).ToList())).TrimEnd(',');
});
}
response.Boxs = boxList;
}
else
@@ -753,5 +757,14 @@ namespace WMS.Web.Repositories
return (list, total);
}
/// <summary>
/// 获取明细
/// </summary>
/// <returns></returns>
public async Task<List<InStockTaskDetails>> GetNotSendErpDetails()
{
return await _context.InStockTaskDetails.Where(x =>x.AccruedQty!=0 && x.IsHasSend != null && x.IsHasSend == false && !string.IsNullOrEmpty(x.SaleBillNo) && !string.IsNullOrEmpty(x.CustomerCode)).ToListAsync();
}
}
}