2021与蓝度共同重构项目,服务端
liuhaonan
2022-11-18 385b687cc1a0a8f6de2320af6b6e0d654cd658ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?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>