ChannelConfigMapper.xml
3.32 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?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="cn.com.glsx.dj.system.mapper.ChannelConfigMapper" >
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.system.model.ChannelConfig" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="INTEGER" />
<result column="channel_name" property="channelName" jdbcType="VARCHAR" />
<result column="channel_logo" property="channelLogo" jdbcType="VARCHAR" />
<result column="login_logo" property="loginLogo" jdbcType="VARCHAR" />
<result column="wechat_login_logo" property="wechatLoginLogo" jdbcType="VARCHAR" />
<result column="site_logo" property="siteLogo" jdbcType="VARCHAR" />
<result column="channel_web_url" property="channelWebUrl" jdbcType="VARCHAR" />
<result column="channel_web_name" property="channelWebName" jdbcType="VARCHAR" />
<result column="platform_group" property="platformGroup" jdbcType="VARCHAR" />
<result column="platform_channel_name" property="platformChannelName" jdbcType="VARCHAR" />
<result column="platform_channel_code" property="platformChannelCode" jdbcType="VARCHAR" />
<result column="channel_type" property="channelType"/>
<result column="wechat_appid" property="wechatAppid"/>
<result column="wechat_public_url" property="wechatPublicUrl"/>
<result column="created_by" property="createdBy" jdbcType="VARCHAR" />
<result column="created_date" property="createdDate" jdbcType="TIMESTAMP" />
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
<result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" />
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
</resultMap>
<resultMap id="DTOResultMap" type="cn.com.glsx.dj.system.dto.ChannelConfigDTO" extends="BaseResultMap">
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
-->
id, channel_name, channel_logo,login_logo,wechat_login_logo,site_logo, channel_web_url, channel_web_name, platform_group,
platform_channel_name, platform_channel_code,channel_type,wechat_appid,wechat_public_url,
created_by, created_date, updated_by, updated_date, deleted_flag
</sql>
<select id="list" parameterType="cn.com.glsx.dj.system.dto.ChannelConfigDTO" resultMap="DTOResultMap">
select <include refid="Base_Column_List"/> from dj_system_channel_config
<where>
deleted_flag = 'N'
<if test="channelName != null and channelName !=''">
and channel_name like CONCAT('%',#{channelName},'%')
</if>
<if test="platformGroup != null and platformGroup !=''">
and platform_group like CONCAT('%',#{platformGroup},'%')
</if>
<if test="platformChannelName != null and platformChannelName !=''">
and platform_channel_name like CONCAT('%',#{platformChannelName},'%')
</if>
<if test="platformChannelCode != null and platformChannelCode !=''">
and platform_channel_code = #{platformChannelCode}
</if>
<if test="wechatAppid != null and wechatAppid !=''">
and wechat_appid = #{wechatAppid}
</if>
<if test="channelWebUrl != null and channelWebUrl !=''">
and FIND_IN_SET(#{channelWebUrl},channel_web_url)
</if>
</where>
order by id desc
</select>
</mapper>