0

我是 Hybris 的新手。到目前为止,这就是我想出的:

$version=Online      

"#% impex.setTargetFile( ""Product.csv"" );"

insert_update Product ; catalog(id [allownull=true] ; catalogVersion(catalog(id),version)[unique=true,allownull=true] ; code[unique=true,allownull=true] ; name

"#% impex.exportItems(""SELECT {P:pk} FROM {Product as P}, {CatalogVersion as CV}, {Catalog as C} WHERE {P:catalogversion}={CV:PK} AND {CV:catalog}={C:PK} AND {C:id}='$catalog' AND {CV:version}='$version'"", Collections.EMPTY_MAP, Collections.singletonList( Item.class ), true, true, -1, -1 );"

看起来不错,但它不会工作。我会很感激你的帮助

4

2 回答 2

1

$catalog没有定义,你刚刚定义了版本。

于 2018-08-14T08:30:32.697 回答
0

从 {genericvariantproduct 中选择 {p.pk} 作为 p 加入 catalogVersion 作为 {p.catalog}={} 上的 cv

于 2020-08-19T16:43:50.620 回答