Add sql statement to filter devices according to last update time stamp in descending order

pull/544/head
Sathira Perera 2 weeks ago
parent 66c9c4f4e6
commit 2e8ead8f24

@ -181,6 +181,8 @@ public class GenericDeviceDAOImpl extends AbstractDeviceDAOImpl {
sql += " GROUP BY e.ID ";
}
sql += ") ";
sql += " ORDER BY d1.LAST_UPDATED_TIMESTAMP DESC "; // <-- New order clause
sql += " LIMIT ? OFFSET ?";
try (PreparedStatement stmt = conn.prepareStatement(sql)) {

Loading…
Cancel
Save