|
@@ -19,8 +19,8 @@
|
|
|
t.teacher_id_ as userId,
|
|
|
count(1) as fansNum
|
|
|
from student_star t
|
|
|
- left join sys_user us on t.teacher_id_ = us.id_
|
|
|
- left join sys_user ut on t.student_id_ = ut.id_
|
|
|
+<!-- left join sys_user us on t.teacher_id_ = us.id_-->
|
|
|
+<!-- left join sys_user ut on t.student_id_ = ut.id_-->
|
|
|
<!-- where us.del_flag_ = 0 and ut.del_flag_ = 0-->
|
|
|
group by t.teacher_id_
|
|
|
</select>
|
|
@@ -30,8 +30,8 @@
|
|
|
t.student_id_ as userId,
|
|
|
count(1) as starTeacherNum
|
|
|
from student_star t
|
|
|
- left join sys_user us on t.teacher_id_ = us.id_
|
|
|
- left join sys_user ut on t.student_id_ = ut.id_
|
|
|
+<!-- left join sys_user us on t.teacher_id_ = us.id_-->
|
|
|
+<!-- left join sys_user ut on t.student_id_ = ut.id_-->
|
|
|
<!-- where us.del_flag_ = 0 and ut.del_flag_ = 0-->
|
|
|
group by t.student_id_
|
|
|
</select>
|
|
@@ -40,10 +40,10 @@
|
|
|
select
|
|
|
<include refid="baseColumns"/>
|
|
|
from student_star t
|
|
|
- left join sys_user us on t.teacher_id_ = us.id_
|
|
|
- left join sys_user ut on t.student_id_ = ut.id_
|
|
|
+<!-- left join sys_user us on t.teacher_id_ = us.id_-->
|
|
|
+<!-- left join sys_user ut on t.student_id_ = ut.id_-->
|
|
|
<!-- where us.del_flag_ = 0 and ut.del_flag_ = 0-->
|
|
|
- and t.student_id_ = #{studentId} and t.teacher_id_ = #{teacherId}
|
|
|
+ where t.student_id_ = #{studentId} and t.teacher_id_ = #{teacherId}
|
|
|
</select>
|
|
|
|
|
|
<select id="queryByStudentId" resultMap="BaseResultMap">
|