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

DeviceFilter_Time
Sathira Perera 1 week ago
parent 66c9c4f4e6
commit 2e8ead8f24

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

Loading…
Cancel
Save