Commit ce6ed6a5 authored by luzhuang's avatar luzhuang

fix: 修改平台推荐

parent 0db857f0
...@@ -52,23 +52,20 @@ public interface BChapterRepository extends BaseMapper<BChapter> { ...@@ -52,23 +52,20 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
* @param param * @param param
* @return * @return
*/ */
@Select("<script>SELECT\n" + @Select("<script>SELECT " +
"\tbc.*,\n" + " bc.*, " +
"\tbf.file_size AS fileSize \n" + " bf.file_size AS fileSize " +
"FROM\n" + "FROM " +
"\tb_chapter bc\n" + " b_chapter bc " +
"\tLEFT JOIN b_file bf ON bf.chapter_id = bc.business_id \n" + " LEFT JOIN b_file bf ON bf.chapter_id = bc.business_id " +
"WHERE\n" + "WHERE " +
"\tbc.del_flag = 0 \n" + " bc.del_flag = 0 " +
"\tAND bc.flag = 1 \n" + " AND bc.flag = 1 " +
"\tAND bc.pid = - 1 \n" + " AND bc.pid = - 1 " +
"\tAND bc.lesson_id = #{lessonId}\n" + " AND bc.lesson_id = #{lessonId} " +
"\t\n" + // " <if test=\"corpId !=null and corpId != ''\">and bc.corp_id = #{corpId}</if>" +
" <if test=\"corpId !=null and corpId != ''\">and bc.corp_id = #{corpId}</if>" + "ORDER BY " +
// "\tAND bc.corp_id = #{corpId}\n" + " sort ASC</script>")
"\t\n" +
"ORDER BY\n" +
"\tsort ASC</script>")
@ResultMap(value = "SupperChildListResultMap") @ResultMap(value = "SupperChildListResultMap")
List<QueryChapterListResDTO> queryBChapters(Map<String, Object> param); 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