From 335084ec750d2c9cc3621119a40c6042805ca1b0 Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期二, 12 十二月 2023 17:17:53 +0800 Subject: [PATCH] zjh 2023/12/12--3 --- ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjAdviceMapper.java | 4 ++-- 1 files changed, 2 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..8f942e5 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,11 +72,11 @@ "#{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>", -- Gitblit v1.8.0