@Override public String query( MailsHistory model, Integer page, Integer rows, Date startDate, Date endDate) { List<MailsHistory> list = mailsHistoryDAO.query(model, page, rows, startDate, endDate); Long total = mailsHistoryDAO.getTotalCount(model, startDate, endDate); String[] properties = { "mailsHistoryId", "teacher.teacherName", "receiveIDs", "title", "content", "sendTime" }; return JSONUtil.toJson(list, properties, total); }