diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java index f83fb3b..e73e162 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java @@ -167,8 +167,8 @@ public class WeaviateService { // 将entity转换为Map JSONObject jsonObject = JSONObject.parseObject(JSON.toJSONString(entity, SerializerFeature.WriteMapNullValue)); Map map = new HashMap<>(); - data.add(this.getVectorData(map,attrsMap)); jsonObject.forEach((k,v) -> map.put(k,jsonObject.get(k))); + data.add(this.getVectorData(map,attrsMap)); }); params.put("data",data); String url = gglmUrl + invokeApi.getInsertVectors();