WebNoteJsMapper.xml 1.3 KB

1234567891011121314151617181920212223242526272829
  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.WebNoteJsMapper">
  6. <resultMap type="WebNoteJs" id="WebNoteJsResult">
  7. <result property="id" column="id" />
  8. <result property="qbAnalyse" column="qb_analyse" />
  9. <result property="qbReadAnalyse" column="qb_read_analyse" />
  10. <result property="qbSkillAudioLink" column="qb_skill_audio_link" />
  11. <result property="createTime" column="create_time" />
  12. <result property="updateTime" column="update_time" />
  13. </resultMap>
  14. <sql id="selectWebNoteJsVo">
  15. select * from web_note_js
  16. </sql>
  17. <select id="selectWebNoteJsList" parameterType="WebNoteJs" resultMap="WebNoteJsResult">
  18. <include refid="selectWebNoteJsVo"/>
  19. <where>
  20. <if test="qbAnalyse != null and qbAnalyse != ''"> and qb_analyse = #{qbAnalyse}</if>
  21. <if test="qbReadAnalyse != null and qbReadAnalyse != ''"> and qb_read_analyse = #{qbReadAnalyse}</if>
  22. <if test="qbSkillAudioLink != null and qbSkillAudioLink != ''"> and qb_skill_audio_link = #{qbSkillAudioLink}</if>
  23. </where>
  24. </select>
  25. </mapper>