|
@@ -139,6 +139,9 @@
|
|
WHERE
|
|
WHERE
|
|
sees.monday_ >= #{monday}
|
|
sees.monday_ >= #{monday}
|
|
AND sees.sunday_ <= #{sunday}
|
|
AND sees.sunday_ <= #{sunday}
|
|
|
|
+ <if test="teacherId!=null">
|
|
|
|
+ AND sees.teacher_id_ = #{teacherId}
|
|
|
|
+ </if>
|
|
<if test="search!=null">
|
|
<if test="search!=null">
|
|
AND (stu.id_=#{search} OR stu.username_ LIKE CONCAT('%', #{search}, '%') OR tea.real_name_ LIKE CONCAT('%', #{search}, '%'))
|
|
AND (stu.id_=#{search} OR stu.username_ LIKE CONCAT('%', #{search}, '%') OR tea.real_name_ LIKE CONCAT('%', #{search}, '%'))
|
|
</if>
|
|
</if>
|
|
@@ -190,6 +193,9 @@
|
|
WHERE
|
|
WHERE
|
|
sees.monday_ >= #{monday}
|
|
sees.monday_ >= #{monday}
|
|
AND sees.sunday_ <= #{sunday}
|
|
AND sees.sunday_ <= #{sunday}
|
|
|
|
+ <if test="teacherId!=null">
|
|
|
|
+ AND sees.teacher_id_ = #{teacherId}
|
|
|
|
+ </if>
|
|
<if test="search!=null">
|
|
<if test="search!=null">
|
|
AND (stu.id_=#{search} OR stu.username_ LIKE CONCAT('%', #{search}, '%') OR tea.real_name_ LIKE CONCAT('%', #{search}, '%'))
|
|
AND (stu.id_=#{search} OR stu.username_ LIKE CONCAT('%', #{search}, '%') OR tea.real_name_ LIKE CONCAT('%', #{search}, '%'))
|
|
</if>
|
|
</if>
|