소스 검색

增加打印日志

chen 5 년 전
부모
커밋
265efe6894
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      ssj-mybatis-service-impl/src/main/java/com/ssj/service/mapper/KmtExerciseMapper.java

+ 2 - 2
ssj-mybatis-service-impl/src/main/java/com/ssj/service/mapper/KmtExerciseMapper.java

@@ -1154,11 +1154,11 @@ public interface KmtExerciseMapper {
                                 @Param("questionImage") String questionImage,
                                 @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,
                                             @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,
                                             @Param("num") int num);