Authored by mingdan.ge

直通车

... ... @@ -4,6 +4,9 @@
<resultMap id="BaseResultMap" type="com.yoho.search.dal.model.CsSearchResource">
<id column="id" property="id" jdbcType="INTEGER"/>
<result column="name" property="name" jdbcType="VARCHAR"/>
<result column="theme" property="theme" jdbcType="VARCHAR"/>
<result column="bannerType" property="bannerType" jdbcType="INTEGER"/>
<result column="skn" property="skn" jdbcType="VARCHAR"/>
<result column="image" property="image" jdbcType="VARCHAR"/>
<result column="link_url" property="linkUrl" jdbcType="VARCHAR"/>
<result column="status" property="status" jdbcType="INTEGER"/>
... ... @@ -15,7 +18,7 @@
</resultMap>
<sql id="Base_Column_List">
id, `name`, image, link_url, status, update_time, order_by, resource_type, begin_time, end_time
id, `name`,theme,banner_type,skn, image, link_url, status, update_time, order_by, resource_type, begin_time, end_time
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
... ... @@ -32,11 +35,12 @@
<insert id="insert" parameterType="com.yoho.search.dal.model.CsSearchResource">
insert into cs_search_resource (id, `name`, image,
link_url, status, update_time,
link_url, status, update_time,theme,banner_type,skn,
order_by, resource_type, begin_time,
end_time)
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR},
#{linkUrl,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
#{theme,jdbcType=VARCHAR}, #{bannerType,jdbcType=INTEGER}, #{skn,jdbcType=VARCHAR},
#{orderBy,jdbcType=INTEGER}, #{resourceType,jdbcType=INTEGER}, #{beginTime,jdbcType=INTEGER},
#{endTime,jdbcType=INTEGER})
</insert>
... ... @@ -53,6 +57,15 @@
<if test="image != null">
image,
</if>
<if test="theme != null">
theme,
</if>
<if test="bannerType != null">
banner_type,
</if>
<if test="skn != null">
skn,
</if>
<if test="linkUrl != null">
link_url,
</if>
... ... @@ -85,6 +98,15 @@
<if test="image != null">
#{image,jdbcType=VARCHAR},
</if>
<if test="theme != null">
#{theme,jdbcType=VARCHAR},
</if>
<if test="bannerType != null">
#{bannerType,jdbcType=INTEGER},
</if>
<if test="skn != null">
#{skn,jdbcType=VARCHAR},
</if>
<if test="linkUrl != null">
#{linkUrl,jdbcType=VARCHAR},
</if>
... ... @@ -118,6 +140,15 @@
<if test="image != null">
image = #{image,jdbcType=VARCHAR},
</if>
<if test="theme != null">
theme = #{theme,jdbcType=VARCHAR},
</if>
<if test="bannerType != null">
banner_type = #{bannerType,jdbcType=INTEGER},
</if>
<if test="skn != null">
skn = #{skn,jdbcType=VARCHAR},
</if>
<if test="linkUrl != null">
link_url = #{linkUrl,jdbcType=VARCHAR},
</if>
... ... @@ -147,6 +178,9 @@
update cs_search_resource
set `name` = #{name,jdbcType=VARCHAR},
image = #{image,jdbcType=VARCHAR},
theme = #{theme,jdbcType=VARCHAR},
banner_type = #{bannerType,jdbcType=INTEGER},
skn = #{skn,jdbcType=VARCHAR},
link_url = #{linkUrl,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=INTEGER},
... ...
... ... @@ -13,6 +13,12 @@
"name": {
"type": "keyword"
},
"theme": {
"type": "keyword"
},
"skn": {
"type": "keyword"
},
"image": {
"type": "keyword"
},
... ... @@ -22,6 +28,9 @@
"status": {
"type": "integer"
},
"bannerType": {
"type": "integer"
},
"updateTime": {
"type": "integer"
},
... ...