<?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>
|