| | |
| | | List<List<TSubject>> subjectList = new ArrayList<>(); |
| | | for (TStudyListen studyListen : studyListens) { |
| | | List<String> subjectIds = Arrays.stream(studyListen.getSubject().split(",")).collect(Collectors.toList()); |
| | | Collections.shuffle(subjectIds); |
| | | List<TSubject> list = new ArrayList<>(); |
| | | // 图片及语音集合 |
| | | for (String id : subjectIds) { |
| | |
| | | List<List<TSubject>> subjectList = new ArrayList<>(); |
| | | for (TStudyLook studyLook : lookList) { |
| | | List<String> subjectIds = Arrays.stream(studyLook.getSubject().split(",")).collect(Collectors.toList()); |
| | | Collections.shuffle(subjectIds); |
| | | List<TSubject> list = new ArrayList<>(); |
| | | // 图片及语音集合 |
| | | for (String id : subjectIds) { |
| | |
| | | List<List<TSubject>> subjectList = new ArrayList<>(); |
| | | for (TStudyInduction data : inductionList) { |
| | | List<String> subjectIds = Arrays.stream(data.getSubject().split(",")).collect(Collectors.toList()); |
| | | Collections.shuffle(subjectIds); |
| | | List<TSubject> subjectLists = new ArrayList<>(); |
| | | for (String id : subjectIds) { |
| | | if (id.startsWith("-")) { |
| | |
| | | List<List<TSubject>> subjectList = new ArrayList<>(); |
| | | for (TStudyPair data : pair) { |
| | | List<String> subjectIds = Arrays.stream(data.getSubject().split(",")).collect(Collectors.toList()); |
| | | Collections.shuffle(subjectIds); |
| | | List<TSubject> subjectLists = new ArrayList<>(); |
| | | for (String id : subjectIds) { |
| | | if (id.startsWith("-")) { |
| | |
| | | defaultSchedule = 0; |
| | | } |
| | | // 进度学习完成度计算总学习进度 |
| | | if (!Constants.ZERO.equals(listen) && !Constants.BURDEN_ONE.equals(listen)) { |
| | | // todo 不确定是否需要累计计算 中途退出的进度 |
| | | /*if (!Constants.ZERO.equals(listen) && !Constants.BURDEN_ONE.equals(listen)) { |
| | | defaultSchedule += 4 * (100 / listen); |
| | | } |
| | | if (!Constants.ZERO.equals(look) && !Constants.BURDEN_ONE.equals(look)) { |
| | |
| | | } |
| | | if (!Constants.ZERO.equals(pair) && !Constants.BURDEN_ONE.equals(pair)) { |
| | | defaultSchedule += 4 * (100 / pair); |
| | | } |
| | | }*/ |
| | | } |
| | | return defaultSchedule; |
| | | } |