Commit cc5cee54 by 泽锋 李

采购建议fix

parent 401bc82d
...@@ -638,6 +638,8 @@ and t1.quantity_init_advise>=0 and ( t3.buyer_name in ('张莹霞1') and t1.ware ...@@ -638,6 +638,8 @@ and t1.quantity_init_advise>=0 and ( t3.buyer_name in ('张莹霞1') and t1.ware
//只计算有监控库容的母sku //只计算有监控库容的母sku
mother_datas = mother_datas.Where(s=> mother_storage_capacity_configs.Any(v=> s.bailun_sku_warehouse_code==s.bailun_sku_warehouse_code)).ToList(); mother_datas = mother_datas.Where(s=> mother_storage_capacity_configs.Any(v=> s.bailun_sku_warehouse_code==s.bailun_sku_warehouse_code)).ToList();
if(mother_datas!=null && mother_datas.Count >= 1)
{
// 查询母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
{ {
...@@ -716,6 +718,8 @@ and t1.quantity_init_advise>=0 and ( t3.buyer_name in ('张莹霞1') and t1.ware ...@@ -716,6 +718,8 @@ and t1.quantity_init_advise>=0 and ( t3.buyer_name in ('张莹霞1') and t1.ware
} }
} }
}
// 再查询需要监控库容的非子母sku // 再查询需要监控库容的非子母sku
var dc_base_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 var dc_base_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
{ {
......
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