yonge 5 jaren geleden
bovenliggende
commit
5eeb88e6e3

+ 11 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/page/TeacherQueryInfo.java

@@ -24,6 +24,9 @@ public class TeacherQueryInfo extends QueryInfo {
 
     @ApiModelProperty(value = "账号状态")
     private String lockFlag;
+    
+    @ApiModelProperty(value = "是否支持额外陪练课授课")
+    private Boolean isSupportExtraPracticeLesson;
 
     public List<Integer> getTeacherId() {
         return teacherId;
@@ -72,4 +75,12 @@ public class TeacherQueryInfo extends QueryInfo {
     public void setLockFlag(String lockFlag) {
         this.lockFlag = lockFlag;
     }
+
+	public Boolean getIsSupportExtraPracticeLesson() {
+		return isSupportExtraPracticeLesson;
+	}
+
+	public void setIsSupportExtraPracticeLesson(Boolean isSupportExtraPracticeLesson) {
+		this.isSupportExtraPracticeLesson = isSupportExtraPracticeLesson;
+	}
 }

+ 7 - 1
mec-biz/src/main/resources/config/mybatis/TeacherMapper.xml

@@ -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>