From 8ee03ce807822e08ab7daebddf88f4cd79993fce Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期一, 16 十二月 2024 11:15:55 +0800 Subject: [PATCH] zjh202412016 --- ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjAdviceMapper.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 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 bd4f772..b998966 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 @@ -72,14 +72,17 @@ "#{id}", "</foreach>", "</script>" }) - public String getAdviceStringByIds(@Param("aList") List<String> aList); + public String getAdviceStringByIdss(@Param("aList") String[] aList); - @Select({"<script>", "select GROUP_CONCAT(a.title Separator ';') from tj_advice a where a.id in", + @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); + Integer selectListCount(@Param("proName") String proName,@Param("deptId") String deptId); } -- Gitblit v1.8.0