mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Add sql statement to filter devices according to last update time stamp in descending order
This commit is contained in:
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…
Reference in New Issue
Block a user