Commit 04c37371 by 泽锋 李

铁路选最快

parent 6c5737a5
...@@ -382,7 +382,7 @@ namespace AutoTurnOver.Services ...@@ -382,7 +382,7 @@ namespace AutoTurnOver.Services
} }
//海运则自动选择一个最快的渠道 //海运则自动选择一个最快的渠道
if (data.bp_sendtype == 2) if (data.bp_sendtype == 2 || data.bp_sendtype == 1)
{ {
var base_wa = _connection.QueryFirstOrDefault<string>(" select t2.`code` from dc_base_warehouse as t1 left join dc_base_country as t2 on t1.area_name = t2.`name` where warehouse_code=@warehouse_code ", new { warehouse_code = item.Key.warehouse_code }); var base_wa = _connection.QueryFirstOrDefault<string>(" select t2.`code` from dc_base_warehouse as t1 left join dc_base_country as t2 on t1.area_name = t2.`name` where warehouse_code=@warehouse_code ", new { warehouse_code = item.Key.warehouse_code });
// 查询物流方案 // 查询物流方案
...@@ -391,7 +391,7 @@ namespace AutoTurnOver.Services ...@@ -391,7 +391,7 @@ namespace AutoTurnOver.Services
endCountries = base_wa, endCountries = base_wa,
character_skus = item.FirstOrDefault().bailun_sku, character_skus = item.FirstOrDefault().bailun_sku,
startPoint = "3", startPoint = "3",
transport_type = 2, transport_type = data.bp_sendtype,
has_min_freight_unit_price = true, has_min_freight_unit_price = true,
//has_history_order = 180 //has_history_order = 180
}).Where(s => s.min_freight_unit_price > 1).Where(s=>s.Fast_Aging>10).OrderBy(s=>s.Fast_Aging).FirstOrDefault(); }).Where(s => s.min_freight_unit_price > 1).Where(s=>s.Fast_Aging>10).OrderBy(s=>s.Fast_Aging).FirstOrDefault();
......
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