| | |
| | | List<TSubject> subs = new ArrayList<>(); |
| | | // 图片及语音集合 |
| | | int i=0; |
| | | for (String id : subjectIds) { |
| | | for (String id : studyListen.getSubject().split( ",")) { |
| | | TSubject data = subjectService.lambdaQuery().eq(TSubject::getId, id) |
| | | .eq(TSubject::getDisabled, 0).one(); |
| | | if(studyListen.getType()!=null && studyListen.getType()==2 && i<2){ |
| | |
| | | data.setTSubjectRecordDetail(tSubjectRecordDetail); |
| | | subs.add(data); |
| | | } |
| | | if(studyListen.getId()==11220){ |
| | | System.out.println("数据333"+subs); |
| | | } |
| | | subjectList.add(subs); |
| | | |
| | | if(studyListen.getId()==11220){ |
| | | System.out.println("数据444"+subjectList); |
| | | } |
| | | } |
| | | // subjectRecordDetailService.saveBatch(tSubjectRecordDetails); |
| | | studyListenResultVO.setList(tSubjectRecordDetails); |
| | |
| | | List<TSubject> subsTemp = new ArrayList<>(); |
| | | // 图片及语音集合 |
| | | int temp=0; |
| | | for (String id : subjectIds) { |
| | | for (String id : studyListen.getSubject().split( ",")) { |
| | | TSubject data = subjectService.lambdaQuery().eq(TSubject::getId, id) |
| | | .eq(TSubject::getDisabled, 0).one(); |
| | | if(studyListen.getType()!=null && studyListen.getType()==2 && temp<2){ |
| | |
| | | } |
| | | temp++; |
| | | subs.add(data); |
| | | } |
| | | if(studyListen.getId()==11220){ |
| | | System.out.println("数据333"+subs); |
| | | } |
| | | |
| | | List<TSubjectRecordDetail> tSubjectRecordDetail1 = list.stream() |
| | |
| | | |
| | | List<String> subjectIds = Arrays.stream(data.getSubject().split(",")).collect(Collectors.toList()); |
| | | List<TSubject> subjectLists = new ArrayList<>(); |
| | | for (String id : subjectIds) { |
| | | for (String id : data.getSubject().split( ",")) { |
| | | if (id.startsWith("-")) { |
| | | id = id.replace("-", ""); |
| | | } |
| | |
| | | for (TStudyPair data : pair) { |
| | | List<String> subjectIds = Arrays.stream(data.getSubject().split(",")).collect(Collectors.toList()); |
| | | List<TSubject> subjectLists = new ArrayList<>(); |
| | | for (String id : subjectIds) { |
| | | for (String id : data.getSubject().split(",")) { |
| | | if (id.startsWith("-")) { |
| | | id = id.replace("-", ""); |
| | | } |