select max(RecordTime) from tbl_loan where UserId = 2 Group By LoanId