|
|
@@ -395,4 +395,54 @@
|
|
|
member_id = #{1}
|
|
|
WHERE user_id = #{0}
|
|
|
</update>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="findCmPositionTrackAPI" resultType="CmPositionTrackAPI" >
|
|
|
+ SELECT
|
|
|
+ a.id AS "id",
|
|
|
+ a.apply_position_id AS "applyPositionId",
|
|
|
+ a.apply_company_name as "applyCompanyName",
|
|
|
+ a.apply_position_name as "applyPositionName",
|
|
|
+ a.interview_time AS "interviewTime",
|
|
|
+ a.inteview_address AS "inteviewAddress",
|
|
|
+ a.interview_contact_person as "interviewContactPerson",
|
|
|
+ a.interview_contact_phone as "interviewContactPhone",
|
|
|
+ a.interview_invite_time as "interviewInviteTime",
|
|
|
+ a.member_id as "hpMember.id"
|
|
|
+ FROM cm_position_track a
|
|
|
+ WHERE a.apply_position_id = #{0}
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <update id="updateCmPositionTrackAPI" parameterType="CmPositionTrackAPI" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ UPDATE cm_position_track
|
|
|
+ <trim prefix="set" suffixOverrides=",">
|
|
|
+ <if test="memberId != null">member_id = #{memberId},</if>
|
|
|
+ <if test="positionId != null">position_id = #{positionId},</if>
|
|
|
+ <if test="positionCategory != null">position_category = #{positionCategory},</if>
|
|
|
+ <if test="applyTime != null">apply_time = #{applyTime},</if>
|
|
|
+ <if test="status != null">status = #{status},</if>
|
|
|
+ <if test="improperReason != null">improper_reason = #{improperReason},</if>
|
|
|
+ <if test="inteviewIdcardNumber != null">inteview_idcard_number = #{inteviewIdcardNumber},</if>
|
|
|
+ <if test="interviewTime != null">interview_time = #{interviewTime},</if>
|
|
|
+ <if test="inteviewAddress != null">inteview_address = #{inteviewAddress},</if>
|
|
|
+ <if test="interviewFromType != null">interview_from_type = #{interviewFromType},</if>
|
|
|
+ <if test="hasCashback != null">has_cashback = #{hasCashback},</if>
|
|
|
+ <if test="priceDetail != null">price_detail = #{priceDetail},</if>
|
|
|
+ <if test="cashbackFee != null">cashback_fee = #{cashbackFee},</if>
|
|
|
+ <if test="onboardingDate != null">onboarding_date = #{onboardingDate},</if>
|
|
|
+ <if test="noOnboardingReason != null">no_onboarding_reason = #{noOnboardingReason},</if>
|
|
|
+ <if test="outgoingDate != null">outgoing_date = #{outgoingDate},</if>
|
|
|
+ <if test="updateBy.id != null">update_by = #{updateBy.id},</if>
|
|
|
+ <if test="updateDate != null">update_date = #{updateDate},</if>
|
|
|
+ <if test="applyCompanyName != null">apply_company_name = #{applyCompanyName},</if>
|
|
|
+ <if test="applyPositionName != null">apply_position_name = #{applyPositionName},</if>
|
|
|
+ <if test="interviewContactPerson != null">interview_contact_person = #{interviewContactPerson},</if>
|
|
|
+ <if test="interviewContactPhone != null">interview_contact_phone = #{interviewContactPhone},</if>
|
|
|
+ <if test="applyPositionId != null">apply_position_id = #{applyPositionId},</if>
|
|
|
+ <if test="interviewInviteTime != null">interview_invite_time = #{interviewInviteTime}</if>
|
|
|
+ </trim>
|
|
|
+ WHERE id = #{id}
|
|
|
+ </update>
|
|
|
</mapper>
|