mirror of
https://github.com/OpenSPG/openspg.git
synced 2025-12-27 23:24:52 +00:00
bugfix
This commit is contained in:
parent
13eb346384
commit
34b8b72e2e
@ -40,14 +40,6 @@ public abstract class BaseSPGRecord extends BaseRecord implements WithSPGTypeEnu
|
||||
return rawPropertyValueMap;
|
||||
}
|
||||
|
||||
public Map<String, Object> getStdPropertyValueMap() {
|
||||
Map<String, Object> stdPropertyValueMap = new HashMap<>(getProperties().size());
|
||||
for (BasePropertyRecord propertyRecord : getProperties()) {
|
||||
stdPropertyValueMap.put(propertyRecord.getName(), propertyRecord.getValue().getStds());
|
||||
}
|
||||
return stdPropertyValueMap;
|
||||
}
|
||||
|
||||
public Map<String, String> getStdStrPropertyValueMap() {
|
||||
Map<String, String> stdStrPropertyValueMap = new HashMap<>(getProperties().size());
|
||||
for (BasePropertyRecord propertyRecord : getProperties()) {
|
||||
|
||||
@ -22,7 +22,9 @@ import com.antgroup.openspg.cloudext.interfaces.searchengine.model.idx.record.Id
|
||||
import com.google.common.collect.Lists;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||
public class SPGRecord2IdxServiceImpl implements SPGRecord2IdxService {
|
||||
|
||||
@Override
|
||||
@ -36,6 +38,9 @@ public class SPGRecord2IdxServiceImpl implements SPGRecord2IdxService {
|
||||
new IdxRecordAlterItem(
|
||||
item.getAlterOp(),
|
||||
new IdxRecord(
|
||||
spgRecord.getName(), spgRecord.getId(), 0.0, spgRecord.getStdPropertyValueMap())));
|
||||
spgRecord.getName(),
|
||||
spgRecord.getId(),
|
||||
0.0,
|
||||
(Map) spgRecord.getStdStrPropertyValueMap())));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user