获取14天的是否有面试情况及获取近7日和当天面试数量

This commit is contained in:
feng.li
2023-12-27 18:21:00 +08:00
parent ac81c9111b
commit 3702e7000b
3 changed files with 4 additions and 6 deletions

View File

@@ -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 &gt; '2023-11-01 00:00:00' and end_time &lt; '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 &gt; #{startTime} and end_time &lt;= #{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}