Skip to content

Commit a7b2c0f

Browse files
author
pig
committed
修复出卷bug
1 parent 8284225 commit a7b2c0f

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
# springboot-vue在线考试系统
2-
* 呵呵,答辩不予通过。
3-
4-
* 累了。
5-
6-
* 准备毕业答辩,暂停更新,答辩完以后,继续更新
7-
82
* springboot+vue前后端分离的一个项目,记录自己毕业设计完成的情况
93

104
* 登录页地址:<http://localhost:8088/#/>

springboot/src/main/java/com/exam/mapper/FillQuestionMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ public interface FillQuestionMapper {
2929
"(#{subject,},#{question},#{answer},#{analysis},#{level},#{section})")
3030
int add(FillQuestion fillQuestion);
3131

32-
@Select("select questionId from FillQuestion where subject = #{subject} order by questionId desc limit #{pageNo}")
32+
@Select("select questionId from FillQuestion where subject = #{subject} order by rand() desc limit #{pageNo}")
3333
List<Integer> findBySubject(String subject,Integer pageNo);
3434
}

springboot/src/main/java/com/exam/mapper/JudgeQuestionMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ public interface JudgeQuestionMapper {
3131
"(#{subject},#{question},#{answer},#{analysis},#{level},#{section})")
3232
int add(JudgeQuestion judgeQuestion);
3333

34-
@Select("select questionId from JudgeQuestion where subject=#{subject} order by questionId desc limit #{pageNo}")
34+
@Select("select questionId from JudgeQuestion where subject=#{subject} order by rand() desc limit #{pageNo}")
3535
List<Integer> findBySubject(String subject,Integer pageNo);
3636
}

springboot/src/main/java/com/exam/mapper/MultiQuestionMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public interface MultiQuestionMapper {
3636
"values(#{subject},#{question},#{answerA},#{answerB},#{answerC},#{answerD},#{rightAnswer},#{analysis},#{section},#{level})")
3737
int add(MultiQuestion multiQuestion);
3838

39-
@Select("select questionId from MultiQuestion where subject =#{subject} order by questionId desc limit #{pageNo}")
39+
@Select("select questionId from MultiQuestion where subject =#{subject} order by rand() desc limit #{pageNo}")
4040
List<Integer> findBySubject(String subject,Integer pageNo);
4141

4242

0 commit comments

Comments
 (0)