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