xuekang
2024-05-13 15a0280ae9e7db96fdf0744c722d214d2cb5a0e5
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
<?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.nuvole.four.mapper.ChannelInfoMapper">
    <select id="selectAll" parameterType="com.nuvole.four.domain.ChannelInfo"
            resultType="com.nuvole.four.domain.ChannelInfo">
        select
        <include refid="Base_Column_List"></include>
        from channel_info
        <where>
            <if test="channelName != null and channelName != '' ">
                and channel_name = #{channelName}
            </if>
            <if test="status!=null">
                and status = #{status}
            </if>
        </where>
    </select>
 
    <select id="getPageList" parameterType="com.nuvole.four.domain.ChannelInfo"
            resultType="com.nuvole.four.domain.dto.ChannelInfoDto">
        select ci.*,su.user_name createUserName from channel_info ci left join sys_user su on ci.create_by = su.id
        <where>
            <if test="channelName != null and channelName != '' ">
                and ci.channel_name = #{channelName}
            </if>
            <if test="status!=null">
                and ci.status = #{status}
            </if>
        </where>
    </select>
 
</mapper>