Commit 7b8e6c20 authored by 盖献康's avatar 盖献康

按章节排序

parent 28af4055
......@@ -45,10 +45,7 @@
<if test="text != null and text != ''"> and text like concat('%', #{text}, '%') </if>
</where>
ORDER BY
CAST(SUBSTRING_INDEX(chapter, '.', 1) AS UNSIGNED),
CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(chapter, '.', 2), '.', -1) AS UNSIGNED),
CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(chapter, '.', 3), '.', -1) AS UNSIGNED),
CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(chapter, '.', 4), '.', -1) AS UNSIGNED)
chapter
</select>
......
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