From f601a1947eb932bb46a99d0585adafaeba37938a Mon Sep 17 00:00:00 2001 From: xgc Date: Sat, 11 May 2024 14:02:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.cn.md | 6 ++++++ README.md | 6 ++++++ 2 files changed, 12 insertions(+) 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); } }