日程SQL 修改
This commit is contained in:
@@ -272,7 +272,7 @@
|
|||||||
|
|
||||||
<select id="getInterviewCount" resultType="com.cool.store.dto.partner.SpecialDateRangeInterviewCountDTO">
|
<select id="getInterviewCount" resultType="com.cool.store.dto.partner.SpecialDateRangeInterviewCountDTO">
|
||||||
select
|
select
|
||||||
ifnull(sum(if(interview_date = #{currentDate} and (start_time>now() or (start_time <![CDATA[<]]> now() and room_status!=2)),1,0)),0) as currentDayInterviewCount,
|
ifnull(sum(if(interview_date = #{currentDate} and room_status!=2,1,0)),0) as currentDayInterviewCount,
|
||||||
ifnull(sum(if(start_time>#{startTime} and end_time <![CDATA[<]]> #{endTime},1,0)),0) as lastSevenDayInterviewCount
|
ifnull(sum(if(start_time>#{startTime} and end_time <![CDATA[<]]> #{endTime},1,0)),0) as lastSevenDayInterviewCount
|
||||||
FROM hy_partner_interview_plan
|
FROM hy_partner_interview_plan
|
||||||
where interviewer = #{userId}
|
where interviewer = #{userId}
|
||||||
@@ -289,7 +289,7 @@
|
|||||||
<if test="currentDay!=null and currentDay!=''">
|
<if test="currentDay!=null and currentDay!=''">
|
||||||
and interview_date = #{currentDay}
|
and interview_date = #{currentDay}
|
||||||
</if>
|
</if>
|
||||||
and (start_time>now() or (start_time<![CDATA[<]]>now() and room_status!=2))
|
and room_status!=2
|
||||||
and deleted = 0
|
and deleted = 0
|
||||||
and application_approved = 1
|
and application_approved = 1
|
||||||
order by start_time
|
order by start_time
|
||||||
|
|||||||
Reference in New Issue
Block a user