select * from tbOutData where datediff(day,datCashTime,getdate())between datediff(day,(getdate()-1),getdate()) and datediff(day,getdate(),getdate())