@Select("select * from res_chapter_library where bookid = #{bookid} and orderNum = #{orderNum}")
@Select("select * from res_chapter_library b INNER JOIN res_article_library a on a.markid = b.markid where b.bookid = #{bookid} and orderNum = #{orderNum}")
@Select("select *,(select GROUP_CONCAT(DISTINCT c.resourcetype) from res_article_library a inner join res_resource_relation c on a.id = c.objectid where a.markid = b.markid ORDER BY c.resourcetype ) resourceType from res_chapter_library b where bookid = #{bookid} and orderNum != #{orderNum} order by orderNum asc, pdfNum asc")
@Select("select *,(select GROUP_CONCAT(DISTINCT c.resourcetype) from res_resource_relation c where a.id = c.objectid ORDER BY c.resourcetype ) resourceType from res_chapter_library b"+
" INNER JOIN res_article_library a on a.markid = b.markid where b.bookid = #{bookid} and orderNum != #{orderNum} order by orderNum asc, pdfNum asc")
@Select("select *,(select GROUP_CONCAT(DISTINCT c.resourcetype) from res_article_library a inner join res_resource_relation c on a.id = c.objectid where a.markid = b.markid ORDER BY c.resourcetype ) resourceType from res_chapter_library b where bookid = #{bookid} and orderNum != #{orderNum} and level = 0 order by orderNum asc, pdfNum asc")