|
|
|
@ -59,21 +59,21 @@ public class ExerciseExperimentalTraining {
|
|
|
|
|
@ApiOperation("**获取案例题步骤基础信息")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public ResultEntity<List<TestTestSysCaseQuestionStepWithBLOBs>> getCaseStepInfo(@RequestParam String chapterId) {
|
|
|
|
|
//根据chapterId查询所有的caseid
|
|
|
|
|
List<TestSysCaseQuestion> sysCaseQuestions = null;
|
|
|
|
|
try {
|
|
|
|
|
sysCaseQuestions = CaseApi.selectCaseByChapterId(chapterId);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "资源中心根据三级ID查询失败");
|
|
|
|
|
}
|
|
|
|
|
List<String> caseIds = new ArrayList<>();
|
|
|
|
|
for (int i = 0; i < sysCaseQuestions.size(); i++) {
|
|
|
|
|
String caseId = sysCaseQuestions.get(i).getCaseId();
|
|
|
|
|
caseIds.add(caseId);
|
|
|
|
|
}
|
|
|
|
|
// //根据chapterId查询所有的caseid
|
|
|
|
|
// List<TestSysCaseQuestion> sysCaseQuestions = null;
|
|
|
|
|
// try {
|
|
|
|
|
// sysCaseQuestions = CaseApi.selectCaseByChapterId(chapterId);
|
|
|
|
|
// } catch (IOException e) {
|
|
|
|
|
// return new ResultEntity<>(HttpStatus.BAD_REQUEST, "资源中心根据三级ID查询失败");
|
|
|
|
|
// }
|
|
|
|
|
// List<String> caseIds = new ArrayList<>();
|
|
|
|
|
// for (int i = 0; i < sysCaseQuestions.size(); i++) {
|
|
|
|
|
// String caseId = sysCaseQuestions.get(i).getCaseId();
|
|
|
|
|
// caseIds.add(caseId);
|
|
|
|
|
// }
|
|
|
|
|
List<TestTestSysCaseQuestionStepWithBLOBs> stepList = null;
|
|
|
|
|
try {
|
|
|
|
|
stepList = CaseApi.selectCaseStepListBatchByIdListAndSort(caseIds);
|
|
|
|
|
stepList = CaseApi.selectCaseStepListBatchByIdListAndSort(chapterId);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "资源中心根据根据案例题IDS批量查询失败");
|
|
|
|
|
}
|
|
|
|
|