Browse Source

[fix] 使用TS_BARCODE的PalletCode做为托盘码

master
贾荣国 3 years ago
parent
commit
ebe4d8039d
  1. 4
      WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/AsnBackgroundWorker/AsnFactory.cs
  2. 2
      WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Asns/TS_BARCODE.cs
  3. 1
      WebApiService/src/Win_in.Sfs.Scp.v1.EntityFrameworkCore/DbContext/V1ScpDbContextModelCreatingExtensions.cs

4
WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/AsnBackgroundWorker/AsnFactory.cs

@ -60,10 +60,10 @@ namespace Win_in.Sfs.Scp.WebApi
//计算与添加托盘和尾箱 //计算与添加托盘和尾箱
var palletCodes = barcodes.Select(p => p.Extend2).Distinct().ToList(); var palletCodes = barcodes.Select(p => p.PalletCode).Distinct().ToList();
foreach (var palletCode in palletCodes) foreach (var palletCode in palletCodes)
{ {
var palletBarcodes = barcodes.Where(p => p.Extend2==palletCode).ToList(); var palletBarcodes = barcodes.Where(p => p.PalletCode == palletCode).ToList();
var items = new List<Item>(); var items = new List<Item>();
var group = palletBarcodes var group = palletBarcodes

2
WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Asns/TS_BARCODE.cs

@ -87,6 +87,8 @@ namespace Win_in.Sfs.Scp.v1.Domain.Asns
[DisplayName("是否扫描")] [DisplayName("是否扫描")]
public bool IsScanned { get; set; } public bool IsScanned { get; set; }
public string PalletCode { get; set; }//托盘号
public Guid? TenantId { get; } public Guid? TenantId { get; }
} }

1
WebApiService/src/Win_in.Sfs.Scp.v1.EntityFrameworkCore/DbContext/V1ScpDbContextModelCreatingExtensions.cs

@ -337,6 +337,7 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore
b.Property(q => q.Extend1); b.Property(q => q.Extend1);
b.Property(q => q.Extend2); b.Property(q => q.Extend2);
b.Property(q => q.Extend3); b.Property(q => q.Extend3);
b.Property(q => q.PalletCode).HasMaxLength(50);
b.Property(q => q.IsScanned); b.Property(q => q.IsScanned);

Loading…
Cancel
Save