Commit e3c77aee by yangyang

Merge remote-tracking branch 'origin/master'

parents a55ee18c fb2fb60b
...@@ -8,7 +8,7 @@ import org.apache.ibatis.annotations.*; ...@@ -8,7 +8,7 @@ import org.apache.ibatis.annotations.*;
@Mapper @Mapper
public interface AnswerMapper { public interface AnswerMapper {
@Select("<script> select questionid,question,answerA,answerB,answerC,answerD,rightAnswer,analysis,subject,score,section,level,oneOrMore,\"选择题\" AS type,\"multi_question\" AS tablename from multi_question " + @Select("<script> select questionid,question,answerA,answerB,answerC,answerD,rightAnswer,analysis,subject,score,section,level,oneOrMore,\"单选题\" AS type,\"multi_question\" AS tablename from multi_question " +
"<if test='question != \"null\"'>" + "<if test='question != \"null\"'>" +
"where question like concat('%',#{question},'%')" "where question like concat('%',#{question},'%')"
+ "</if>" + + "</if>" +
...@@ -26,7 +26,7 @@ public interface AnswerMapper { ...@@ -26,7 +26,7 @@ public interface AnswerMapper {
int deletePaperManage(@Param("questionid") String questionid,@Param("questionType") String questionType,@Param("subject") String subject); 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} where questionid = #{questionid}") @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}")
int updateMultiQuestionByQuestionid(AnswerVO answerVO); int updateMultiQuestionByQuestionid(AnswerVO answerVO);
@Update("update judge_question set question = #{question},answer = #{rightAnswer},analysis = #{analysis} where questionid = #{questionid}") @Update("update judge_question set question = #{question},answer = #{rightAnswer},analysis = #{analysis} where questionid = #{questionid}")
......
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