|
@@ -216,7 +216,7 @@
|
|
|
|
|
|
<!-- 分页查询 -->
|
|
|
<select id="queryPage" resultMap="Teacher" parameterType="map">
|
|
|
- SELECT t.id_,su.real_name_,su.lock_flag_,t.subject_id_,su.phone_,t.organ_id_ teacher_organ_id_,t.organ_id_,
|
|
|
+ SELECT t.id_,su.real_name_,su.lock_flag_,t.subject_id_,su.phone_,t.organ_id_ teacher_organ_id_,t.organ_id_,t.is_support_extra_practice_lesson_,
|
|
|
t.job_nature_,t.is_probation_period_,GROUP_CONCAT(s.name_) subject_name_,su.del_flag_
|
|
|
FROM teacher t LEFT JOIN sys_user su ON t.id_ = su.id_
|
|
|
LEFT JOIN `subject` s ON FIND_IN_SET(s.id_,t.subject_id_)
|
|
@@ -247,6 +247,9 @@
|
|
|
<if test="search != null">
|
|
|
AND (su.real_name_ LIKE CONCAT('%',#{search},'%') OR su.phone_ LIKE CONCAT('%',#{search},'%') OR t.id_ = #{search})
|
|
|
</if>
|
|
|
+ <if test="isSupportExtraPracticeLesson != null">
|
|
|
+ AND is_support_extra_practice_lesson_ = #{isSupportExtraPracticeLesson}
|
|
|
+ </if>
|
|
|
</sql>
|
|
|
|
|
|
<!-- 根据证件号查询老师 -->
|
|
@@ -622,6 +625,9 @@
|
|
|
<if test="isProbationPeriod != null">
|
|
|
AND t.is_probation_period_ = #{isProbationPeriod}
|
|
|
</if>
|
|
|
+ <if test="isSupportExtraPracticeLesson != null">
|
|
|
+ AND t.is_support_extra_practice_lesson_ = #{isSupportExtraPracticeLesson}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|