From b83df5a43c563bac919dee41d3a8b794f22f1030 Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期五, 13 十二月 2024 19:20:45 +0800 Subject: [PATCH] zjh202412013 --- 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