From 02b4c9fd4c5ff7c77553fd4bf0f07d4b21ae8f09 Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期五, 21 三月 2025 17:29:16 +0800 Subject: [PATCH] 项目拼接修改 --- ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjSamplingMapper.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjSamplingMapper.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjSamplingMapper.java index 58f8184..4c86c63 100644 --- a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjSamplingMapper.java +++ b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjSamplingMapper.java @@ -65,7 +65,7 @@ public int deleteTjSamplingByIds(String[] ids); - @Select({"<script>","SELECT GROUP_CONCAT(a.pro_id SEPARATOR ',')proId,GROUP_CONCAT(a.pro_name SEPARATOR ' + ') proName FROM tj_sampling a WHERE a.deleted=0 AND a.id " + + @Select({"<script>","SELECT GROUP_CONCAT(a.pro_id SEPARATOR ',')proId,GROUP_CONCAT(a.pro_name SEPARATOR ';') proName FROM tj_sampling a WHERE a.deleted=0 AND a.id " + "IN ","<foreach collection='ids' item='id' open='(' separator=',' close=')'>", "#{id}", "</foreach>", @@ -74,7 +74,7 @@ @Select({"<script>","SELECT COUNT(*) FROM(" + - "SELECT GROUP_CONCAT(a.pro_id SEPARATOR ',')proId,GROUP_CONCAT(a.pro_name SEPARATOR ' + ') proName FROM tj_sampling a WHERE a.deleted=0 AND a.id " + + "SELECT GROUP_CONCAT(a.pro_id SEPARATOR ',')proId,GROUP_CONCAT(a.pro_name SEPARATOR ';') proName FROM tj_sampling a WHERE a.deleted=0 AND a.id " + "IN ","<foreach collection='ids' item='id' open='(' separator=',' close=')'>", "#{id}", "</foreach>", "GROUP BY a.specimen_type_code) aa" + -- Gitblit v1.8.0