Authored by 胡古飞

ufoproduct索引增加show_channel字段

... ... @@ -23,13 +23,14 @@
<result column="order_by" property="orderBy" jdbcType="INTEGER"/>
<result column="is_syn_calender" property="isSynCalender" jdbcType="TINYINT" />
<result column="offer_price" property="offerPrice" jdbcType="DECIMAL" />
<result column="show_channel" property="showChannel" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List">
id, product_name, product_code, max_sort_id,mid_sort_id, brand_id, series_id, gender, sale_time,
min_price, max_price, shelve_time, edit_time, shelve_status,
storage, key_words, del_status,order_by,is_syn_calender,
offer_price
offer_price,show_channel
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
... ... @@ -107,6 +108,9 @@
<if test="offerPrice != null" >
offer_price,
</if>
<if test="showChannel != null" >
show_channel,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
... ... @@ -169,6 +173,9 @@
<if test="offerPrice != null" >
#{offerPrice,jdbcType=DECIMAL},
</if>
<if test="showChannel != null" >
#{showChannel,jdbcType=VARCHAR},
</if>
</trim>
</insert>
... ... @@ -232,6 +239,9 @@
<if test="offerPrice != null" >
offer_price = #{offerPrice,jdbcType=DECIMAL},
</if>
<if test="showChannel != null" >
show_channel = #{showChannel,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
... ... @@ -256,7 +266,8 @@
del_status = #{delStatus,jdbcType=TINYINT},
order_by = #{orderBy,jdbcType=INTEGER},
is_syn_calender = #{isSynCalender,jdbcType=TINYINT},
offer_price = #{offerPrice,jdbcType=DECIMAL}
offer_price = #{offerPrice,jdbcType=DECIMAL},
show_channel = #{showChannel,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
... ...
... ... @@ -242,6 +242,10 @@
},
"isLimitSale": {
"type": "keyword"
},
"showChannel": {
"type": "text",
"analyzer": "comma_spliter"
}
}
}
... ...
... ... @@ -31,6 +31,8 @@ public class UfoProductIndexBO {
private String keyWords;
private Byte delStatus;
private Integer orderBy;
private String showChannel;
//brand
private String brandName;
private String brandNameEn;
... ...