|
@@ -0,0 +1,53 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper
|
|
|
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.miaxis.question.mapper.QuestionInfoTwoMapper">
|
|
|
+
|
|
|
+ <resultMap type="QuestionInfoTwo" id="QuestionInfoTwoResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="num" column="num" />
|
|
|
+ <result property="name" column="name" />
|
|
|
+ <result property="image" column="image" />
|
|
|
+ <result property="rightAnswer" column="right_answer" />
|
|
|
+ <result property="explainJs" column="explain_js" />
|
|
|
+ <result property="type" column="type" />
|
|
|
+ <result property="an1" column="an1" />
|
|
|
+ <result property="an2" column="an2" />
|
|
|
+ <result property="an3" column="an3" />
|
|
|
+ <result property="an4" column="an4" />
|
|
|
+ <result property="an5" column="an5" />
|
|
|
+ <result property="an6" column="an6" />
|
|
|
+ <result property="an7" column="an7" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="kemu" column="kemu" />
|
|
|
+ <result property="cartype" column="cartype" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectQuestionInfoTwoVo">
|
|
|
+ select * from question_info_two
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectQuestionInfoTwoList" parameterType="QuestionInfoTwo" resultMap="QuestionInfoTwoResult">
|
|
|
+ <include refid="selectQuestionInfoTwoVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="num != null "> and num = #{num}</if>
|
|
|
+ <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
+ <if test="image != null and image != ''"> and image = #{image}</if>
|
|
|
+ <if test="rightAnswer != null "> and right_answer = #{rightAnswer}</if>
|
|
|
+ <if test="explainJs != null and explainJs != ''"> and explain_js = #{explainJs}</if>
|
|
|
+ <if test="type != null "> and type = #{type}</if>
|
|
|
+ <if test="an1 != null and an1 != ''"> and an1 = #{an1}</if>
|
|
|
+ <if test="an2 != null and an2 != ''"> and an2 = #{an2}</if>
|
|
|
+ <if test="an3 != null and an3 != ''"> and an3 = #{an3}</if>
|
|
|
+ <if test="an4 != null and an4 != ''"> and an4 = #{an4}</if>
|
|
|
+ <if test="an5 != null and an5 != ''"> and an5 = #{an5}</if>
|
|
|
+ <if test="an6 != null and an6 != ''"> and an6 = #{an6}</if>
|
|
|
+ <if test="an7 != null and an7 != ''"> and an7 = #{an7}</if>
|
|
|
+ <if test="kemu != null "> and kemu = #{kemu}</if>
|
|
|
+ <if test="cartype != null and cartype != ''"> and cartype like concat('%', #{cartype}, '%') </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|