更新mapper,统一queryWrapper,区分标量查询query,向量查询search

This commit is contained in:
xgc 2024-05-12 23:12:11 +08:00
parent 25f9174df8
commit 2f343be393

View File

@ -64,11 +64,11 @@ public class MilvusMapper<T> {
LambdaDeleteWrapper<T> lambda = deleteWrapper();
return lambda.removeById(ids);
}
public MilvusResp<UpsertResp> updateById(T ... entity){
public MilvusResp<UpsertResp> updateById(T entity){
LambdaUpdateWrapper<T> lambda = updateWrapper();
return lambda.updateById(entity);
}
public MilvusResp<InsertResp> insert(T ... entity){
public MilvusResp<InsertResp> insert(T entity){
LambdaInsertWrapper<T> lambda = insertWrapper();
return lambda.insert(entity);
}