Browse Source

[fix]修复错误删除SCP Barcode的PalletCode的问题

master
rongguo.jia 2 years ago
parent
commit
61c67391e9
  1. 9
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Agent/AsnBackgroundWorker/AsnBackgroundWorker.cs
  2. 4
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Agent/Win_in.Sfs.Scp.WebApi.Agent.csproj
  3. 3
      WebApiService/src/Win_in.Sfs.Scp.v1.EntityFrameworkCore/Repositories/TsBarcodeRepository.cs

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

@ -101,13 +101,18 @@ namespace Win_in.Sfs.Scp.WebApi
{ {
var barcodes = await scpAsnManager.GetBarcodesAsync(siteCode, asn.AsnBillNum); var barcodes = await scpAsnManager.GetBarcodesAsync(siteCode, asn.AsnBillNum);
var noPoAsn = CreateNoPoAsn(asn, barcodes);
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
{ {
var asnX12 = CreateX12Asn(site, asn, barcodes); var asnX12 = CreateX12Asn(site, asn, barcodes);
asnX12List.Add(asnX12); asnX12List.Add(asnX12);
} }
var noPoAsn = CreateNoPoAsn(asn, barcodes);
asnX12List.Add(noPoAsn);
Logger.LogInformation($"{siteCode}:{asn.Id} {asn.AsnBillNum} was loaded"); Logger.LogInformation($"{siteCode}:{asn.Id} {asn.AsnBillNum} was loaded");
} }

4
WebApiService/src/Win_in.Sfs.Scp.WebApi.Agent/Win_in.Sfs.Scp.WebApi.Agent.csproj

@ -3,8 +3,8 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<AssemblyVersion>1.22.0907.1</AssemblyVersion> <AssemblyVersion>1.22.1024.1</AssemblyVersion>
<FileVersion>1.22.0907.1</FileVersion> <FileVersion>1.22.1024.1</FileVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

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

@ -21,9 +21,6 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore
var list = await dbSet var list = await dbSet
.Where(p =>p.Site==site && p.BillNum == billNum) .Where(p =>p.Site==site && p.BillNum == billNum)
.ToListAsync(); .ToListAsync();
//埃驰要求不传托盘信息 @20220905
list.ForEach(p=>p.PalletCode="");
//埃驰要求不传托盘信息 @20220905
return list; return list;
} }
} }

Loading…
Cancel
Save