Quellcode durchsuchen

fix(mapper): 调整用户课程列表查询排序逻辑

- 移除了按课程ID排序的条件
- 保留仅按排序字段进行排序
- 简化SQL查询逻辑
xw vor 3 Wochen
Ursprung
Commit
2e8c66d67e

+ 1 - 1
fs-service/src/main/java/com/fs/course/mapper/FsUserCourseMapper.java

@@ -228,7 +228,7 @@ public interface FsUserCourseMapper
             "<if test ='maps.companyIdsList != null and maps.companyIdsList.length !=0 '> " +
             " and <foreach collection='maps.companyIdsList'  item='item' index='index'  open='( 1=2 ' separator='' close=')'> or find_in_set(  #{item} , REGEXP_REPLACE ( c.company_ids, '[\"\\\\[\\\\]]', '' ) )  </foreach> " +
             "</if> " +
-            " order by c.sort,c.course_id  "+
+            " order by c.sort "+
             "</script>"})
     List<FsUserCourseListPVO> selectFsUserCourseListCompanyPVO(@Param("maps")FsUserCourseParam fsUserCourse);