|  | @@ -36,6 +36,9 @@
 | 
											
												
													
														|  |          <result column="create_time_" property="createTime"/>
 |  |          <result column="create_time_" property="createTime"/>
 | 
											
												
													
														|  |          <result column="memo_" property="memo"/>
 |  |          <result column="memo_" property="memo"/>
 | 
											
												
													
														|  |          <result column="lecture_num_" property="lectureNum"/>
 |  |          <result column="lecture_num_" property="lectureNum"/>
 | 
											
												
													
														|  | 
 |  | +        <result column="dept_id_" property="deptId"/>
 | 
											
												
													
														|  | 
 |  | +        <result column="dept_ids_" property="deptIds"/>
 | 
											
												
													
														|  | 
 |  | +        <result column="post_dept_ids_" property="postDeptIds"/>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          <result column="username_" property="username"/>
 |  |          <result column="username_" property="username"/>
 | 
											
												
													
														|  |          <result column="password_" property="password"/>
 |  |          <result column="password_" property="password"/>
 | 
											
										
											
												
													
														|  | @@ -115,7 +118,7 @@
 | 
											
												
													
														|  |      <!-- 根据主键查询一条记录 -->
 |  |      <!-- 根据主键查询一条记录 -->
 | 
											
												
													
														|  |      <select id="get" resultMap="Teacher">
 |  |      <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_,
 |  |          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.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.dept_id_,t.dept_ids_,t.post_dept_ids_,
 | 
											
												
													
														|  |          t.create_time_,t.introduction_,t.demission_date_,t.formal_staff_date_,t.is_support_course_schedule_rewards_rules_,t.is_support_extra_practice_lesson_,
 |  |          t.create_time_,t.introduction_,t.demission_date_,t.formal_staff_date_,t.is_support_course_schedule_rewards_rules_,t.is_support_extra_practice_lesson_,
 | 
											
												
													
														|  |          t.lecture_num_,t.idcard_front_img_,t.idcard_back_img_,t.idcard_hand_img_,t.memo_,
 |  |          t.lecture_num_,t.idcard_front_img_,t.idcard_back_img_,t.idcard_hand_img_,t.memo_,
 | 
											
												
													
														|  |          su.real_name_,su.id_card_no_,su.password_,su.salt_,su.phone_,su.avatar_,
 |  |          su.real_name_,su.id_card_no_,su.password_,su.salt_,su.phone_,su.avatar_,
 | 
											
										
											
												
													
														|  | @@ -142,8 +145,8 @@
 | 
											
												
													
														|  |      <insert id="insert" parameterType="com.ym.mec.biz.dal.entity.Teacher" useGeneratedKeys="true" keyColumn="id"
 |  |      <insert id="insert" parameterType="com.ym.mec.biz.dal.entity.Teacher" useGeneratedKeys="true" keyColumn="id"
 | 
											
												
													
														|  |              keyProperty="id">
 |  |              keyProperty="id">
 | 
											
												
													
														|  |          INSERT INTO teacher
 |  |          INSERT INTO teacher
 | 
											
												
													
														|  | -        (id_,organ_id_,job_type_,job_nature_,is_probation_period_,education_background_,graduate_school_,technical_titles_,work_unit_,subject_id_,entry_date_,demission_date_,formal_staff_date_,certificate_type_,certificate_num_,flow_organ_range_,introduction_,update_time_,create_time_,is_support_course_schedule_rewards_rules_,idcard_front_img_,idcard_back_img_,idcard_hand_img_,memo_,is_settlement_salary_,tenant_id_)
 |  | 
 | 
											
												
													
														|  | -        VALUES(#{id},#{organId},#{jobType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{jobNature},#{isProbationPeriod,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{educationBackground},#{graduateSchool},#{technicalTitles},#{workUnit},#{subjectId},#{entryDate},#{demissionDate},#{formalStaffDate},#{certificateType},#{certificateNum},#{flowOrganRange},#{introduction},now(),now(),#{isSupportCourseScheduleRewardsRules},#{idcardFrontImg},#{idcardBackImg},#{idcardHandImg},#{memo},#{isSettlementSalary},#{tenantId})
 |  | 
 | 
											
												
													
														|  | 
 |  | +        (id_,organ_id_,job_type_,job_nature_,is_probation_period_,education_background_,graduate_school_,technical_titles_,work_unit_,subject_id_,entry_date_,demission_date_,formal_staff_date_,certificate_type_,certificate_num_,flow_organ_range_,introduction_,update_time_,create_time_,is_support_course_schedule_rewards_rules_,idcard_front_img_,idcard_back_img_,idcard_hand_img_,memo_,is_settlement_salary_,tenant_id_,dept_id_,dept_ids_,post_dept_ids_)
 | 
											
												
													
														|  | 
 |  | +        VALUES(#{id},#{organId},#{jobType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{jobNature},#{isProbationPeriod,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{educationBackground},#{graduateSchool},#{technicalTitles},#{workUnit},#{subjectId},#{entryDate},#{demissionDate},#{formalStaffDate},#{certificateType},#{certificateNum},#{flowOrganRange},#{introduction},now(),now(),#{isSupportCourseScheduleRewardsRules},#{idcardFrontImg},#{idcardBackImg},#{idcardHandImg},#{memo},#{isSettlementSalary},#{tenantId},#{deptId},#{deptIds},#{postDeptIds})
 | 
											
												
													
														|  |      </insert>
 |  |      </insert>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      <insert id="addSysUser" parameterType="com.ym.mec.auth.api.entity.SysUser" useGeneratedKeys="true" keyColumn="id"
 |  |      <insert id="addSysUser" parameterType="com.ym.mec.auth.api.entity.SysUser" useGeneratedKeys="true" keyColumn="id"
 | 
											
										
											
												
													
														|  | @@ -225,6 +228,15 @@
 | 
											
												
													
														|  |              <if test="isSettlementSalary != null">
 |  |              <if test="isSettlementSalary != null">
 | 
											
												
													
														|  |                  is_settlement_salary_ = #{isSettlementSalary},
 |  |                  is_settlement_salary_ = #{isSettlementSalary},
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="deptId != null">
 | 
											
												
													
														|  | 
 |  | +                dept_id_ = #{deptId},
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="deptIds != null">
 | 
											
												
													
														|  | 
 |  | +                dept_ids_ = #{deptIds},
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="postDeptIds != null">
 | 
											
												
													
														|  | 
 |  | +                post_dept_ids_ = #{postDeptIds},
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  |          </set>
 |  |          </set>
 | 
											
												
													
														|  |          WHERE id_ = #{id} and tenant_id_ = #{tenantId}
 |  |          WHERE id_ = #{id} and tenant_id_ = #{tenantId}
 | 
											
												
													
														|  |      </update>
 |  |      </update>
 | 
											
										
											
												
													
														|  | @@ -302,6 +314,15 @@
 | 
											
												
													
														|  |              <if test="isSettlementSalary != null">
 |  |              <if test="isSettlementSalary != null">
 | 
											
												
													
														|  |                  is_settlement_salary_ = #{isSettlementSalary},
 |  |                  is_settlement_salary_ = #{isSettlementSalary},
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="deptId != null">
 | 
											
												
													
														|  | 
 |  | +                dept_id_ = #{deptId},
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="deptIds != null">
 | 
											
												
													
														|  | 
 |  | +                dept_ids_ = #{deptIds},
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="postDeptIds != null">
 | 
											
												
													
														|  | 
 |  | +                post_dept_ids_ = #{postDeptIds},
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  |          </set>
 |  |          </set>
 | 
											
												
													
														|  |          WHERE id_ = #{id} and tenant_id_ = #{tenantId}
 |  |          WHERE id_ = #{id} and tenant_id_ = #{tenantId}
 | 
											
												
													
														|  |      </update>
 |  |      </update>
 | 
											
										
											
												
													
														|  | @@ -375,7 +396,7 @@
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      <!-- 分页查询 -->
 |  |      <!-- 分页查询 -->
 | 
											
												
													
														|  |      <select id="queryPage" resultMap="Teacher" parameterType="map">
 |  |      <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_,t.is_support_extra_practice_lesson_,
 |  | 
 | 
											
												
													
														|  | 
 |  | +        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.dept_id_,t.dept_ids_,t.post_dept_ids_,
 | 
											
												
													
														|  |          t.job_nature_,t.demission_date_,t.formal_staff_date_,t.is_probation_period_,t.memo_,GROUP_CONCAT(s.name_) subject_name_,su.del_flag_,t.is_settlement_salary_,tc.url_ contract_url_
 |  |          t.job_nature_,t.demission_date_,t.formal_staff_date_,t.is_probation_period_,t.memo_,GROUP_CONCAT(s.name_) subject_name_,su.del_flag_,t.is_settlement_salary_,tc.url_ contract_url_
 | 
											
												
													
														|  |          FROM teacher t
 |  |          FROM teacher t
 | 
											
												
													
														|  |          LEFT JOIN sys_user su ON t.id_ = su.id_
 |  |          LEFT JOIN sys_user su ON t.id_ = su.id_
 | 
											
										
											
												
													
														|  | @@ -528,7 +549,8 @@
 | 
											
												
													
														|  |              su.username_ nickName,
 |  |              su.username_ nickName,
 | 
											
												
													
														|  |              su.real_name_ userName,
 |  |              su.real_name_ userName,
 | 
											
												
													
														|  |              su.gender_ gender,
 |  |              su.gender_ gender,
 | 
											
												
													
														|  | -            su.phone_ phone
 |  | 
 | 
											
												
													
														|  | 
 |  | +            su.phone_ phone,
 | 
											
												
													
														|  | 
 |  | +            su.avatar_ avatar
 | 
											
												
													
														|  |          FROM sys_user su
 |  |          FROM sys_user su
 | 
											
												
													
														|  |          <where>
 |  |          <where>
 | 
											
												
													
														|  |                  su.id_ IN
 |  |                  su.id_ IN
 |