|
@@ -1147,7 +1147,7 @@ public interface KmtExerciseMapper {
|
|
|
@Param("questionClassType")int questionClassType,
|
|
|
@Param("id")String id);
|
|
|
|
|
|
- @Update("update kmt_exercise_questions set big_question_index=#{req.bigQuestionIndex} small_question_name=#{req.smallQuestionIndex}, image=#{questionImage}, " +
|
|
|
+ @Update("update kmt_exercise_questions set big_question_index=#{req.bigQuestionIndex}, small_question_name=#{req.smallQuestionIndex}, image=#{questionImage}, " +
|
|
|
" answer_image=#{answerImage}, deal_status =3" +
|
|
|
" where id=#{req.questionId}")
|
|
|
int updateQuestionEditData (@Param("req") AddExerciseQuestionRequest req,
|
|
@@ -1168,7 +1168,7 @@ public interface KmtExerciseMapper {
|
|
|
@Param("bookId") String bookId,
|
|
|
@Param("num") int num);
|
|
|
@Select("select big_question_index from kmt_exercise_questions where book_course_id=#{bookCourseId} " +
|
|
|
- " and big_question_index=#{bigQuestionIndex} ")
|
|
|
+ " and big_question_index=#{bigQuestionIndex} limit 1")
|
|
|
String findBigQuestionIndexByBookCourseId (@Param("bookCourseId") String bookCourseId,
|
|
|
@Param("bigQuestionIndex") String bigQuestionIndex);
|
|
|
|