|
|
@@ -157,7 +157,17 @@ 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 "+
|
|
|
+ "<choose>" +
|
|
|
+ "<when test='maps.sorting != null and maps.sorting == 1'> " +
|
|
|
+ "order by c.sort asc " +
|
|
|
+ "</when>" +
|
|
|
+ "<when test='maps.sorting != null and maps.sorting == 2'> " +
|
|
|
+ "order by c.sort desc " +
|
|
|
+ "</when>" +
|
|
|
+ "<otherwise> " +
|
|
|
+ "order by c.sort asc, c.course_id asc " +
|
|
|
+ "</otherwise>" +
|
|
|
+ "</choose>" +
|
|
|
"</script>"})
|
|
|
List<FsUserCourseListPVO> selectFsUserCourseListPVO(@Param("maps") FsUserCourse param);
|
|
|
|