luohairen
2024-11-14 247cb86585a1d1894596ed18a6c93efecb992946
src/main/resources/mapper/UserMapper.xml
@@ -100,8 +100,8 @@
        FROM t_user
        <where>
            and deleted=0
            <if test="userName != null and userName != ''">
                and user_name like concat('%',#{userName},'%')
            <if test="realName != null and realName != ''">
                and real_name like concat('%',#{realName},'%')
            </if>
            <if test="role != null ">
                and role= #{role}
@@ -204,9 +204,9 @@
               tu.real_name,
               tu.phone
        FROM t_user tu
                 INNER JOIN t_classes_user tcu ON tu.id = tcu.user_id
                 INNER JOIN t_classes_user tcu ON tu.id = tcu.user_id AND tcu.teacher = 0
        WHERE tcu.classes_id = #{classesId}
        and tcu.deleted = 0
        AND tcu.deleted = 0 AND tu.deleted = 0
        ORDER BY tcu.create_time
    </select>