当我发出价目表导出时,我需要导出一些额外的字段。
我有这个查询:
select p.sku as 'Product SKU', 1 as Quantity, 'each' as 'Unit Code', pp.value as Price, 'ARS' as Currency, b.default_title as Brand, c.title as Category from oro_price_product pp inner join oro_product p on p.id = pp.product_id left join oro_brand b on b.id = p.brand_id left join oro_catalog_category c on c.id = p.category_id where price_list_id = 7 order by product_sku
当我从命令行运行它时,它会产生我需要的确切结果,但我想允许最终用户在生成导出作业时触发这个结果。
我一直在查看作业定义并阅读有关消息队列的信息,但我不知道将这段代码放在哪里。
谢谢,