|
@@ -18,6 +18,7 @@
|
|
<result column="work_unit_" property="workUnit"/>
|
|
<result column="work_unit_" property="workUnit"/>
|
|
<result column="subject_id_" property="subjectId"/>
|
|
<result column="subject_id_" property="subjectId"/>
|
|
<result column="entry_date_" property="entryDate"/>
|
|
<result column="entry_date_" property="entryDate"/>
|
|
|
|
+ <result column="demission_date_" property="demissionDate"/>
|
|
<result column="certificate_type_" property="certificateType"/>
|
|
<result column="certificate_type_" property="certificateType"/>
|
|
<result column="certificate_num_" property="certificateNum"/>
|
|
<result column="certificate_num_" property="certificateNum"/>
|
|
<result column="flow_organ_range_" property="flowOrganRange"/>
|
|
<result column="flow_organ_range_" property="flowOrganRange"/>
|
|
@@ -45,8 +46,8 @@
|
|
</selectKey>
|
|
</selectKey>
|
|
-->
|
|
-->
|
|
INSERT INTO teacher
|
|
INSERT INTO teacher
|
|
- (user_id_,organ_id_,job_type_,job_nature_,is_probation_period_,education_background_,graduate_school_,technical_titles_,work_unit_,subject_id_,entry_date_,certificate_type_,certificate_num_,flow_organ_range_,introduction_,update_time_,create_time_)
|
|
|
|
- VALUES(#{userId},#{organId},#{jobType},#{jobNature},#{isProbationPeriod,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{educationBackground},#{graduateSchool},#{technicalTitles},#{workUnit},#{subjectId},#{entryDate},#{certificateType},#{certificateNum},#{flowOrganRange},#{introduction},now(),now())
|
|
|
|
|
|
+ (user_id_,organ_id_,job_type_,job_nature_,is_probation_period_,education_background_,graduate_school_,technical_titles_,work_unit_,subject_id_,entry_date_,demission_date_,certificate_type_,certificate_num_,flow_organ_range_,introduction_,update_time_,create_time_)
|
|
|
|
+ VALUES(#{userId},#{organId},#{jobType},#{jobNature},#{isProbationPeriod,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{educationBackground},#{graduateSchool},#{technicalTitles},#{workUnit},#{subjectId},#{entryDate},#{demissionDate},#{certificateType},#{certificateNum},#{flowOrganRange},#{introduction},now(),now())
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -68,6 +69,9 @@
|
|
<if test="entryDate != null">
|
|
<if test="entryDate != null">
|
|
entry_date_ = #{entryDate},
|
|
entry_date_ = #{entryDate},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="demissionDate != null">
|
|
|
|
+ demission_date_ = #{demissionDate},
|
|
|
|
+ </if>
|
|
<if test="jobType != null">
|
|
<if test="jobType != null">
|
|
job_type_ = #{jobType},
|
|
job_type_ = #{jobType},
|
|
</if>
|
|
</if>
|