Authored by wangnan

商品索引加字段,是否屏蔽,搜索支持过滤

... ... @@ -58,6 +58,7 @@
<result column="market_phrase" property="marketPhrase" jdbcType="VARCHAR"/>
<result column="bundle_type" property="bundleType" jdbcType="INTEGER"/>
<result column="coupon_limit_status" property="couponLimitStatus" jdbcType="INTEGER"/>
<result column="is_fobbiden" property="isFobbiden" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
... ... @@ -70,7 +71,7 @@
first_shelve_time,shelve_time,expect_arrival_time, create_time, arrival_time,
edit_time, auditing_time, is_down, status, is_edit,
vip_discount_type, storage,is_outlets,folder_id,sell_channels,
elements, age_level,app_type,is_instalment,is_seckill,is_limitbuy,is_deposit_advance,market_phrase,bundle_type,coupon_limit_status
elements, age_level,app_type,is_instalment,is_seckill,is_limitbuy,is_deposit_advance,market_phrase,bundle_type,coupon_limit_status,is_fobbiden
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap"
... ... @@ -119,7 +120,7 @@
status, is_edit, vip_discount_type,
storage,
is_outlets, folder_id,
sell_channels, elements,age_level,app_type,is_instalment,is_seckill,is_deposit_advance,is_limitbuy,market_phrase,bundle_type,coupon_limit_status)
sell_channels, elements,age_level,app_type,is_instalment,is_seckill,is_deposit_advance,is_limitbuy,market_phrase,bundle_type,coupon_limit_status,is_fobbiden)
values
(#{id,jdbcType=INTEGER},
#{erpProductId,jdbcType=INTEGER},
... ... @@ -162,7 +163,8 @@
#{isLimitbuy,jdbcType=CHAR},
#{marketPhrase,jdbcType=VARCHAR},
#{bundleType,jdbcType=INTEGER},
#{couponLimitStatus,jdbcType=INTEGER}
#{couponLimitStatus,jdbcType=INTEGER},
#{isFobbiden,jdbcType=INTEGER}
)
</insert>
... ... @@ -333,6 +335,9 @@
<if test="couponLimitStatus != null">
coupon_limit_status = #{couponLimitStatus,jdbcType=INTEGER},
</if>
<if test="couponLimitStatus != null">
is_fobbiden = #{isFobbiden,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
... ...
... ... @@ -1065,6 +1065,9 @@
},
"couponLimitStatus": {
"type":"long"
},
"isFobbiden": {
"type":"long"
}
}
}
... ...
... ... @@ -213,6 +213,7 @@ public class ProductIndexService {
map.put(ProductIndexEsField.promotionTitle, productIndexBO.getPromotionTitles());
map.put(ProductIndexEsField.lastReducePriceTime, productIndexBO.getLastReducePriceTime());
map.put(ProductIndexEsField.couponLimitStatus, productIndexBO.getCouponLimitStatus());
map.put(ProductIndexEsField.isFobbiden, productIndexBO.getIsFobbiden());
return map;
}
... ...
... ... @@ -63,6 +63,7 @@ public class ProductIBO implements Serializable {
private String isSeckill;
private String marketPhrase;
private Integer couponLimitStatus;
private Integer isFobbiden;
// inner join brand
... ... @@ -99,6 +100,15 @@ public class ProductIBO implements Serializable {
private Integer bundleType; // 折扣类型 0:正常商品 1:套餐 2:量贩 3:搭配
public Integer getIsFobbiden() {
return isFobbiden;
}
public void setIsFobbiden(Integer isFobbiden) {
this.isFobbiden = isFobbiden;
}
public String getShopName() {
return shopName;
}
... ...
package com.yoho.search.consumer.service.bo;
import com.alibaba.fastjson.JSONArray;
import java.io.Serializable;
import java.math.BigDecimal;
import com.alibaba.fastjson.JSONArray;
/**
* 商品实体索引
*
... ...
... ... @@ -165,6 +165,7 @@ public class ProductILogicService {
productIBO.setAgeLevel(p.getAgeLevel());
productIBO.setAppType(p.getAppType());
productIBO.setCouponLimitStatus(p.getCouponLimitStatus());
productIBO.setIsFobbiden(p.getIsFobbiden());
//品牌
this.buildBrand(brandMap,p,productIBO);
//品类
... ...