获取14天的是否有面试情况及获取近7日和当天面试数量
This commit is contained in:
@@ -272,8 +272,8 @@
|
||||
|
||||
<select id="getInterviewCount" resultType="com.cool.store.dto.partner.SpecialDateRangeInterviewCountDTO">
|
||||
select
|
||||
ifnull(sum(if(interview_date = '2023-11-27' and room_status!=2,1,0)),0) as currentDayInterviewCount,
|
||||
ifnull(sum(if(start_time > '2023-11-01 00:00:00' and end_time < '2023-11-30 23:59:59',1,0)),0) as lastSevenDayInterviewCount
|
||||
ifnull(sum(if(interview_date = #{currentDate} and room_status!=2,1,0)),0) as currentDayInterviewCount,
|
||||
ifnull(sum(if(start_time > #{startTime} and end_time <= #{endTime} ,1,0)),0) as lastSevenDayInterviewCount
|
||||
FROM hy_partner_interview_plan t1
|
||||
LEFT JOIN hy_partner_exhibition t2 ON t1.id = t2.interview_plan_id
|
||||
where interviewer = #{userId}
|
||||
|
||||
Reference in New Issue
Block a user