Browse Source

[fix]BUG修复

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

7
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); var noPoAsn = CreateNoPoAsn(asn, barcodes);
asnX12List.Add(noPoAsn); asnX12List.Add(noPoAsn);
//埃驰要求不传托盘信息 @20220905
barcodes.ForEach(p => p.PalletCode = "");
//埃驰要求不传托盘信息 @20220905
if (asn.AsnBillNum.StartsWith(_options.QadAsnPrefix))//ASN to QAD if (asn.AsnBillNum.StartsWith(_options.QadAsnPrefix))//ASN to QAD
{ {
//埃驰要求不传托盘信息 @20220905
barcodes.ForEach(p => p.PalletCode = "");
//埃驰要求不传托盘信息 @20220905
var asnX12 = CreateX12Asn(site, asn, barcodes); var asnX12 = CreateX12Asn(site, asn, barcodes);
asnX12List.Add(asnX12); 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 dbSet = await GetDbSetAsync();
var list = await dbSet var list = await dbSet
.AsNoTracking()
.Where(p =>p.Site==site && p.BillNum == billNum) .Where(p =>p.Site==site && p.BillNum == billNum)
.ToListAsync(); .ToListAsync();
return list; return list;

Loading…
Cancel
Save