he2802 2 年之前
父節點
當前提交
d1ce4f312e

+ 1 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/service/impl/CourseFileServiceImpl.java

@@ -43,6 +43,7 @@ public class CourseFileServiceImpl extends ServiceImpl<CourseFileMapper, CourseF
         lqw.eq(bo.getStatus() != null, CourseFile::getStatus, bo.getStatus());
         lqw.eq(bo.getHandoutsId() != null, CourseFile::getHandoutsId, bo.getHandoutsId());
         lqw.eq(bo.getSort() != null, CourseFile::getSort, bo.getSort());
+        lqw.orderByAsc(CourseFile::getSort);
         return entity2Vo(this.list(lqw));
     }