0

是否可以在 ImpEx 导出脚本中对 itemtype 的属性进行类型转换,以通过 Hybris 中的管理控制台触发。我想做这样的事情:

如果(UGStudent的学生实例)UGStudent ugStudent =(UGStudent)ugstudent;

这样我也可以拥有特定于子类型的属性。

4

1 回答 1

0

我不完全明白你到底想做什么。可能这可以帮助你。

导出脚本:

"#% impex.setLocale( new Locale( ""en"" , """" ) );"

 INSERT_UPDATE UGStudent;uid
 "#% impex.exportItems(""SELECT {pk} FROM {UGStudent}"", Collections.EMPTY_MAP, Collections.singletonList( Item.class ), true, true, -1, -1 );"

您可以在INSERT_UPDATE.

于 2017-08-15T19:03:57.000 回答