Commit 18d8269a by 泽锋 李

空运切换 fix

parent 0be10791
......@@ -177,11 +177,12 @@ from dc_auto_forecast_fluctuation as t1
left join dc_base_warehouse as t2 on t1.warehouse_code =t2.warehouse_code
left join dc_auto_turnover as t3 on t1.warehouse_code =t3.warehouse_code and t1.bailun_sku = t3.bailun_sku
left join dc_base_head_transport_config as t4 on t1.bailun_sku = t4.bailun_sku and t1.warehouse_code = t4.warehouse_code
where t1.type=2 and t2.hq_type in ('第三方仓库','FBA仓') and t1.start_time>=now() and t1.start_time<=DATE_ADD(now(),INTERVAL t3.turnover_days day)
where t1.type=2 and t2.hq_type in ('第三方仓库','FBA仓') and t1.start_time>=@nowDate
and t1.gmt_modified>=@btime and ifnull(t4.head_transport,'')!='空运'
";
DynamicParameters parameters = new DynamicParameters();
parameters.Add("btime", date);
parameters.Add("nowDate", DateTime.Now.ToDayHome());
if (!string.IsNullOrWhiteSpace(bailun_sku))
{
sql += $" and t1.bailun_sku='{bailun_sku}' ";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment