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 = "获取比赛详情无拦截")