|
@@ -29,6 +29,8 @@
|
|
<result column="bank_address_" property="bankAddress" />
|
|
<result column="bank_address_" property="bankAddress" />
|
|
<result column="resignation_date_" property="resignationDate" />
|
|
<result column="resignation_date_" property="resignationDate" />
|
|
<result column="organ_id_" property="organId" />
|
|
<result column="organ_id_" property="organId" />
|
|
|
|
+ <result column="operator_id_" property="operatorId" />
|
|
|
|
+ <result column="source_from_" property="sourceFrom" />
|
|
<result column="create_time_" property="createTime" />
|
|
<result column="create_time_" property="createTime" />
|
|
<result column="update_time_" property="updateTime" />
|
|
<result column="update_time_" property="updateTime" />
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -51,8 +53,8 @@
|
|
<!-- <selectKey resultClass="int" keyProperty="id" > SELECT SEQ_WSDEFINITION_ID.nextval
|
|
<!-- <selectKey resultClass="int" keyProperty="id" > SELECT SEQ_WSDEFINITION_ID.nextval
|
|
AS ID FROM DUAL </selectKey> -->
|
|
AS ID FROM DUAL </selectKey> -->
|
|
INSERT INTO employee_info
|
|
INSERT INTO employee_info
|
|
- (id_,real_name_,mobile_no_,wechat_no_,id_card_,age_,gender_,birthdate_,emergency_contact_name_,emergency_contact_relation_,emergency_contact_phone_,live_city_,intention_city_,educational_background_,subject_id_,is_interviewed_,other_comment_,entry_date_,organ_id_,position_,job_nature_,is_probation_period_,bank_card_no_,bank_address_,resignation_date_,create_time_,update_time_)
|
|
|
|
- VALUES(#{id},#{realName},#{mobileNo},#{wechatNo},#{idCard},#{age},#{gender},#{birthdate},#{emergencyContactName},#{emergencyContactRelation},#{emergencyContactPhone},#{liveCity},#{intentionCity},#{educationalBackground},#{subjectId},#{isInterviewed},#{otherComment},#{entryDate},#{organId},#{position,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{jobNature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{isProbationPeriod},#{bankCardNo},#{bankAddress},#{resignationDate},#{createTime},#{updateTime})
|
|
|
|
|
|
+ (id_,real_name_,mobile_no_,wechat_no_,id_card_,age_,gender_,birthdate_,emergency_contact_name_,emergency_contact_relation_,emergency_contact_phone_,live_city_,intention_city_,educational_background_,subject_id_,is_interviewed_,other_comment_,entry_date_,organ_id_,position_,job_nature_,is_probation_period_,bank_card_no_,bank_address_,resignation_date_,operator_id_,source_from_,create_time_,update_time_)
|
|
|
|
+ VALUES(#{id},#{realName},#{mobileNo},#{wechatNo},#{idCard},#{age},#{gender},#{birthdate},#{emergencyContactName},#{emergencyContactRelation},#{emergencyContactPhone},#{liveCity},#{intentionCity},#{educationalBackground},#{subjectId},#{isInterviewed},#{otherComment},#{entryDate},#{organId},#{position,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{jobNature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{isProbationPeriod},#{bankCardNo},#{bankAddress},#{resignationDate},#{operatorId},#{sourceFrom},#{createTime},#{updateTime})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -140,6 +142,12 @@
|
|
<if test="organId != null">
|
|
<if test="organId != null">
|
|
organ_id_ = #{organId},
|
|
organ_id_ = #{organId},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="operatorId != null">
|
|
|
|
+ operator_id_ = #{operatorId},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sourceFrom != null">
|
|
|
|
+ source_from_ = #{sourceFrom},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
WHERE id_ = #{id}
|
|
WHERE id_ = #{id}
|
|
</update>
|
|
</update>
|
|
@@ -160,6 +168,9 @@
|
|
<if test="subjectId != null">
|
|
<if test="subjectId != null">
|
|
AND subject_id_ = #{subjectId}
|
|
AND subject_id_ = #{subjectId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="sourceFrom != null">
|
|
|
|
+ AND source_from_ = #{sourceFrom}
|
|
|
|
+ </if>
|
|
<if test="position != null">
|
|
<if test="position != null">
|
|
AND position_ = #{position,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
AND position_ = #{position,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
</if>
|
|
</if>
|