mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-09-22 21:15:24 +08:00
order by saved queries
This commit is contained in:
@ -105,7 +105,7 @@ public class OperationServiceImpl implements OperationService {
|
|||||||
Integer offset = param.getPageSize();
|
Integer offset = param.getPageSize();
|
||||||
Page<OperationSavedDO> page = new Page<>(start, offset);
|
Page<OperationSavedDO> page = new Page<>(start, offset);
|
||||||
page.setOptimizeCountSql(false);
|
page.setOptimizeCountSql(false);
|
||||||
if (param.getOrderByDesc()) {
|
if (param.isOrderByDesc()) {
|
||||||
queryWrapper.orderByDesc("gmt_modified");
|
queryWrapper.orderByDesc("gmt_modified");
|
||||||
} else {
|
} else {
|
||||||
queryWrapper.orderByAsc("gmt_modified");
|
queryWrapper.orderByAsc("gmt_modified");
|
||||||
|
Reference in New Issue
Block a user