|
@@ -178,7 +178,7 @@ public class ExportQuesReduplicateConsumer extends Consumer<Course> {
|
|
|
// }
|
|
|
|
|
|
private void checkQuestion(List<QuestionDto> dtos, String cname, String ccode) {
|
|
|
- List<RetDto> ret = new ArrayList<>();
|
|
|
+ List<RetDto> temret = new ArrayList<>();
|
|
|
Set<String> checkIds = new HashSet<>();
|
|
|
for (QuestionDto dto : dtos) {
|
|
|
dto.setExtractText(PaperUtil.getExtractText(dto));
|
|
@@ -215,17 +215,23 @@ public class ExportQuesReduplicateConsumer extends Consumer<Course> {
|
|
|
rd.setCreationDate(dto.getCreationDate());
|
|
|
// rd.setValid("是");
|
|
|
fillInfo(rd);
|
|
|
- ret.add(rd);
|
|
|
+ temret.add(rd);
|
|
|
}
|
|
|
RetDto rd = new RetDto(group, ccode, cname, subdto.getQuestionType().getName(), subdto.getId());
|
|
|
rd.setCreationDate(subdto.getCreationDate());
|
|
|
// rd.setValid("否");
|
|
|
fillInfo(rd);
|
|
|
// addRet(rd);
|
|
|
- ret.add(rd);
|
|
|
+ temret.add(rd);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ List<RetDto> ret = new ArrayList<>();
|
|
|
+ for (RetDto dto : temret) {
|
|
|
+ if (dto.getPaperName().indexOf("废") == -1) {
|
|
|
+ ret.add(dto);
|
|
|
+ }
|
|
|
+ }
|
|
|
// 排序
|
|
|
Collections.sort(ret, new Comparator<RetDto>() {
|
|
|
|