<?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.sandu.ximon.dao.mapper.NewNovaProgramMapper">
|
|
<resultMap id="BaseResultMap" type="com.sandu.ximon.dao.domain.NewNovaProgram">
|
<id property="id" column="id" jdbcType="BIGINT"/>
|
<result property="pid" column="pid" jdbcType="INTEGER"/>
|
<result property="name" column="name" jdbcType="VARCHAR"/>
|
<result property="insertPlay" column="insert_play" jdbcType="INTEGER"/>
|
<result property="startPlayAfterTransferred" column="start_play_after_transferred" jdbcType="INTEGER"/>
|
<result property="pageInfoJsonStr" column="page_info_json_str" jdbcType="VARCHAR"/>
|
<result property="width" column="width" jdbcType="INTEGER"/>
|
<result property="height" column="height" jdbcType="INTEGER"/>
|
<result property="screenShot" column="screen_shot" jdbcType="VARCHAR"/>
|
<result property="userId" column="user_id" jdbcType="BIGINT"/>
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
id
|
,pid,name,
|
insert_play,start_play_after_transferred,page_info_json_str,
|
width,height,screen_shot,
|
user_id,create_time,update_time
|
</sql>
|
<select id="listProgram" resultType="com.sandu.ximon.dao.bo.NewNovaProgramBo">
|
SELECT * FROM `new_nova_program`
|
<where>
|
1=1
|
<if test="keyword != null and keyword != ''">
|
AND name LIKE CONCAT(CONCAT('%', #{keyword}), '%')
|
</if>
|
<if test="userId != null">
|
AND user_id = #{userId}
|
</if>
|
</where>
|
</select>
|
</mapper>
|