Commit e4cdc781 by lizefeng

修改标签的规则

parent b754742a
...@@ -1101,11 +1101,13 @@ t1.bailun_sku, ...@@ -1101,11 +1101,13 @@ t1.bailun_sku,
( (
case when t1.buyer_name='赵美聪' and t1.source = 1 then '服装精准开发' case when t1.buyer_name='赵美聪' and t1.source = 1 then '服装精准开发'
when t1.buyer_name='赵美聪' then '服装供应商推荐' when t1.buyer_name='赵美聪' then '服装供应商推荐'
when t1.buyer_name!='赵美聪' and t1.source = 1 then '非服装精准开发' when t1.buyer_name!='赵美聪' and t1.source = 1 and t1.create_time>='2019-07-01 00:00:00' then '非服装精准开发'
else '未知' when t2.label is null then '未知'
else t2.label
end end
) as 'label' ) as 'label'
from dc_base_sku as t1 from dc_base_sku as t1
left join dc_auto_config_sku_label as t2 on t1.bailun_sku = t2.bailun_sku
); );
alter table dc_auto_config_sku_label rename dc_auto_config_sku_labelTemp; alter table dc_auto_config_sku_label rename dc_auto_config_sku_labelTemp;
......
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