Commit f8db4bd6 by 泽锋 李

母sku未监控的情况下,也不出建议单

parent 4b39b4fc
...@@ -629,6 +629,15 @@ and t1.quantity_init_advise>=0 and ( t3.buyer_name in ('张莹霞1') and t1.ware ...@@ -629,6 +629,15 @@ and t1.quantity_init_advise>=0 and ( t3.buyer_name in ('张莹霞1') and t1.ware
//先清洗一波子母sku //先清洗一波子母sku
if (mother_datas != null && mother_datas.Count >= 1) if (mother_datas != null && mother_datas.Count >= 1)
{ {
// 再查询需要监控库容的母sku
var mother_storage_capacity_configs = _connection.Query<dc_base_storage_capacity_config>(" select * from dc_base_storage_capacity_config where bailun_sku_warehouse_code in @bailun_sku_warehouse_codes ", new
{
bailun_sku_warehouse_codes = mother_datas.Select(s => s.bailun_sku_warehouse_code).ToList()
}).ToList();
//只计算有监控库容的母sku
mother_datas = mother_datas.Where(s=> mother_storage_capacity_configs.Any(v=> s.bailun_sku_warehouse_code==s.bailun_sku_warehouse_code)).ToList();
// 查询母sku锁包含的子sku全部清除 // 查询母sku锁包含的子sku全部清除
var maps = _connection.Query<dc_base_mother_sku_map>(" select * from dc_base_mother_sku_map where mother_sku_warehouse_code in @mother_sku_warehouse_codes ", new var maps = _connection.Query<dc_base_mother_sku_map>(" select * from dc_base_mother_sku_map where mother_sku_warehouse_code in @mother_sku_warehouse_codes ", new
{ {
......
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