|
@@ -37,7 +37,7 @@
|
|
|
<result column="memo_" property="memo"/>
|
|
|
<result column="lecture_num_" property="lectureNum"/>
|
|
|
<result column="dept_id_" property="deptId"/>
|
|
|
- <result column="dept_ids_" property="depIds"/>
|
|
|
+ <result column="dept_ids_" property="deptIds"/>
|
|
|
<result column="post_dept_ids_" property="postDeptIds"/>
|
|
|
|
|
|
<result column="username_" property="username"/>
|
|
@@ -146,7 +146,7 @@
|
|
|
keyProperty="id">
|
|
|
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_,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},#{depIds},#{postDeptIds})
|
|
|
+ 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 id="addSysUser" parameterType="com.ym.mec.auth.api.entity.SysUser" useGeneratedKeys="true" keyColumn="id"
|
|
@@ -231,8 +231,8 @@
|
|
|
<if test="deptId != null">
|
|
|
dept_id_ = #{deptId},
|
|
|
</if>
|
|
|
- <if test="depIds != null">
|
|
|
- dept_ids_ = #{depIds},
|
|
|
+ <if test="deptIds != null">
|
|
|
+ dept_ids_ = #{deptIds},
|
|
|
</if>
|
|
|
<if test="postDeptIds != null">
|
|
|
post_dept_ids_ = #{postDeptIds},
|