提交 25a2acef authored 作者: jiashixiong's avatar jiashixiong

前台公共资源接口添加查询专家

上级 473324e9
......@@ -59,6 +59,8 @@ public class ExamPaperLibraryServiceImpl extends BaseServiceImpl<ExamPaperLibrar
private QuestionLibraryDiyTypeMapper questionLibraryDiyTypeMapper;
@Autowired
private ExampaperQuestionLibraryDiyTypeManage exampaperQuestionLibraryDiyTypeManage;
@Autowired
private ExamRecordMapper examRecordMapper;
@Override
......@@ -335,6 +337,13 @@ public class ExamPaperLibraryServiceImpl extends BaseServiceImpl<ExamPaperLibrar
List<String> s = examPaperLibraryDiyTypeMapper.getdiyType(examPaperLibrary.getId() + "");
examPaperLibrary.setType(s);
}
ExamPaperLibrary library = new ExamPaperLibrary();
ExamRecord examRecord = new ExamRecord();
examRecord.setExampaperid(examPaperLibrary.getId());
List<ExamRecord> list = examRecordMapper.select(examRecord);
if (list!=null&&list.size()>0){
examPaperLibrary.setUsed(1);
}
}
@Override
......
......@@ -94,4 +94,6 @@ public class BgExampaperLibraryVo {
private List<String> type;
@ApiModelProperty("试卷分类code")
private String code;
@ApiModelProperty("试卷使用情况 1已被使用")
private Integer used;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论