Browse Source

[fix]BUG修复

master
rongguo.jia 2 years ago
parent
commit
1f27ea0035
  1. 5
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Agent/AsnBackgroundWorker/AsnBackgroundWorker.cs
  2. 1
      WebApiService/src/Win_in.Sfs.Scp.v1.EntityFrameworkCore/Repositories/TsBarcodeRepository.cs

5
WebApiService/src/Win_in.Sfs.Scp.WebApi.Agent/AsnBackgroundWorker/AsnBackgroundWorker.cs

@ -104,12 +104,13 @@ namespace Win_in.Sfs.Scp.WebApi
var noPoAsn = CreateNoPoAsn(asn, barcodes);
asnX12List.Add(noPoAsn);
if (asn.AsnBillNum.StartsWith(_options.QadAsnPrefix))//ASN to QAD
{
//埃驰要求不传托盘信息 @20220905
barcodes.ForEach(p => p.PalletCode = "");
//埃驰要求不传托盘信息 @20220905
if (asn.AsnBillNum.StartsWith(_options.QadAsnPrefix))//ASN to QAD
{
var asnX12 = CreateX12Asn(site, asn, barcodes);
asnX12List.Add(asnX12);
}

1
WebApiService/src/Win_in.Sfs.Scp.v1.EntityFrameworkCore/Repositories/TsBarcodeRepository.cs

@ -19,6 +19,7 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore
{
var dbSet = await GetDbSetAsync();
var list = await dbSet
.AsNoTracking()
.Where(p =>p.Site==site && p.BillNum == billNum)
.ToListAsync();
return list;

Loading…
Cancel
Save