mirror of
				https://github.com/whyour/qinglong.git
				synced 2025-11-04 11:16:07 +08:00 
			
		
		
		
	修改定时任务排序
This commit is contained in:
		
							parent
							
								
									102e447f78
								
							
						
					
					
						commit
						b9e49b181a
					
				| 
						 | 
					@ -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;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user