面试流程逻辑修改-全流程测试

This commit is contained in:
俞扬
2023-06-24 22:18:59 +08:00
parent d72f99348d
commit 10aceade69
25 changed files with 445 additions and 194 deletions

View File

@@ -190,7 +190,70 @@
</set>
where id = #{record.id}
</update>
<update id="batchDeleteInterviewPlans">
update hy_partner_interview_plan
set deleted = 1
where id in
<foreach collection="interviewPlanIds" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</update>
<update id="updateInterviewRoomStatus">
update hy_partner_interview_plan
set room_status = #{roomStatus},update_time = now()
<where>
<if test="record.roomStatus !=null and record.roomStatus!=''">
and hpip.room_status = #{record.roomStatus}
</if>
<if test="record.startTime !=null and record.startTime!=''">
and hpip.start_time &gt;= #{record.startTime}
</if>
<if test="record.endTime !=null and record.endTime!=''">
and hpip.end_time &lt;= #{record.endTime}
</if>
<if test="record.deleted !=null and record.deleted!=''">
and hpip.deleted = #{deleted}
</if>
</where>
</update>
<update id="openInterviewRoom">
update hy_partner_interview_plan
set room_status = #{roomStatus},update_time = now()
<where>
<if test="record.roomStatus !=null and record.roomStatus!=''">
and hpip.room_status = #{record.roomStatus}
</if>
<if test="record.startTime !=null and record.startTime!=''">
and hpip.start_time &gt;= #{record.startTime}
</if>
<if test="record.endTime !=null and record.endTime!=''">
and hpip.start_time &lt;= #{record.endTime}
</if>
<if test="record.deleted !=null and record.deleted!=''">
and hpip.deleted = #{deleted}
</if>
</where>
</update>
<update id="closeInterviewRoom">
update hy_partner_interview_plan
set room_status = #{roomStatus},update_time = now()
<where>
<if test="record.roomStatus !=null and record.roomStatus!=''">
and hpip.room_status = #{record.roomStatus}
</if>
<if test="record.startTime !=null and record.startTime!=''">
and hpip.end_time &gt;= #{record.startTime}
</if>
<if test="record.endTime !=null and record.endTime!=''">
and hpip.end_time &lt;= #{record.endTime}
</if>
<if test="record.deleted !=null and record.deleted!=''">
and hpip.deleted = #{deleted}
</if>
</where>
</update>
<select id="getCurrentDateInterviewCount" resultType="java.lang.Integer">
select count(1) from hy_partner_interview_plan
<where>
@@ -296,6 +359,9 @@
<if test="record.endTime !=null and record.endTime!=''">
and hpip.end_time &lt;= #{record.endTime}
</if>
<if test="record.deleted !=null and record.deleted!=''">
and hpip.deleted = #{deleted}
</if>
</where>
</select>
@@ -333,7 +399,7 @@
left join hy_partner_user_info hpui on hpui.partner_id = hpip.partner_id
left join hy_partner_interview hpi on hpip.id = hpi.interview_plan_id
left join hy_partner_certification_info hpci on hpci.partner_interview_id = hpi.id
where hpip.id = #{interviewPlanId}
where hpip.id = #{interviewPlanId} and hpip.deleted = 0 and hpi.deleted = 0
</select>
<select id="selectBySelective" resultType="com.cool.store.entity.HyPartnerInterviewPlanDO">
select
@@ -370,6 +436,9 @@
<if test="record.interviewDate !=null and record.interviewDate!=''">
and interview_date = #{record.interviewDate}
</if>
<if test="record.deleted !=null">
and deleted = #{record.deleted}
</if>
</where>
</select>