|
@@ -1154,11 +1154,11 @@ public interface KmtExerciseMapper {
|
|
@Param("questionImage") String questionImage,
|
|
@Param("questionImage") String questionImage,
|
|
@Param("answerImage") String answerImage);
|
|
@Param("answerImage") String answerImage);
|
|
|
|
|
|
- @Select("select * from kmt_exercise_questions where book_id=#{bookId} and num > #{num} order by num limit 1")
|
|
|
|
|
|
+ @Select("select * from kmt_exercise_questions where book_id=#{bookId} and num >= #{num} order by num limit 1")
|
|
KmtExerciseQuestion findNextByBookIdAndNum (@Param("bookId") String bookId,
|
|
KmtExerciseQuestion findNextByBookIdAndNum (@Param("bookId") String bookId,
|
|
@Param("num") int num);
|
|
@Param("num") int num);
|
|
|
|
|
|
- @Select("select * from kmt_exercise_questions where book_id=#{bookId} and num < #{num} order by num desc limit 1")
|
|
|
|
|
|
+ @Select("select * from kmt_exercise_questions where book_id=#{bookId} and num <= #{num} order by num desc limit 1")
|
|
KmtExerciseQuestion findPreviousByBookIdAndNum (@Param("bookId") String bookId,
|
|
KmtExerciseQuestion findPreviousByBookIdAndNum (@Param("bookId") String bookId,
|
|
@Param("num") int num);
|
|
@Param("num") int num);
|
|
|
|
|