From 52c8ee3120e4a44e48e217bced6f6c799ff7980c Mon Sep 17 00:00:00 2001
From: shikeying <shikeying@163.com>
Date: 星期日, 07 四月 2024 17:20:16 +0800
Subject: [PATCH] 添加milvus代码示例2

---
 deploy-jar-template/src/main/java/com/iplatform/milvus/service/EventServiceImpl.java |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/deploy-jar-template/src/main/java/com/iplatform/milvus/service/EventServiceImpl.java b/deploy-jar-template/src/main/java/com/iplatform/milvus/service/EventServiceImpl.java
index eb347ce..73a2ad1 100644
--- a/deploy-jar-template/src/main/java/com/iplatform/milvus/service/EventServiceImpl.java
+++ b/deploy-jar-template/src/main/java/com/iplatform/milvus/service/EventServiceImpl.java
@@ -3,17 +3,32 @@
 import com.iplatform.milvus.EventVo;
 import com.walker.jdbc.service.BaseServiceImpl;
 import org.springframework.jdbc.core.RowMapper;
+import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
 import org.springframework.stereotype.Service;
 
 import java.sql.ResultSet;
 import java.sql.SQLException;
+import java.util.HashMap;
 import java.util.List;
+import java.util.Map;
 
 @Service
 public class EventServiceImpl extends BaseServiceImpl {
 
     private final EventVoMapper eventVoMapper = new EventVoMapper();
 
+    /**
+     * 鏍规嵁宸ュ崟id闆嗗悎锛岃繑鍥炶繖浜涘伐鍗曞璞★紙鍘嗗彶宸ュ崟鍩烘湰淇℃伅锛�
+     * @param ids
+     * @return
+     * @date 2024-03-31
+     */
+    public List<EventVo> queryEventWhereIn(List<Long> ids){
+        MapSqlParameterSource parameterSource = new MapSqlParameterSource();
+        parameterSource.addValue("ids", ids);
+        return this.sqlListObjectWhereIn("select * from event_history where id in (:ids)", eventVoMapper, parameterSource);
+    }
+
     public List<EventVo> queryEventAll(Long existId){
         if(existId == null){
             return this.select("select * from event_history order by id asc", new Object[]{}, this.eventVoMapper);

--
Gitblit v1.9.1