From 973022f0585dbada665543db56e64e1ce3816150 Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期四, 04 七月 2024 16:01:27 +0800
Subject: [PATCH] 添加测试品检接口

---
 pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
index d87f8ca..15c4e52 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
@@ -55,6 +55,23 @@
     select name from ba_user where id=#{id}
   </select>
 
+  <select id="selectByAssistants" resultMap="BaseResultMap">
+    SELECT
+    *
+    FROM
+    ba_user
+    WHERE
+    id IN (
+    SELECT
+    SUBSTRING_INDEX( SUBSTRING_INDEX( #{assistants,jdbcType=VARCHAR}, ',', help_topic_id + 1 ), ',',- 1 ) AS num
+    FROM
+    mysql.help_topic
+    WHERE
+    help_topic_id <![CDATA[ < ]]> LENGTH( #{assistants,jdbcType=VARCHAR} )- LENGTH(
+    REPLACE ( #{assistants,jdbcType=VARCHAR}, ',', '' ))+ 1
+    )
+  </select>
+
   <select id="selectCount" resultType="java.lang.Long">
     select
       count(*)

--
Gitblit v1.8.0