一 代码如下
public Set<String> preparePropertys() {
Set<String> e = super.preparePropertys();
MainEntityType mainType = EntityMetadataCache.getDataEntityType("sm_salepricelist");
DataEntityPropertyCollection properties = mainType.getProperties();
for (IDataEntityProperty property : properties) {
if (property instanceof EntryProp) {
String entryName1 = property.getName();
if (StringUtils.isNotBlank("customerentryentity")) {
if ("customerentryentity".equals(entryName1)) {
DataEntityPropertyCollection entryProperties = ((EntryProp) property)._collectionItemPropertyType.getProperties();
for (IDataEntityProperty entryProperty : entryProperties) {
String fileName = entryProperty.getName();
e.add("customerentryentity." + fileName);
}
}
}
if (StringUtils.isNotBlank("priceentryentity")) {
if ("priceentryentity".equals(entryName1)) {
DataEntityPropertyCollection entryProperties = ((EntryProp) property)._collectionItemPropertyType.getProperties();
for (IDataEntityProperty entryProperty : entryProperties) {
String fileName = entryProperty.getName();
e.add("priceentryentity." + fileName);
}
}
}
}
}
DataEntityPropertyCollection propertiesTwo = mainType.getProperties();
for (IDataEntityProperty property : propertiesTwo) {
String name = property.getName();
e.add(name);
}
return e;
}