select distinct personno from (select workday,categoryid,personno,username,dept,eventsdatetime,out_eventsdatetime,difftime from sxrptuser.mfg_attendance_record a left jion sxrptuser.mfg_tb_person_data b on a.personno=b.empno where workday<=sysdate-60 order by workday desc) where workday='${startdate}' order by personno