|
@@ -4,6 +4,9 @@ |
|
@@ -4,6 +4,9 @@ |
4
|
<resultMap id="BaseResultMap" type="com.yoho.search.dal.model.CsSearchResource">
|
4
|
<resultMap id="BaseResultMap" type="com.yoho.search.dal.model.CsSearchResource">
|
5
|
<id column="id" property="id" jdbcType="INTEGER"/>
|
5
|
<id column="id" property="id" jdbcType="INTEGER"/>
|
6
|
<result column="name" property="name" jdbcType="VARCHAR"/>
|
6
|
<result column="name" property="name" jdbcType="VARCHAR"/>
|
|
|
7
|
+ <result column="theme" property="theme" jdbcType="VARCHAR"/>
|
|
|
8
|
+ <result column="bannerType" property="bannerType" jdbcType="INTEGER"/>
|
|
|
9
|
+ <result column="skn" property="skn" jdbcType="VARCHAR"/>
|
7
|
<result column="image" property="image" jdbcType="VARCHAR"/>
|
10
|
<result column="image" property="image" jdbcType="VARCHAR"/>
|
8
|
<result column="link_url" property="linkUrl" jdbcType="VARCHAR"/>
|
11
|
<result column="link_url" property="linkUrl" jdbcType="VARCHAR"/>
|
9
|
<result column="status" property="status" jdbcType="INTEGER"/>
|
12
|
<result column="status" property="status" jdbcType="INTEGER"/>
|
|
@@ -15,7 +18,7 @@ |
|
@@ -15,7 +18,7 @@ |
15
|
</resultMap>
|
18
|
</resultMap>
|
16
|
|
19
|
|
17
|
<sql id="Base_Column_List">
|
20
|
<sql id="Base_Column_List">
|
18
|
- id, `name`, image, link_url, status, update_time, order_by, resource_type, begin_time, end_time
|
21
|
+ id, `name`,theme,banner_type,skn, image, link_url, status, update_time, order_by, resource_type, begin_time, end_time
|
19
|
</sql>
|
22
|
</sql>
|
20
|
|
23
|
|
21
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
24
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
@@ -32,11 +35,12 @@ |
|
@@ -32,11 +35,12 @@ |
32
|
|
35
|
|
33
|
<insert id="insert" parameterType="com.yoho.search.dal.model.CsSearchResource">
|
36
|
<insert id="insert" parameterType="com.yoho.search.dal.model.CsSearchResource">
|
34
|
insert into cs_search_resource (id, `name`, image,
|
37
|
insert into cs_search_resource (id, `name`, image,
|
35
|
- link_url, status, update_time,
|
38
|
+ link_url, status, update_time,theme,banner_type,skn,
|
36
|
order_by, resource_type, begin_time,
|
39
|
order_by, resource_type, begin_time,
|
37
|
end_time)
|
40
|
end_time)
|
38
|
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR},
|
41
|
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR},
|
39
|
#{linkUrl,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
|
42
|
#{linkUrl,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
|
|
|
43
|
+ #{theme,jdbcType=VARCHAR}, #{bannerType,jdbcType=INTEGER}, #{skn,jdbcType=VARCHAR},
|
40
|
#{orderBy,jdbcType=INTEGER}, #{resourceType,jdbcType=INTEGER}, #{beginTime,jdbcType=INTEGER},
|
44
|
#{orderBy,jdbcType=INTEGER}, #{resourceType,jdbcType=INTEGER}, #{beginTime,jdbcType=INTEGER},
|
41
|
#{endTime,jdbcType=INTEGER})
|
45
|
#{endTime,jdbcType=INTEGER})
|
42
|
</insert>
|
46
|
</insert>
|
|
@@ -53,6 +57,15 @@ |
|
@@ -53,6 +57,15 @@ |
53
|
<if test="image != null">
|
57
|
<if test="image != null">
|
54
|
image,
|
58
|
image,
|
55
|
</if>
|
59
|
</if>
|
|
|
60
|
+ <if test="theme != null">
|
|
|
61
|
+ theme,
|
|
|
62
|
+ </if>
|
|
|
63
|
+ <if test="bannerType != null">
|
|
|
64
|
+ banner_type,
|
|
|
65
|
+ </if>
|
|
|
66
|
+ <if test="skn != null">
|
|
|
67
|
+ skn,
|
|
|
68
|
+ </if>
|
56
|
<if test="linkUrl != null">
|
69
|
<if test="linkUrl != null">
|
57
|
link_url,
|
70
|
link_url,
|
58
|
</if>
|
71
|
</if>
|
|
@@ -85,6 +98,15 @@ |
|
@@ -85,6 +98,15 @@ |
85
|
<if test="image != null">
|
98
|
<if test="image != null">
|
86
|
#{image,jdbcType=VARCHAR},
|
99
|
#{image,jdbcType=VARCHAR},
|
87
|
</if>
|
100
|
</if>
|
|
|
101
|
+ <if test="theme != null">
|
|
|
102
|
+ #{theme,jdbcType=VARCHAR},
|
|
|
103
|
+ </if>
|
|
|
104
|
+ <if test="bannerType != null">
|
|
|
105
|
+ #{bannerType,jdbcType=INTEGER},
|
|
|
106
|
+ </if>
|
|
|
107
|
+ <if test="skn != null">
|
|
|
108
|
+ #{skn,jdbcType=VARCHAR},
|
|
|
109
|
+ </if>
|
88
|
<if test="linkUrl != null">
|
110
|
<if test="linkUrl != null">
|
89
|
#{linkUrl,jdbcType=VARCHAR},
|
111
|
#{linkUrl,jdbcType=VARCHAR},
|
90
|
</if>
|
112
|
</if>
|
|
@@ -118,6 +140,15 @@ |
|
@@ -118,6 +140,15 @@ |
118
|
<if test="image != null">
|
140
|
<if test="image != null">
|
119
|
image = #{image,jdbcType=VARCHAR},
|
141
|
image = #{image,jdbcType=VARCHAR},
|
120
|
</if>
|
142
|
</if>
|
|
|
143
|
+ <if test="theme != null">
|
|
|
144
|
+ theme = #{theme,jdbcType=VARCHAR},
|
|
|
145
|
+ </if>
|
|
|
146
|
+ <if test="bannerType != null">
|
|
|
147
|
+ banner_type = #{bannerType,jdbcType=INTEGER},
|
|
|
148
|
+ </if>
|
|
|
149
|
+ <if test="skn != null">
|
|
|
150
|
+ skn = #{skn,jdbcType=VARCHAR},
|
|
|
151
|
+ </if>
|
121
|
<if test="linkUrl != null">
|
152
|
<if test="linkUrl != null">
|
122
|
link_url = #{linkUrl,jdbcType=VARCHAR},
|
153
|
link_url = #{linkUrl,jdbcType=VARCHAR},
|
123
|
</if>
|
154
|
</if>
|
|
@@ -147,6 +178,9 @@ |
|
@@ -147,6 +178,9 @@ |
147
|
update cs_search_resource
|
178
|
update cs_search_resource
|
148
|
set `name` = #{name,jdbcType=VARCHAR},
|
179
|
set `name` = #{name,jdbcType=VARCHAR},
|
149
|
image = #{image,jdbcType=VARCHAR},
|
180
|
image = #{image,jdbcType=VARCHAR},
|
|
|
181
|
+ theme = #{theme,jdbcType=VARCHAR},
|
|
|
182
|
+ banner_type = #{bannerType,jdbcType=INTEGER},
|
|
|
183
|
+ skn = #{skn,jdbcType=VARCHAR},
|
150
|
link_url = #{linkUrl,jdbcType=VARCHAR},
|
184
|
link_url = #{linkUrl,jdbcType=VARCHAR},
|
151
|
status = #{status,jdbcType=INTEGER},
|
185
|
status = #{status,jdbcType=INTEGER},
|
152
|
update_time = #{updateTime,jdbcType=INTEGER},
|
186
|
update_time = #{updateTime,jdbcType=INTEGER},
|