--- src/main/resources/mybatis/mapper/lms/book-SQL.xml
+++ src/main/resources/mybatis/mapper/lms/book-SQL.xml
... | ... | @@ -17,6 +17,7 @@ |
17 | 17 |
book_id, |
18 | 18 |
book_nm |
19 | 19 |
FROM book |
20 |
+ ORDER BY book_id |
|
20 | 21 |
</select> |
21 | 22 |
|
22 | 23 |
<!-- |
--- src/main/resources/mybatis/mapper/lms/unit_learning-SQL.xml
+++ src/main/resources/mybatis/mapper/lms/unit_learning-SQL.xml
... | ... | @@ -28,6 +28,7 @@ |
28 | 28 |
JOIN unit u |
29 | 29 |
ON ul.unit_id = u.unit_id |
30 | 30 |
WHERE ul.unit_id = #{unit_id} AND u.book_id = #{book_id} |
31 |
+ ORDER BY seq |
|
31 | 32 |
</select> |
32 | 33 |
|
33 | 34 |
<!-- |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?