From b0d9ffd4e46662c01b48714cb2327c56cac37036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com> Date: Tue, 15 Oct 2024 11:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E5=BA=8F=E6=8E=92=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecg/modules/demo/comp/controller/CompController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java index de0defde..ca8827af 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java @@ -472,7 +472,9 @@ public class CompController extends JeecgController { } } } - return Result.OK(compList); + return Result.OK(compList.stream() + .sorted(Comparator.comparing(Comp::getCreateTime).reversed()) + .collect(Collectors.toList())); } @ApiOperation(value = "获取比赛详情无拦截", notes = "获取比赛详情无拦截")