idle detail cleanup add created_time condition

This commit is contained in:
Donghuang 2021-09-14 16:23:08 +08:00
parent 2dcc09c384
commit dcfd38c756

View File

@ -41,6 +41,7 @@
max(created_time) created_time,
count(agent_id) cc
from br_agent_daily_idle_detail
where <![CDATA[ created_time > date(now()) ]]>
group by agent_id, idle_start_time
having cc > 1) latest
on adid.agent_id = latest.agent_id