|
|
@@ -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)
|