Commit 4b07a7b8 by 宋珺琪

选项添加照片bug

parent 5c937b5d
......@@ -15,16 +15,16 @@ public class MultiQuestion {
private String section;
private String answerA;
private String Aimg;
private String aimg;
private String answerB;
private String Bimg;
private String bimg;
private String answerC;
private String Cimg;
private String cimg;
private String answerD;
private String Dimg;
private String dimg;
private String question;
......
......@@ -31,7 +31,7 @@ public interface AnswerMapper {
int deletePaperManage(@Param("questionid") String questionid,@Param("questionType") String questionType,@Param("subject") String subject);
@Update("update multi_question set question = #{question},answerA = #{answerA},answerB = #{answerB},answerC = #{answerC},answerD = #{answerD},rightAnswer = #{rightAnswer},analysis = #{analysis},section=#{section},level =#{level},oneOrMore= #{oneOrMore} where questionid = #{questionid}")
@Update("update multi_question set question = #{question},answerA = #{answerA},Aimg = #{aimg},answerB = #{answerB},Bimg = #{bimg},answerC = #{answerC},Cimg = #{cimg},answerD = #{answerD},Dimg = #{dimg},rightAnswer = #{rightAnswer},analysis = #{analysis},section=#{section},level =#{level},oneOrMore= #{oneOrMore} where questionid = #{questionid}")
int updateMultiQuestionByQuestionid(AnswerVO answerVO);
@Update("update judge_question set question = #{question},answer = #{rightAnswer},analysis = #{analysis} ,section =#{section},level = #{level} where questionid = #{questionid}")
......
......@@ -30,7 +30,7 @@ public interface MultiQuestionMapper {
@Options(useGeneratedKeys = true,keyProperty = "questionId")
@Insert("insert into multi_question(subject,question,answerA,Aimg,answerB,Bimg,answerC,Cimg,answerD,Dimg,rightAnswer,analysis,section,level,oneOrMore) " +
"values(#{subject},#{question},#{answerA},#{Aimg},#{answerB},#{Bimg},#{answerC},#{Cimg},#{answerD},#{Dimg},#{rightAnswer},#{analysis},#{section},#{level},#{oneOrMore})")
"values(#{subject},#{question},#{answerA},#{aimg},#{answerB},#{bimg},#{answerC},#{cimg},#{answerD},#{dimg},#{rightAnswer},#{analysis},#{section},#{level},#{oneOrMore})")
int add(MultiQuestion multiQuestion);
@Select("select questionId from multi_question where subject =#{subject} order by rand() desc limit #{pageNo}")
......
......@@ -7,13 +7,13 @@ public class AnswerVO {
private String paperid;
private String questionid;
private String answerA;
private String Aimg;
private String aimg;
private String answerB;
private String Bimg;
private String bimg;
private String answerC;
private String Cimg;
private String cimg;
private String answerD;
private String Dimg;
private String dimg;
private String question;
private String rightAnswer;
private String analysis;
......
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