VipExamVideoMapper.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.vip.mapper.VipExamVideoMapper">
  6. <resultMap type="VipExamVideo" id="VipExamVideoResult">
  7. <result property="id" column="id" />
  8. <result property="videoName" column="video_name" />
  9. <result property="seq" column="seq" />
  10. <result property="videoCover" column="video_cover" />
  11. <result property="videoUrl" column="video_url" />
  12. <result property="videoSubject" column="video_subject" />
  13. <result property="state" column="state" />
  14. <result property="horizontal" column="horizontal" />
  15. <result property="provinceId" column="province_id" />
  16. <result property="cityId" column="city_id" />
  17. <result property="province" column="province" />
  18. <result property="city" column="city" />
  19. <result property="createTime" column="create_time" />
  20. <result property="updateTime" column="update_time" />
  21. <result property="examId" column="exam_id" />
  22. <result property="examName" column="exam_name" />
  23. </resultMap>
  24. <sql id="selectVipExamVideoVo">
  25. select * from vip_exam_video
  26. </sql>
  27. <select id="selectVipExamVideoList" parameterType="com.miaxis.vip.domain.VipExamVideo" resultMap="VipExamVideoResult">
  28. <include refid="selectVipExamVideoVo"/>
  29. <where>
  30. <if test="videoName != null and videoName != ''"> and video_name like concat('%', #{videoName}, '%')</if>
  31. <if test="videoCover != null and videoCover != ''"> and video_cover = #{videoCover}</if>
  32. <if test="videoUrl != null and videoUrl != ''"> and video_url = #{videoUrl}</if>
  33. <if test="videoSubject != null "> and video_subject = #{videoSubject}</if>
  34. <if test="state != null "> and state = #{state}</if>
  35. <if test="horizontal != null "> and horizontal = #{horizontal}</if>
  36. <if test="provinceId != null and provinceId != ''"> and province_id = #{provinceId}</if>
  37. <if test="cityId != null and cityId != ''"> and city_id = #{cityId}</if>
  38. <if test="province != null and province != ''"> and province = #{province}</if>
  39. <if test="city != null and city != ''"> and city = #{city}</if>
  40. <if test="examId != null "> and exam_id = #{examId}</if>
  41. <if test="examName != null and examName != ''"> and exam_name like concat('%', #{examName}, '%')</if>
  42. </where>
  43. order by exam_id,seq
  44. </select>
  45. </mapper>