Commit a55ee18c by yangyang

考试后台提交

parent 5db4a0a8
...@@ -12,7 +12,7 @@ public interface AnswerMapper { ...@@ -12,7 +12,7 @@ public interface AnswerMapper {
"<if test='question != \"null\"'>" + "<if test='question != \"null\"'>" +
"where question like concat('%',#{question},'%')" "where question like concat('%',#{question},'%')"
+ "</if>" + + "</if>" +
"union " + "select questionid,question,\"\" AS answerA,\"\" AS answerB,\"\" AS answerC,\"\" AS answerD,answer AS rightAnswer,analysis,subject,score,section,level,\"判断题\" AS type ,\"\" AS oneOrMore,\"judge_question\" AS tablename from judge_question" + "union " + "select questionid,question,\"\" AS answerA,\"\" AS answerB,\"\" AS answerC,\"\" AS answerD,answer AS rightAnswer,analysis,subject,score,section,level ,\"\" AS oneOrMore,\"判断题\" AS type,\"judge_question\" AS tablename from judge_question" +
"<if test='question != \"null\"'>" + "<if test='question != \"null\"'>" +
"where question like concat('%',#{question},'%')" "where question like concat('%',#{question},'%')"
+ "</if>" + + "</if>" +
......
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