mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 17:54:32 +08:00
修改定时任务排序
This commit is contained in:
@@ -168,7 +168,12 @@ export default class CronService {
|
|||||||
}
|
}
|
||||||
let condition: any = {
|
let condition: any = {
|
||||||
where: query,
|
where: query,
|
||||||
order: [['createdAt', 'DESC']],
|
order: [
|
||||||
|
['isPinned', 'DESC'],
|
||||||
|
['isDisabled', 'ASC'],
|
||||||
|
['status', 'ASC'],
|
||||||
|
['createdAt', 'DESC'],
|
||||||
|
],
|
||||||
};
|
};
|
||||||
if (page && size) {
|
if (page && size) {
|
||||||
condition.offset = (page - 1) * size;
|
condition.offset = (page - 1) * size;
|
||||||
|
|||||||
Reference in New Issue
Block a user