QuestionYdtJsMapper.xml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.miaxis.question.mapper.QuestionYdtJsMapper">
  6. <resultMap type="QuestionYdtJs" id="QuestionYdtJsResult">
  7. <result property="id" column="id" />
  8. <result property="kemu" column="kemu" />
  9. <result property="qbAnalyse" column="qb_analyse" />
  10. <result property="qbContent" column="qb_content" />
  11. <result property="qbReadAnalyse" column="qb_read_analyse" />
  12. <result property="qbSkillPicture" column="qb_skill_picture" />
  13. <result property="qbAnswers" column="qb_answers" />
  14. <result property="questionids" column="questionIds" />
  15. <result property="shortVideoDuration" column="short_video_duration" />
  16. <result property="shortVideoSize" column="short_video_size" />
  17. <result property="shortVideoUrl" column="short_video_url" />
  18. <result property="shortVideoImage" column="short_video_image" />
  19. <result property="ydtAnalyse" column="ydt_analyse" />
  20. <result property="ydtAnalysePic" column="ydt_analyse_pic" />
  21. <result property="ydtVideo" column="ydt_video" />
  22. <result property="ydtVideoLen" column="ydt_video_len" />
  23. <result property="ydtVideoPic" column="ydt_video_pic" />
  24. <result property="ydtVideoSize" column="ydt_video_size" />
  25. </resultMap>
  26. <sql id="selectQuestionYdtJsVo">
  27. select * from question_ydt_js
  28. </sql>
  29. <select id="selectQuestionYdtJsList" parameterType="QuestionYdtJs" resultMap="QuestionYdtJsResult">
  30. <include refid="selectQuestionYdtJsVo"/>
  31. <where>
  32. <if test="kemu != null and kemu != ''"> and kemu = #{kemu}</if>
  33. <if test="qbAnalyse != null and qbAnalyse != ''"> and qb_analyse = #{qbAnalyse}</if>
  34. <if test="qbContent != null and qbContent != ''"> and qb_content = #{qbContent}</if>
  35. <if test="qbReadAnalyse != null and qbReadAnalyse != ''"> and qb_read_analyse = #{qbReadAnalyse}</if>
  36. <if test="qbSkillPicture != null and qbSkillPicture != ''"> and qb_skill_picture = #{qbSkillPicture}</if>
  37. <if test="qbAnswers != null and qbAnswers != ''"> and qb_answers = #{qbAnswers}</if>
  38. <if test="questionids != null and questionids != ''"> and questionIds = #{questionids}</if>
  39. <if test="shortVideoDuration != null and shortVideoDuration != ''"> and short_video_duration = #{shortVideoDuration}</if>
  40. <if test="shortVideoSize != null and shortVideoSize != ''"> and short_video_size = #{shortVideoSize}</if>
  41. <if test="shortVideoUrl != null and shortVideoUrl != ''"> and short_video_url = #{shortVideoUrl}</if>
  42. <if test="shortVideoImage != null and shortVideoImage != ''"> and short_video_image = #{shortVideoImage}</if>
  43. <if test="ydtAnalyse != null and ydtAnalyse != ''"> and ydt_analyse = #{ydtAnalyse}</if>
  44. <if test="ydtAnalysePic != null and ydtAnalysePic != ''"> and ydt_analyse_pic = #{ydtAnalysePic}</if>
  45. <if test="ydtVideo != null and ydtVideo != ''"> and ydt_video = #{ydtVideo}</if>
  46. <if test="ydtVideoLen != null and ydtVideoLen != ''"> and ydt_video_len = #{ydtVideoLen}</if>
  47. <if test="ydtVideoPic != null and ydtVideoPic != ''"> and ydt_video_pic = #{ydtVideoPic}</if>
  48. <if test="ydtVideoSize != null and ydtVideoSize != ''"> and ydt_video_size = #{ydtVideoSize}</if>
  49. </where>
  50. </select>
  51. </mapper>