...
|
...
|
@@ -7,11 +7,12 @@ |
|
|
<result column="match_type" property="matchType" jdbcType="INTEGER" />
|
|
|
<result column="product_type" property="productType" jdbcType="INTEGER" />
|
|
|
<result column="sort_ids" property="sortIds" jdbcType="VARCHAR" />
|
|
|
<result column="brand_ids" property="brandIds" jdbcType="VARCHAR" />
|
|
|
<result column="yoho_brand_ids" property="yohoBrandIds" jdbcType="VARCHAR" />
|
|
|
<result column="ufo_brand_ids" property="ufoBrandIds" jdbcType="VARCHAR" />
|
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, keyword, match_type, product_type, sort_ids, brand_ids, update_time
|
|
|
id, keyword, match_type, product_type, sort_ids, yoho_brand_ids,ufo_brand_ids, update_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
...
|
...
|
@@ -25,10 +26,10 @@ |
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.yoho.search.dal.model.CsSearchKeywordConfig" >
|
|
|
insert into cs_search_keyword_config (id, keyword, match_type,
|
|
|
product_type, sort_ids, brand_ids,
|
|
|
product_type, sort_ids, yoho_brand_ids,ufo_brand_ids,
|
|
|
update_time)
|
|
|
values (#{id,jdbcType=INTEGER}, #{keyword,jdbcType=VARCHAR}, #{matchType,jdbcType=INTEGER},
|
|
|
#{productType,jdbcType=INTEGER}, #{sortIds,jdbcType=VARCHAR}, #{brandIds,jdbcType=VARCHAR},
|
|
|
#{productType,jdbcType=INTEGER}, #{sortIds,jdbcType=VARCHAR}, #{yohoBrandIds,jdbcType=VARCHAR}, #{ufoBrandIds,jdbcType=VARCHAR},
|
|
|
#{updateTime,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.CsSearchKeywordConfig" >
|
...
|
...
|
@@ -49,9 +50,12 @@ |
|
|
<if test="sortIds != null" >
|
|
|
sort_ids,
|
|
|
</if>
|
|
|
<if test="brandIds != null" >
|
|
|
brand_ids,
|
|
|
<if test="yohoBrandIds != null" >
|
|
|
yoho_brand_ids,
|
|
|
</if>
|
|
|
<if test="ufoBrandIds != null" >
|
|
|
ufo_brand_ids,
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
update_time,
|
|
|
</if>
|
...
|
...
|
@@ -72,9 +76,12 @@ |
|
|
<if test="sortIds != null" >
|
|
|
#{sortIds,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="brandIds != null" >
|
|
|
#{brandIds,jdbcType=VARCHAR},
|
|
|
<if test="yohoBrandIds != null" >
|
|
|
#{yohoBrandIds,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="ufoBrandIds != null" >
|
|
|
#{ufoBrandIds,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
#{updateTime,jdbcType=INTEGER},
|
|
|
</if>
|
...
|
...
|
@@ -95,9 +102,12 @@ |
|
|
<if test="sortIds != null" >
|
|
|
sort_ids = #{sortIds,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="brandIds != null" >
|
|
|
brand_ids = #{brandIds,jdbcType=VARCHAR},
|
|
|
<if test="yohoBrandIds != null" >
|
|
|
yoho_brand_ids = #{yohoBrandIds,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="ufoBrandIds != null" >
|
|
|
ufo_brand_ids = #{ufoBrandIds,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
</if>
|
...
|
...
|
@@ -110,7 +120,8 @@ |
|
|
match_type = #{matchType,jdbcType=INTEGER},
|
|
|
product_type = #{productType,jdbcType=INTEGER},
|
|
|
sort_ids = #{sortIds,jdbcType=VARCHAR},
|
|
|
brand_ids = #{brandIds,jdbcType=VARCHAR},
|
|
|
yoho_brand_ids = #{yohoBrandIds,jdbcType=VARCHAR},
|
|
|
ufo_brand_ids = #{ufoBrandIds,jdbcType=VARCHAR},
|
|
|
update_time = #{updateTime,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
...
|
...
|
|