|
@@ -257,4 +257,15 @@ public class PaperController {
|
|
|
return new ResponseEntity(paperService.insertQuestionToPaper(paperId, paperDetailId, question), HttpStatus.OK);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据试题获取试卷名称
|
|
|
+ * @param
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value="获取试题所在的试卷名称",notes="获取试题所在的试卷名称")
|
|
|
+ @GetMapping(value = "/paper/listNames/{questionId}")
|
|
|
+ public ResponseEntity getPaperNamesByQuesId(@PathVariable String questionId){
|
|
|
+ return new ResponseEntity(paperService.getPaperNamesByQuestionId(questionId),HttpStatus.OK);
|
|
|
+ }
|
|
|
}
|