heteng 2 роки тому
батько
коміт
d68eb4c7d5

+ 3 - 3
MicroServices/Business/Business.Application/SaleForecastManagement/MonthlyCapacityLoadAppService.cs

@@ -137,7 +137,7 @@ namespace Business.SaleForecastManagement
         /// <summary>
         /// 平台库存表
         /// </summary>
-        private IRepository<PlatformInventory, long> _platformInventory;
+        private IRepository<WMS_PlatformInventory, long> _platformInventory;
 
         /// <summary>
         /// 参数设置表
@@ -176,7 +176,7 @@ namespace Business.SaleForecastManagement
             IRepository<SkuVersionSet, long> skuVersionSet,
             IRepository<crm_planorder, long> crm_planorder,
             IRepository<PlatStockMonitorSetting, long> platStockMonitorSetting,
-            IRepository<PlatformInventory, long> platformInventory,
+            IRepository<WMS_PlatformInventory, long> platformInventory,
             ISqlRepository<GeneralizedCodeMaster> generalizedCodeMaster
             )
         {
@@ -640,7 +640,7 @@ namespace Business.SaleForecastManagement
             int month = master == null ? 0 : Convert.ToInt16(master.UDeci1);
             DateTime strTime = Convert.ToDateTime(platformFcsts[0].PlanMonth + "-01").AddMonths(month);
             //获取平台库存
-            List<PlatformInventory> pInventories = _platformInventory.GetListAsync(p=> p.tenant_id == input.tenant_id && p.company_id == input.company_id && p.factory_id == input.factory_id && p.PeriodOfValidity >= strTime).Result;
+            List<WMS_PlatformInventory> pInventories = _platformInventory.GetListAsync(p=> p.tenant_id == input.tenant_id && p.company_id == input.company_id && p.factory_id == input.factory_id && p.PeriodOfValidity >= strTime).Result;
             
             //计算T1补货
             foreach (var item in T1Models)

+ 1 - 1
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/DOP/BusinessDbContext.cs

@@ -209,7 +209,7 @@ namespace Business.EntityFrameworkCore
         /// <summary>
         /// ƽ̨¿â´æ±í
         /// </summary>
-        public DbSet<PlatformInventory> PlatformInventory { get; set; }
+        public DbSet<WMS_PlatformInventory> WMS_PlatformInventory { get; set; }
 
         #endregion