|
@@ -18,12 +18,12 @@
|
|
<result column="live_city_" property="liveCity" />
|
|
<result column="live_city_" property="liveCity" />
|
|
<result column="intention_city_" property="intentionCity" />
|
|
<result column="intention_city_" property="intentionCity" />
|
|
<result column="educational_background_" property="educationalBackground" />
|
|
<result column="educational_background_" property="educationalBackground" />
|
|
- <result column="subject_id_" property="subjectId" />
|
|
|
|
- <result column="is_interviewed_" property="isInterviewed" />
|
|
|
|
|
|
+ <result column="subject_id_list_" property="subjectIdList" />
|
|
|
|
+ <result column="assessment_result_" property="accessmentResult" />
|
|
<result column="other_comment_" property="otherComment" />
|
|
<result column="other_comment_" property="otherComment" />
|
|
<result column="entry_date_" property="entryDate" />
|
|
<result column="entry_date_" property="entryDate" />
|
|
<result column="position_" property="position" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler" />
|
|
<result column="position_" property="position" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler" />
|
|
- <result column="job_nature_" property="jobNature" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler" />
|
|
|
|
|
|
+ <result column="status_" property="status" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler" />
|
|
<result column="is_probation_period_" property="isProbationPeriod" />
|
|
<result column="is_probation_period_" property="isProbationPeriod" />
|
|
<result column="bank_card_no_" property="bankCardNo" />
|
|
<result column="bank_card_no_" property="bankCardNo" />
|
|
<result column="bank_address_" property="bankAddress" />
|
|
<result column="bank_address_" property="bankAddress" />
|
|
@@ -53,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_,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})
|
|
|
|
|
|
+ (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_list_,assessment_result_,other_comment_,entry_date_,organ_id_,position_,status_,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},#{subjectIdList},#{accessmentResult},#{otherComment},#{entryDate},#{organId},#{position,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{isProbationPeriod},#{bankCardNo},#{bankAddress},#{resignationDate},#{operatorId},#{sourceFrom},#{createTime},#{updateTime})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -64,8 +64,8 @@
|
|
<if test="isProbationPeriod != null">
|
|
<if test="isProbationPeriod != null">
|
|
is_probation_period_ = #{isProbationPeriod},
|
|
is_probation_period_ = #{isProbationPeriod},
|
|
</if>
|
|
</if>
|
|
- <if test="subjectId != null">
|
|
|
|
- subject_id_ = #{subjectId},
|
|
|
|
|
|
+ <if test="subjectIdList != null">
|
|
|
|
+ subject_id_list_ = #{subjectIdList},
|
|
</if>
|
|
</if>
|
|
<if test="gender != null">
|
|
<if test="gender != null">
|
|
gender_ = #{gender},
|
|
gender_ = #{gender},
|
|
@@ -76,8 +76,8 @@
|
|
<if test="otherComment != null">
|
|
<if test="otherComment != null">
|
|
other_comment_ = #{otherComment},
|
|
other_comment_ = #{otherComment},
|
|
</if>
|
|
</if>
|
|
- <if test="jobNature != null">
|
|
|
|
- job_nature_ = #{jobNature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
|
|
|
+ <if test="status != null">
|
|
|
|
+ status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
</if>
|
|
</if>
|
|
<if test="educationalBackground != null">
|
|
<if test="educationalBackground != null">
|
|
educational_background_ = #{educationalBackground},
|
|
educational_background_ = #{educationalBackground},
|
|
@@ -124,8 +124,8 @@
|
|
<if test="wechatNo != null">
|
|
<if test="wechatNo != null">
|
|
wechat_no_ = #{wechatNo},
|
|
wechat_no_ = #{wechatNo},
|
|
</if>
|
|
</if>
|
|
- <if test="isInterviewed != null">
|
|
|
|
- is_interviewed_ = #{isInterviewed},
|
|
|
|
|
|
+ <if test="accessmentResult != null">
|
|
|
|
+ assessment_result_ = #{accessmentResult},
|
|
</if>
|
|
</if>
|
|
<if test="mobileNo != null">
|
|
<if test="mobileNo != null">
|
|
mobile_no_ = #{mobileNo},
|
|
mobile_no_ = #{mobileNo},
|
|
@@ -166,7 +166,7 @@
|
|
AND (real_name_ LIKE CONCAT('%',#{userNameOrIdOrMobile},'%') OR mobile_no_ LIKE CONCAT('%',#{userNameOrIdOrMobile},'%') OR id_ = #{userNameOrIdOrMobile})
|
|
AND (real_name_ LIKE CONCAT('%',#{userNameOrIdOrMobile},'%') OR mobile_no_ LIKE CONCAT('%',#{userNameOrIdOrMobile},'%') OR id_ = #{userNameOrIdOrMobile})
|
|
</if>
|
|
</if>
|
|
<if test="subjectId != null">
|
|
<if test="subjectId != null">
|
|
- AND subject_id_ = #{subjectId}
|
|
|
|
|
|
+ AND find_in_set(#{subjectId},subject_id_list_)
|
|
</if>
|
|
</if>
|
|
<if test="sourceFrom != null">
|
|
<if test="sourceFrom != null">
|
|
AND source_from_ = #{sourceFrom}
|
|
AND source_from_ = #{sourceFrom}
|
|
@@ -174,8 +174,8 @@
|
|
<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>
|
|
- <if test="jobNature != null">
|
|
|
|
- AND job_nature_ = #{jobNature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
|
|
|
+ <if test="status != null">
|
|
|
|
+ AND status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|