refactor(mcwl-admin):调整工具列表排序

feature/community-center
yang 2025-05-16 17:47:29 +08:00
parent 849000ca3f
commit 43a94d4664
1 changed files with 3 additions and 2 deletions

View File

@ -44,8 +44,9 @@ public class SysToolController {
@ApiOperation(value = "查询工具列表")
public R<List<ToolVo>> listTool() {
List<SysTool> sysToolList = sysToolService.list(new LambdaQueryWrapper<SysTool>()
.orderByDesc(SysTool::getCreateTime)
.orderByAsc(SysTool::getStatus));
.orderByDesc(SysTool::getStatus)
.orderByDesc(SysTool::getCreateTime));
return R.ok(BeanUtil.copyToList(sysToolList, ToolVo.class));
}