瀏覽代碼

:package: 首页轮播图查询接口增加升序排序

Twelve615 1 年之前
父節點
當前提交
4145d00df2

+ 1 - 0
jlsb/jeecg-boot-module-system/src/main/java/org/jeecg/modules/aa/controller/APIIndexenterController.java

@@ -86,6 +86,7 @@ public class APIIndexenterController {
     public Result<List<AaSlideshow>> getEnableList() {
         LambdaQueryWrapper<AaSlideshow> queryWrapper = new LambdaQueryWrapper<>();
         queryWrapper.eq(AaSlideshow::getEnable, "1");
+        queryWrapper.orderByAsc(AaSlideshow::getSort);
         List<AaSlideshow> list = aaSlideshowService.list(queryWrapper);
         if (list != null && list.size() > 0) {
             for (AaSlideshow aaSlideshow : list) {