考试题目数量修改
This commit is contained in:
@@ -157,10 +157,10 @@ public class ClassExamServiceImpl extends ServiceImpl<ClassExamDao, ClassExam> i
|
||||
List<Map<String,Object>> sList = new ArrayList<>();
|
||||
List<Map<String,Object>> mList = new ArrayList<>();
|
||||
if (courseList.size() > 0) {
|
||||
// int stotal = 60;//单选题总数
|
||||
// int mtotal = 40;//多选题总数
|
||||
int stotal = 5;//单选题总数
|
||||
int mtotal = 5;//多选题总数
|
||||
int stotal = 60;//单选题总数
|
||||
int mtotal = 40;//多选题总数
|
||||
// int stotal = 5;//单选题总数
|
||||
// int mtotal = 5;//多选题总数
|
||||
int snum = (int)Math.floor(stotal/courseList.size());
|
||||
int mnum = (int)Math.floor(mtotal/courseList.size());
|
||||
for (ClassCourse classCourse:courseList){
|
||||
@@ -229,7 +229,7 @@ public class ClassExamServiceImpl extends ServiceImpl<ClassExamDao, ClassExam> i
|
||||
DelayQueueConfig.COMMON_EXCHANGE,
|
||||
DelayQueueConfig.COMMON_ROUTING_KEY,
|
||||
"examSubmit"+","+classExamUser.getId(),
|
||||
messagePostProcessor(60*60*1000+10000)//10秒延迟
|
||||
messagePostProcessor(2*60*60*1000+3000)//3秒延迟
|
||||
);
|
||||
return R.ok().put("examPaper",resultList).put("id",classExamUser.getId()).put("startTime",classExamUser.getStartTime());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user