Merge remote-tracking branch 'origin/cc_20230520_partner' into cc_20230520_partner
This commit is contained in:
@@ -87,4 +87,18 @@ public interface HyPartnerInterviewMapper {
|
||||
*/
|
||||
String getLineId(@Param("interviewPlanId") String interviewPlanId);
|
||||
|
||||
/**
|
||||
* 获取面试流程状态
|
||||
* @param interviewPlanId
|
||||
* @return
|
||||
*/
|
||||
String getStatus(String interviewPlanId);
|
||||
|
||||
/**
|
||||
* 在面试信息表中添加面试录制视频链接
|
||||
* @param roomId
|
||||
* @param videoUrl
|
||||
*/
|
||||
void addVideoUrl(@Param("roomId") String roomId, @Param("videoUrl") String videoUrl);
|
||||
|
||||
}
|
||||
@@ -141,5 +141,16 @@ public interface HyPartnerInterviewPlanMapper {
|
||||
*/
|
||||
Integer getRoomStatus(@Param("interviewPlanId") String interviewPlanId);
|
||||
|
||||
/**
|
||||
* 获取面试开始时间
|
||||
*/
|
||||
String getInterviewStartTime(String interviewPlanId);
|
||||
|
||||
/**
|
||||
* 根据面试计划id获取面试计划信息
|
||||
* @param interviewPlanId
|
||||
* @return
|
||||
*/
|
||||
HyPartnerInterviewPlanDO getInterviewPlanById(String interviewPlanId);
|
||||
|
||||
}
|
||||
@@ -217,6 +217,12 @@
|
||||
<if test="record.updateTime != null">
|
||||
update_time = #{record.updateTime},
|
||||
</if>
|
||||
<if test="record.passTime != null">
|
||||
pass_time = #{record.passTime},
|
||||
</if>
|
||||
<if test="record.passUserId != null">
|
||||
pass_user_id = #{record.passUserId},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
|
||||
@@ -471,4 +471,22 @@
|
||||
and deleted = 0
|
||||
</select>
|
||||
|
||||
<!-- 获取面试流程状态 -->
|
||||
<select id="getStatus" resultType="java.lang.String">
|
||||
SELECT status
|
||||
FROM hy_partner_interview
|
||||
WHERE interview_plan_id = #{interviewPlanId}
|
||||
</select>
|
||||
|
||||
<!-- 根据 room_id 添加 process_info -->
|
||||
<update id="addVideoUrl">
|
||||
UPDATE hy_partner_interview
|
||||
SET process_info = IF(process_info IS NULL, #{videoUrl}, CONCAT(process_info, ',' ,#{videoUrl}))
|
||||
WHERE interview_plan_id = (
|
||||
SELECT id
|
||||
FROM hy_partner_interview_plan
|
||||
WHERE room_id = #{roomId}
|
||||
)
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@@ -294,25 +294,35 @@
|
||||
|
||||
<select id="getPartnerInterviewInfoList" resultType="com.cool.store.dto.partner.PartnerInterviewInfoDTO">
|
||||
select
|
||||
hpli.id as partnerLineId,
|
||||
hpli.partner_id as partnerId,
|
||||
hpli.deadline as deadline,
|
||||
hpli.workflow_status as status,
|
||||
a.id as id,
|
||||
a.deadline as deadline,
|
||||
a.status as status,
|
||||
a.auth_code as authCode,
|
||||
a.approve_time as approveTime,
|
||||
a.process_info as processInfo,
|
||||
b.id as interviewId,
|
||||
b.partner_line_id as partnerLineId,
|
||||
b.partner_id as partnerId,
|
||||
b.start_time as startTime,
|
||||
b.end_time as endTime,
|
||||
b.interviewer as interviewer,
|
||||
b.create_time as createTime,
|
||||
b.room_id as roomId
|
||||
from hy_partner_interview a left join hy_partner_interview_plan b on a.interview_plan_id = b.id
|
||||
where a.status = #{workflowStatus}
|
||||
<if test="userId!=null and userId!=''">
|
||||
and a.interviewer = #{userId}
|
||||
</if>
|
||||
from hy_partner_line_info hpli
|
||||
left join hy_partner_interview a on hpli.id = a.partner_line_id
|
||||
left join hy_partner_interview_plan b on a.interview_plan_id = b.id
|
||||
<where>
|
||||
<if test="workflowStage!=null and workflowStage!=''">
|
||||
and hpli.workflow_stage = #{workflowStage}
|
||||
</if>
|
||||
<if test="workflowStatus!=null and workflowStatus!=''">
|
||||
and hpli.workflow_status = #{workflowStatus}
|
||||
</if>
|
||||
<if test="userId!=null and userId!=''">
|
||||
and hpli.investment_manager = #{userId}
|
||||
</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
|
||||
<select id="getInterviewList" resultType="com.cool.store.vo.interview.InterviewVO">
|
||||
@@ -458,4 +468,18 @@
|
||||
from hy_partner_interview_plan
|
||||
where id = #{interviewPlanId}
|
||||
</select>
|
||||
|
||||
<!-- 获取面试开始时间 -->
|
||||
<select id="getInterviewStartTime" resultType="java.lang.String">
|
||||
select start_time
|
||||
from hy_partner_interview_plan
|
||||
where id = #{interviewPlanId}
|
||||
</select>
|
||||
|
||||
<!-- 根据id获取面试计划信息 -->
|
||||
<select id="getInterviewPlanById" resultType="com.cool.store.entity.HyPartnerInterviewPlanDO">
|
||||
select <include refid="Base_Column_List"></include>
|
||||
from hy_partner_interview_plan
|
||||
where id = #{interviewPlanId}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user