From 7351ad6176c2abd7076d1bbcb3d21ea2b35e3d2e Mon Sep 17 00:00:00 2001 From: baizonghao <1719256278@qq.com> Date: 星期四, 15 六月 2023 11:56:46 +0800 Subject: [PATCH] 接口拦截 --- src/main/resources/mapper/SubjectMapper.xml | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/SubjectMapper.xml b/src/main/resources/mapper/SubjectMapper.xml index 49e236b..2d12715 100644 --- a/src/main/resources/mapper/SubjectMapper.xml +++ b/src/main/resources/mapper/SubjectMapper.xml @@ -144,4 +144,16 @@ where name = #{name} </select> + <select id="getNames" resultMap="BaseResultMap"> + SELECT + <include refid="Base_Column_List"/> + FROM t_subject + where name in + <foreach item="name" collection="names" open="(" separator="," + close=")"> + #{name} + </foreach> + + </select> + </mapper> -- Gitblit v1.8.0