|
|
|
@ -345,10 +345,11 @@ public class TeacherOpenCourseQuestionLogService extends CoreBaseService<Teacher
|
|
|
|
|
questionSnapshotQuery.setRand(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 题目查询
|
|
|
|
|
resourcesQuestionSnapshots = resourcesQuestionSnapshotDao.getValuesByQuery(questionSnapshotQuery);
|
|
|
|
|
|
|
|
|
|
// 选项乱序(限单选、多选)
|
|
|
|
|
if (TRUE_CONST.equals(hwSetting.getTeacherOpenCourseQuestionSettingOptionNoOrder())) {
|
|
|
|
|
resourcesQuestionSnapshots = resourcesQuestionSnapshotDao.getValuesByQuery(questionSnapshotQuery);
|
|
|
|
|
|
|
|
|
|
// 单题选项排序处理
|
|
|
|
|
resourcesQuestionSnapshots.forEach(value -> {
|
|
|
|
|
shuffleOrderOptions(value, "questionAnswer","questionOption", true);
|
|
|
|
|