diff --git a/README.cn.md b/README.cn.md index eccbb53..4d9b600 100644 --- a/README.cn.md +++ b/README.cn.md @@ -145,6 +145,12 @@ public class ApplicationRunnerTest implements ApplicationRunner { .update(face); face.setPersonId(1l); MilvusResp update2 = mapper.updateById(face); + + //新增 + MilvusResp insert = mapper.insertWrapper() + .put(Face::getFaceVector, vector) + .insert(); + MilvusResp insert2 = mapper.insert(face); } } ``` diff --git a/README.md b/README.md index aadc67a..e9681fd 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,12 @@ public class ApplicationRunnerTest implements ApplicationRunner { .update(face); face.setPersonId(1l); MilvusResp update2 = mapper.updateById(face); + + //新增 + MilvusResp insert = mapper.insertWrapper() + .put(Face::getFaceVector, vector) + .insert(); + MilvusResp insert2 = mapper.insert(face); } }