Commit 955834df by 泽锋 李

优化库存监控查询

parent 187bb023
......@@ -26,8 +26,8 @@ t1.weight,
( case when t5.bailun_sku is not null then '监控中' else '停止监控' end ) as 'monitor_status',
t2.*,
t1.`status`
from dc_base_sku as t1
inner join dc_view_stock_monitor_sku as tv on t1.bailun_sku = tv.bailun_sku
from dc_view_stock_monitor_sku as tv
inner join dc_base_sku as t1 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_monitor_sku as t5 on t1.bailun_sku = t5.bailun_sku
where 1=1 ";
......
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