str="select * from WorkLog where (datediff('d',logtime,date())<3) and username='"&username&"' order by logtime desc"