Commit 187bb023 by 泽锋 李

优化监控sku库存查询

parent 1431ce22
...@@ -27,9 +27,10 @@ t1.weight, ...@@ -27,9 +27,10 @@ t1.weight,
t2.*, t2.*,
t1.`status` t1.`status`
from dc_base_sku as t1 from dc_base_sku as t1
inner join dc_view_stock_monitor_sku as tv on t1.bailun_sku = tv.bailun_sku
left join dc_auto_stock_monitor as t2 on t1.bailun_sku = t2.bailun_sku left join dc_auto_stock_monitor as t2 on t1.bailun_sku = t2.bailun_sku
left join dc_auto_monitor_sku as t5 on t1.bailun_sku = t5.bailun_sku left join dc_auto_monitor_sku as t5 on t1.bailun_sku = t5.bailun_sku
where EXISTS (select * from dc_base_stock as t_s where t_s.bailun_sku = t1.bailun_sku) "; where 1=1 ";
DynamicParameters parameters = new DynamicParameters(); DynamicParameters parameters = new DynamicParameters();
if (search != null) if (search != null)
{ {
......
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