Commit fdfd1a8a by yangyang

图查询直接传试卷id提交

parent 7b4e097d
...@@ -46,9 +46,9 @@ public class AnswerController { ...@@ -46,9 +46,9 @@ public class AnswerController {
} }
} }
@GetMapping("/answersPhoto/{questionid}/{tablename}/{subject}") @GetMapping("/answersPhoto/{questionid}/{tablename}/{paperid}")
public ApiResult answersPhoto(@PathVariable("questionid") String questionid, @PathVariable("tablename") String tablename, @PathVariable("subject") String subject){ public ApiResult answersPhoto(@PathVariable("paperid") String paperid, @PathVariable("tablename") String tablename, @PathVariable("subject") String subject){
return ApiResultHandler.buildApiResult(200,"查询题库照片",answerService.answersPhoto(questionid,tablename,subject)); return ApiResultHandler.buildApiResult(200,"查询题库照片",answerService.answersPhoto(paperid,tablename,subject));
} }
@PostMapping("/updateAnswersPhoto") @PostMapping("/updateAnswersPhoto")
......
...@@ -38,6 +38,6 @@ public interface AnswerMapper { ...@@ -38,6 +38,6 @@ public interface AnswerMapper {
int updatejudgeQuestionByQuestionid(AnswerVO answerVO); int updatejudgeQuestionByQuestionid(AnswerVO answerVO);
@Select("select img,questionid,questionType,questionType,paperid from paper_photo where questionid = #{questionid} and questionType = #{questionType} and paperid = (select paperid from exam_manage where type = #{subject})") @Select("select img,questionid,questionType,questionType,paperid from paper_photo where questionid = #{questionid} and questionType = #{questionType} and paperid = #{paperid}")
List<PaperPhoto> answersPhoto(@Param("questionid") String questionid, @Param("questionType") String questionType, @Param("subject") String subject); List<PaperPhoto> answersPhoto(@Param("questionid") String questionid, @Param("questionType") String questionType, @Param("paperid") String paperid);
} }
...@@ -55,8 +55,8 @@ public class AnswerServiceImpl implements AnswerService { ...@@ -55,8 +55,8 @@ public class AnswerServiceImpl implements AnswerService {
} }
@Override @Override
public List<PaperPhoto> answersPhoto(String questionid, String tablename, String subject) { public List<PaperPhoto> answersPhoto(String paperid, String tablename, String subject) {
return answerMapper.answersPhoto(questionid,getQuestionType(tablename),subject); return answerMapper.answersPhoto(paperid,getQuestionType(tablename),subject);
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment