Commit c34c5afb by lizefeng

优化周转查询

parent 1fd2d65b
......@@ -56,8 +56,8 @@ t4.bailun_category_name,
(t4.supplier_delivery - t6.virtual_delivery_days) as 'delivery_days_error',t4.weight,t4.unit_price,t7.usable_stock,t7.shipped_stock,
t4.develop_time,(case when t8.id is null then '未侵权' else '侵权' end) as 'has_tort',
( case when t5.`status`=0 or t5.`status` is null then null else t5.gmt_create end ) as 'stop_monitor_create',
t4.`status` as 'sku_status',
t11.label as 'sku_label'
t4.`status` as 'sku_status'-- ,
-- t11.label as 'sku_label'
-- ,t10.`name` as 'group_name'
from dc_auto_turnover as dat
left join dc_auto_sales as t2 on t2.bailun_sku=dat.bailun_sku and dat.warehouse_code = t2.warehouse_code
......@@ -69,7 +69,7 @@ left join dc_base_stock as t7 on dat.bailun_sku = t7.bailun_sku and dat.warehous
left join dc_base_tort as t8 on dat.bailun_sku = t8.bailun_sku
-- left join dc_auto_stock_up_range as t9 on dat.bailun_sku = t9.bailun_sku and dat.warehouse_code = t9.warehouse_code
-- left join dc_auto_jit_tag_group as t10 on t9.group_id = t10.id
left join dc_auto_config_sku_label as t11 on dat.bailun_sku = t11.bailun_sku
-- left join dc_auto_config_sku_label as t11 on dat.bailun_sku = t11.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