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