From 8883d90ba7d60a61590b715d1a3be9e3ae2adb2d Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期二, 29 十月 2024 13:32:34 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/main/resources/mapper/ClassesUserMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/ClassesUserMapper.xml b/src/main/resources/mapper/ClassesUserMapper.xml index d9a7f98..8230ef9 100644 --- a/src/main/resources/mapper/ClassesUserMapper.xml +++ b/src/main/resources/mapper/ClassesUserMapper.xml @@ -54,7 +54,7 @@ TU.status FROM t_classes_user TCU LEFT JOIN t_user TU ON TU.id = TCU.user_id and TU.deleted = 0 - WHERE TCU.deleted = 0 AND TCU.classes_id = #{query.classesId} + WHERE TCU.deleted = 0 AND TCU.classes_id = #{query.classesId} AND TCU.teacher = 0 <if test="query.studentName != null and query.studentName != ''">AND TU.real_name like concat('%', #{query.studentName}, '%') </if> @@ -71,7 +71,7 @@ t_classes_user TCU INNER JOIN t_user TU ON TU.id = TCU.user_id AND TCU.classes_id = #{classesId} WHERE - TCU.deleted = 0 + TCU.deleted = 0 AND TCU.teacher = 0 </select> <select id="getClassesByUserId" resultType="java.lang.Integer"> -- Gitblit v1.8.0