标签:
应业务部门的需求,导出hybris商城所有商品的价格及上下架状态
select p.code, plp.p_name, prw.p_price, case st.code when ‘approved‘ then ‘上架‘ else ‘下架‘ end as status, ctlog.p_id, clogv.p_version from products p left join productslp plp on p.pk = plp.itempk left join pricerows prw on p.pk = prw.p_product left join enumerationvalues st on p.p_approvalstatus = st.pk left join catalogversions clogv on clogv.pk = p.p_catalogversion left join catalogs ctlog on ctlog.pk = clogv.p_catalog where 1 = 1 and ctlog.p_id = ‘powertoolsProductCatalog‘ and plp.p_name is not null --and clogv.p_active = 1 --and p.code=‘9000000625‘
标签:
原文地址:http://my.oschina.net/soonlive/blog/414727