12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?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.vip.mapper.VipExamVideoMapper">
- <resultMap type="VipExamVideo" id="VipExamVideoResult">
- <result property="id" column="id" />
- <result property="videoName" column="video_name" />
- <result property="seq" column="seq" />
- <result property="videoCover" column="video_cover" />
- <result property="videoUrl" column="video_url" />
- <result property="videoSubject" column="video_subject" />
- <result property="state" column="state" />
- <result property="horizontal" column="horizontal" />
- <result property="provinceId" column="province_id" />
- <result property="cityId" column="city_id" />
- <result property="province" column="province" />
- <result property="city" column="city" />
- <result property="createTime" column="create_time" />
- <result property="updateTime" column="update_time" />
- <result property="examId" column="exam_id" />
- <result property="examName" column="exam_name" />
- </resultMap>
- <sql id="selectVipExamVideoVo">
- select * from vip_exam_video
- </sql>
- <select id="selectVipExamVideoList" parameterType="com.miaxis.vip.domain.VipExamVideo" resultMap="VipExamVideoResult">
- <include refid="selectVipExamVideoVo"/>
- <where>
- <if test="videoName != null and videoName != ''"> and video_name like concat('%', #{videoName}, '%')</if>
- <if test="videoCover != null and videoCover != ''"> and video_cover = #{videoCover}</if>
- <if test="videoUrl != null and videoUrl != ''"> and video_url = #{videoUrl}</if>
- <if test="videoSubject != null "> and video_subject = #{videoSubject}</if>
- <if test="state != null "> and state = #{state}</if>
- <if test="horizontal != null "> and horizontal = #{horizontal}</if>
- <if test="provinceId != null and provinceId != ''"> and province_id = #{provinceId}</if>
- <if test="cityId != null and cityId != ''"> and city_id = #{cityId}</if>
- <if test="province != null and province != ''"> and province = #{province}</if>
- <if test="city != null and city != ''"> and city = #{city}</if>
- <if test="examId != null "> and exam_id = #{examId}</if>
- <if test="examName != null and examName != ''"> and exam_name like concat('%', #{examName}, '%')</if>
- </where>
- order by exam_id,seq
- </select>
- </mapper>
|