From 73a816fd2b1e29c25d615c85ce34b12b55c16ccf Mon Sep 17 00:00:00 2001
From: zjh <1084500556@qq.com>
Date: 星期一, 20 一月 2025 13:41:45 +0800
Subject: [PATCH] zjh20250120

---
 ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjAdviceMapper.java |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjAdviceMapper.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjAdviceMapper.java
index e0666cb..2be2b4d 100644
--- a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjAdviceMapper.java
+++ b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjAdviceMapper.java
@@ -5,6 +5,8 @@
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.ltkj.hosp.domain.TjAdvice;
 import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
 
 /**
  * adviceMapper鎺ュ彛
@@ -62,4 +64,27 @@
      * @return 缁撴灉
      */
     public int deleteTjAdviceByIds(Long[] ids);
+
+
+
+    @Select({"<script>", "select GROUP_CONCAT(a.title  Separator ';') from tj_advice a where a.id in",
+            "<foreach collection='aList' item='id' open='(' separator=',' close=')'>",
+            "#{id}",
+            "</foreach>",
+            "</script>" })
+    public String getAdviceStringByIdss(@Param("aList") String[] aList);
+
+
+
+    @Select({"<script>", "select * from tj_advice a where a.id in",
+            "<foreach collection='aList' item='id' open='(' separator=',' close=')'>",
+            "#{id}",
+            "</foreach>",
+            "</script>" })
+    List<TjAdvice> getAdviceStringByIds(@Param("aList") String[] aList);
+
+    List<TjAdvice> selectList(@Param("proName") String proName,@Param("deptId") String deptId,@Param("page") int i,@Param("pageSize") Integer pageSize
+            ,@Param("bt")String bt,@Param("nr")String nr);
+    Integer selectListCount(@Param("proName") String proName,@Param("deptId") String deptId
+            ,@Param("bt")String bt,@Param("nr")String nr);
 }

--
Gitblit v1.8.0