|
@@ -54,7 +54,7 @@
|
|
|
<select id="get" resultMap="Teacher">
|
|
|
SELECT t.id_,t.organ_id_ teacher_organ_id_,t.job_type_,t.job_nature_,t.is_probation_period_,t.education_background_,t.graduate_school_,t.graduate_school_,
|
|
|
t.technical_titles_,t.work_unit_,t.subject_id_,t.entry_date_,t.certificate_type_,t.certificate_num_,t.flow_organ_range_,t.update_time_,
|
|
|
- t.create_time_,t.introduction_,t.demission_date_,t.is_support_course_schedule_rewards_rules_,
|
|
|
+ t.create_time_,t.introduction_,t.demission_date_,t.is_support_course_schedule_rewards_rules_,t.is_support_extra_practice_lesson_,
|
|
|
su.real_name_,su.password_,su.salt_,su.phone_,su.avatar_,
|
|
|
su.lock_flag_,su.del_flag_,su.wx_openid_,su.qq_openid_,su.user_type_,
|
|
|
su.gender_,su.nation_,su.birthdate_,su.email_,su.im_token_,su.username_,su.organ_id_
|
|
@@ -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>
|
|
|
|
|
|
<!-- 根据证件号查询老师 -->
|
|
@@ -634,6 +637,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>
|
|
|
|
|
@@ -715,4 +721,37 @@
|
|
|
</foreach>
|
|
|
FOR UPDATE
|
|
|
</select>
|
|
|
+ <resultMap type="com.ym.mec.auth.api.entity.SysUser" id="SysUser">
|
|
|
+ <result column="id_" property="id"/>
|
|
|
+ <result column="username_" property="username"/>
|
|
|
+ <result column="real_name_" property="realName"/>
|
|
|
+ <result column="password_" property="password"/>
|
|
|
+ <result column="salt_" property="salt"/>
|
|
|
+ <result column="phone_" property="phone"/>
|
|
|
+ <result column="avatar_" property="avatar"/>
|
|
|
+ <result column="organ_id_" property="organId"/>
|
|
|
+ <result column="create_time_" property="createTime"/>
|
|
|
+ <result column="update_time_" property="updateTime"/>
|
|
|
+ <result column="lock_flag_" property="lockFlag"/>
|
|
|
+ <result column="del_flag_" property="delFlag" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
+ <result column="wx_openid_" property="wxOpenid"/>
|
|
|
+ <result column="qq_openid_" property="qqOpenid"/>
|
|
|
+ <result column="user_type_" property="userType"/>
|
|
|
+ <result column="gender_" property="gender"/>
|
|
|
+ <result column="nation_" property="nation"/>
|
|
|
+ <result column="birthdate_" property="birthdate"/>
|
|
|
+ <result column="email_" property="email"/>
|
|
|
+ <result column="im_token_" property="imToken"/>
|
|
|
+ <result column="id_card_no_" property="idCardNo"/>
|
|
|
+ <result column="wechat_id_" property="wechatId"/>
|
|
|
+ <result column="is_super_admin_" property="isSuperAdmin"/>
|
|
|
+ <result column="current_grade_" property="currentGrade"/>
|
|
|
+ <result column="current_class_" property="currentClass"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <select id="getUser" resultMap="SysUser">
|
|
|
+ SELECT su.*
|
|
|
+ FROM sys_user su
|
|
|
+ WHERE su.id_ = #{id} LIMIT 1
|
|
|
+ </select>
|
|
|
</mapper>
|