| | |
| | | // 听音选图 |
| | | List<TStudyListen> list = studyListenService.list(new QueryWrapper<TStudyListen>() |
| | | .eq("week", week) |
| | | .eq("day", day).orderByAsc("studySort")); |
| | | // studySort 会有重复值,追加 id 升序作为二级排序,保证与提交数组顺序一致 |
| | | .eq("day", day).orderByAsc("studySort").orderByAsc("id")); |
| | | List<TSubject> list9 = subjectService.list(); |
| | | |
| | | for (TStudyListen tStudyListen : list) { |
| | |
| | | // 看音选图 |
| | | List<TStudyLook> list1 = studyLookService.list(new QueryWrapper<TStudyLook>() |
| | | .eq("week", week) |
| | | .eq("day", day).orderByAsc("studySort") |
| | | .eq("day", day).orderByAsc("studySort").orderByAsc("id") |
| | | ); |
| | | for (TStudyLook tStudyLook : list1) { |
| | | int index = 0; |
| | |
| | | // 归纳排除 |
| | | List<TStudyInduction> list2 = studyInductionService.list(new QueryWrapper<TStudyInduction>() |
| | | .eq("week", week) |
| | | .eq("day", day).orderByAsc("studySort") |
| | | .eq("day", day).orderByAsc("studySort").orderByAsc("id") |
| | | ); |
| | | for (TStudyInduction tStudyInduction : list2) { |
| | | StringBuilder names = new StringBuilder(); |
| | |
| | | // 有问有答 |
| | | List<TStudyAnswer> list3 = studyAnswerService.list(new QueryWrapper<TStudyAnswer>() |
| | | .eq("week", week) |
| | | .eq("day", day).orderByAsc("studySort")); |
| | | .eq("day", day).orderByAsc("studySort").orderByAsc("id")); |
| | | for (TStudyAnswer tStudyAnswer : list3) { |
| | | StringBuilder names = new StringBuilder(); |
| | | StudyAnswerVO studyAnswerVO = new StudyAnswerVO(); |
| | |
| | | // 音图相配 |
| | | List<TStudyPair> list4 = studyPairService.list(new QueryWrapper<TStudyPair>() |
| | | .eq("week", week) |
| | | .eq("day", day).orderByAsc("studySort") |
| | | .eq("day", day).orderByAsc("studySort").orderByAsc("id") |
| | | ); |
| | | for (TStudyPair tStudyPair : list4) { |
| | | StringBuilder names = new StringBuilder(); |