反序排列

gstadmin
王家东 1 month ago
parent 4fc587b5ca
commit b0d9ffd4e4
  1. 4
      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<Comp, ICompService> {
} }
} }
} }
return Result.OK(compList); return Result.OK(compList.stream()
.sorted(Comparator.comparing(Comp::getCreateTime).reversed())
.collect(Collectors.toList()));
} }
@ApiOperation(value = "获取比赛详情无拦截", notes = "获取比赛详情无拦截") @ApiOperation(value = "获取比赛详情无拦截", notes = "获取比赛详情无拦截")

Loading…
Cancel
Save