Commit ce6ed6a5 authored by luzhuang's avatar luzhuang

fix: 修改平台推荐

parent 0db857f0
......@@ -52,23 +52,20 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
* @param param
* @return
*/
@Select("<script>SELECT\n" +
"\tbc.*,\n" +
"\tbf.file_size AS fileSize \n" +
"FROM\n" +
"\tb_chapter bc\n" +
"\tLEFT JOIN b_file bf ON bf.chapter_id = bc.business_id \n" +
"WHERE\n" +
"\tbc.del_flag = 0 \n" +
"\tAND bc.flag = 1 \n" +
"\tAND bc.pid = - 1 \n" +
"\tAND bc.lesson_id = #{lessonId}\n" +
"\t\n" +
" <if test=\"corpId !=null and corpId != ''\">and bc.corp_id = #{corpId}</if>" +
// "\tAND bc.corp_id = #{corpId}\n" +
"\t\n" +
"ORDER BY\n" +
"\tsort ASC</script>")
@Select("<script>SELECT " +
" bc.*, " +
" bf.file_size AS fileSize " +
"FROM " +
" b_chapter bc " +
" LEFT JOIN b_file bf ON bf.chapter_id = bc.business_id " +
"WHERE " +
" bc.del_flag = 0 " +
" AND bc.flag = 1 " +
" AND bc.pid = - 1 " +
" AND bc.lesson_id = #{lessonId} " +
// " <if test=\"corpId !=null and corpId != ''\">and bc.corp_id = #{corpId}</if>" +
"ORDER BY " +
" sort ASC</script>")
@ResultMap(value = "SupperChildListResultMap")
List<QueryChapterListResDTO> queryBChapters(Map<String, Object> param);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment