|
|
|
@ -98,10 +98,10 @@ public class CaseApi {
|
|
|
|
|
@ApiOperation("案例题页面查询")
|
|
|
|
|
@PostMapping("selectCaseList")
|
|
|
|
|
public PageInfo<SysCaseQuestion> selectCaseList(@RequestParam Integer index,
|
|
|
|
|
@RequestParam Integer size,
|
|
|
|
|
@RequestParam(required = false) String keyword,
|
|
|
|
|
@RequestParam(required = false) String systemOwner,
|
|
|
|
|
@RequestParam(required = false) String schoolId) {
|
|
|
|
|
@RequestParam Integer size,
|
|
|
|
|
@RequestParam(required = false) String keyword,
|
|
|
|
|
@RequestParam(required = false) String systemOwner,
|
|
|
|
|
@RequestParam(required = false) String schoolId) {
|
|
|
|
|
SysOneCatalog sysOneCatalogs = getSysOneCatalogs(systemOwner);
|
|
|
|
|
String oneId = sysOneCatalogs.getOneId();
|
|
|
|
|
List<SysCaseQuestion> list = caseQuestionMapper.selectCaseByConditions(keyword, oneId, schoolId);
|
|
|
|
@ -336,4 +336,26 @@ public class CaseApi {
|
|
|
|
|
String oneId = sysOneCatalogs.getOneId();
|
|
|
|
|
return caseQuestionStepMapper.getGradeReportCase(caseIdList, schoolId, oneId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//根据课程ID查询案例题
|
|
|
|
|
@PostMapping("selectCaseByCourseId")
|
|
|
|
|
@ApiOperation("根据课程ID查询案例题")
|
|
|
|
|
public List<SysCaseQuestion> selectCaseByCourseId(@RequestParam String courseId,
|
|
|
|
|
@RequestParam String systemOwner,
|
|
|
|
|
@RequestParam String schoolId) {
|
|
|
|
|
SysOneCatalog sysOneCatalogs = getSysOneCatalogs(systemOwner);
|
|
|
|
|
String oneId = sysOneCatalogs.getOneId();
|
|
|
|
|
|
|
|
|
|
SysTopicAndCourseExample example = new SysTopicAndCourseExample();
|
|
|
|
|
example.createCriteria().andTwoIdEqualTo(courseId).andOneIdEqualTo(oneId);
|
|
|
|
|
List<SysTopicAndCourse> sysTopicAndCourses = topicAndCourseMapper.selectByExample(example);
|
|
|
|
|
|
|
|
|
|
List<String> collect = sysTopicAndCourses.stream().map(SysTopicAndCourse::getTopicId).collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
SysCaseQuestionExample example1 = new SysCaseQuestionExample();
|
|
|
|
|
example1.createCriteria().andCaseIdIn(collect).andSourceEqualTo(schoolId);
|
|
|
|
|
List<SysCaseQuestion> list = caseQuestionMapper.selectByExampleWithBLOBs(example1);
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|