<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.sqx.modules.interviewRecord.dao.InterviewRecordDao">

    <select id="getRecordList" resultType="com.sqx.modules.interviewRecord.entity.InterviewRecord">
        select *
        from `interview_record` i
        where TIMESTAMPDIFF(HOUR,NOW(), i.interview_date_time) + 1 = #{hour} and status = 2
        order by i.create_time desc
    </select>
    <select id="selectInterviewList">
        select i.interview_record_id,i.interview_date_time, c.company_logo ,c.company_name ,p.rule_classify_name, p.wage ,i.`status`
        from `interview_record` i
        left join tb_user u on i.interviewer_id = u.user_id
        left join post p on i.post_id = p.post_id
        left join company c on p.company_id = c.company_id
        where i.interviewer_id = #{userId}
        order by  interview_date_time
    </select>

</mapper>