|
|
@@ -21,11 +21,11 @@ namespace Business.DOP
|
|
|
/// <summary>
|
|
|
/// 平台规格型号对照表
|
|
|
/// </summary>
|
|
|
- private readonly IRepository<PlatformSpecificationComparison, long> _PlatformSpecificationComparison;
|
|
|
+ private readonly IRepository<WMS_PlatformSpecificationComparison, long> _PlatformSpecificationComparison;
|
|
|
/// <summary>
|
|
|
/// 平台库存表
|
|
|
/// </summary>
|
|
|
- private readonly IRepository<PlatformInventory, long> _PlatformInventory;
|
|
|
+ private readonly IRepository<WMS_PlatformInventory, long> _PlatformInventory;
|
|
|
/// <summary>
|
|
|
/// 雪花算法
|
|
|
/// </summary>
|
|
|
@@ -40,8 +40,8 @@ namespace Business.DOP
|
|
|
/// 构造函数
|
|
|
/// </summary>
|
|
|
public SyncDOPAppService(
|
|
|
- IRepository<PlatformSpecificationComparison, long> PlatformSpecificationComparison,
|
|
|
- IRepository<PlatformInventory, long> PlatformInventory,
|
|
|
+ IRepository<WMS_PlatformSpecificationComparison, long> PlatformSpecificationComparison,
|
|
|
+ IRepository<WMS_PlatformInventory, long> PlatformInventory,
|
|
|
IUnitOfWorkManager unitOfWorkManager,
|
|
|
ICurrentTenant currentTenant
|
|
|
)
|
|
|
@@ -82,8 +82,8 @@ namespace Business.DOP
|
|
|
{
|
|
|
return JsonConvert.SerializeObject("成品库存为空!");
|
|
|
}
|
|
|
- List<PlatformInventory> platformInventoryInsert = new List<PlatformInventory>();
|
|
|
- List<PlatformInventory> platformInventoryDel;
|
|
|
+ List<WMS_PlatformInventory> platformInventoryInsert = new List<WMS_PlatformInventory>();
|
|
|
+ List<WMS_PlatformInventory> platformInventoryDel;
|
|
|
if (type == 1)
|
|
|
{
|
|
|
platformInventoryDel = _PlatformInventory.GetListAsync(x => x.Code == "HW0001").Result;
|
|
|
@@ -94,13 +94,13 @@ namespace Business.DOP
|
|
|
}
|
|
|
foreach (var item in platformInventoryDtoList)
|
|
|
{
|
|
|
- PlatformInventory platformInventory = new PlatformInventory();
|
|
|
+ WMS_PlatformInventory platformInventory = new WMS_PlatformInventory();
|
|
|
platformInventory.GenerateNewId(snowFlake.NextId());
|
|
|
platformInventory.Location = item.Location;
|
|
|
platformInventory.SpecificationModel = item.SpecificationModel;
|
|
|
platformInventory.BatchNumber = item.BatchNumber;
|
|
|
- platformInventory.InventoryQuantity = item.InventoryQuantity;
|
|
|
- platformInventory.PeriodOfValidity = item.PeriodOfValidity;
|
|
|
+ platformInventory.InventoryQuantity = item.InventoryQuantity.GetValueOrDefault();
|
|
|
+ platformInventory.PeriodOfValidity = item.PeriodOfValidity.GetValueOrDefault();
|
|
|
if (type == 1)
|
|
|
{
|
|
|
platformInventory.Code = "HW0001";
|