Authored by wangnan

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

@@ -58,6 +58,7 @@ @@ -58,6 +58,7 @@
58 <result column="market_phrase" property="marketPhrase" jdbcType="VARCHAR"/> 58 <result column="market_phrase" property="marketPhrase" jdbcType="VARCHAR"/>
59 <result column="bundle_type" property="bundleType" jdbcType="INTEGER"/> 59 <result column="bundle_type" property="bundleType" jdbcType="INTEGER"/>
60 <result column="coupon_limit_status" property="couponLimitStatus" jdbcType="INTEGER"/> 60 <result column="coupon_limit_status" property="couponLimitStatus" jdbcType="INTEGER"/>
  61 + <result column="is_fobbiden" property="isFobbiden" jdbcType="INTEGER"/>
61 </resultMap> 62 </resultMap>
62 63
63 <sql id="Base_Column_List"> 64 <sql id="Base_Column_List">
@@ -70,7 +71,7 @@ @@ -70,7 +71,7 @@
70 first_shelve_time,shelve_time,expect_arrival_time, create_time, arrival_time, 71 first_shelve_time,shelve_time,expect_arrival_time, create_time, arrival_time,
71 edit_time, auditing_time, is_down, status, is_edit, 72 edit_time, auditing_time, is_down, status, is_edit,
72 vip_discount_type, storage,is_outlets,folder_id,sell_channels, 73 vip_discount_type, storage,is_outlets,folder_id,sell_channels,
73 - elements, age_level,app_type,is_instalment,is_seckill,is_limitbuy,is_deposit_advance,market_phrase,bundle_type,coupon_limit_status 74 + elements, age_level,app_type,is_instalment,is_seckill,is_limitbuy,is_deposit_advance,market_phrase,bundle_type,coupon_limit_status,is_fobbiden
74 </sql> 75 </sql>
75 76
76 <select id="selectByPrimaryKey" resultMap="BaseResultMap" 77 <select id="selectByPrimaryKey" resultMap="BaseResultMap"
@@ -119,7 +120,7 @@ @@ -119,7 +120,7 @@
119 status, is_edit, vip_discount_type, 120 status, is_edit, vip_discount_type,
120 storage, 121 storage,
121 is_outlets, folder_id, 122 is_outlets, folder_id,
122 - sell_channels, elements,age_level,app_type,is_instalment,is_seckill,is_deposit_advance,is_limitbuy,market_phrase,bundle_type,coupon_limit_status) 123 + 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)
123 values 124 values
124 (#{id,jdbcType=INTEGER}, 125 (#{id,jdbcType=INTEGER},
125 #{erpProductId,jdbcType=INTEGER}, 126 #{erpProductId,jdbcType=INTEGER},
@@ -162,7 +163,8 @@ @@ -162,7 +163,8 @@
162 #{isLimitbuy,jdbcType=CHAR}, 163 #{isLimitbuy,jdbcType=CHAR},
163 #{marketPhrase,jdbcType=VARCHAR}, 164 #{marketPhrase,jdbcType=VARCHAR},
164 #{bundleType,jdbcType=INTEGER}, 165 #{bundleType,jdbcType=INTEGER},
165 - #{couponLimitStatus,jdbcType=INTEGER} 166 + #{couponLimitStatus,jdbcType=INTEGER},
  167 + #{isFobbiden,jdbcType=INTEGER}
166 ) 168 )
167 </insert> 169 </insert>
168 170
@@ -333,6 +335,9 @@ @@ -333,6 +335,9 @@
333 <if test="couponLimitStatus != null"> 335 <if test="couponLimitStatus != null">
334 coupon_limit_status = #{couponLimitStatus,jdbcType=INTEGER}, 336 coupon_limit_status = #{couponLimitStatus,jdbcType=INTEGER},
335 </if> 337 </if>
  338 + <if test="couponLimitStatus != null">
  339 + is_fobbiden = #{isFobbiden,jdbcType=INTEGER},
  340 + </if>
336 </set> 341 </set>
337 where id = #{id,jdbcType=INTEGER} 342 where id = #{id,jdbcType=INTEGER}
338 </update> 343 </update>
@@ -1065,6 +1065,9 @@ @@ -1065,6 +1065,9 @@
1065 }, 1065 },
1066 "couponLimitStatus": { 1066 "couponLimitStatus": {
1067 "type":"long" 1067 "type":"long"
  1068 + },
  1069 + "isFobbiden": {
  1070 + "type":"long"
1068 } 1071 }
1069 } 1072 }
1070 } 1073 }
@@ -213,6 +213,7 @@ public class ProductIndexService { @@ -213,6 +213,7 @@ public class ProductIndexService {
213 map.put(ProductIndexEsField.promotionTitle, productIndexBO.getPromotionTitles()); 213 map.put(ProductIndexEsField.promotionTitle, productIndexBO.getPromotionTitles());
214 map.put(ProductIndexEsField.lastReducePriceTime, productIndexBO.getLastReducePriceTime()); 214 map.put(ProductIndexEsField.lastReducePriceTime, productIndexBO.getLastReducePriceTime());
215 map.put(ProductIndexEsField.couponLimitStatus, productIndexBO.getCouponLimitStatus()); 215 map.put(ProductIndexEsField.couponLimitStatus, productIndexBO.getCouponLimitStatus());
  216 + map.put(ProductIndexEsField.isFobbiden, productIndexBO.getIsFobbiden());
216 return map; 217 return map;
217 } 218 }
218 219
@@ -63,6 +63,7 @@ public class ProductIBO implements Serializable { @@ -63,6 +63,7 @@ public class ProductIBO implements Serializable {
63 private String isSeckill; 63 private String isSeckill;
64 private String marketPhrase; 64 private String marketPhrase;
65 private Integer couponLimitStatus; 65 private Integer couponLimitStatus;
  66 + private Integer isFobbiden;
66 67
67 68
68 // inner join brand 69 // inner join brand
@@ -99,6 +100,15 @@ public class ProductIBO implements Serializable { @@ -99,6 +100,15 @@ public class ProductIBO implements Serializable {
99 100
100 private Integer bundleType; // 折扣类型 0:正常商品 1:套餐 2:量贩 3:搭配 101 private Integer bundleType; // 折扣类型 0:正常商品 1:套餐 2:量贩 3:搭配
101 102
  103 +
  104 + public Integer getIsFobbiden() {
  105 + return isFobbiden;
  106 + }
  107 +
  108 + public void setIsFobbiden(Integer isFobbiden) {
  109 + this.isFobbiden = isFobbiden;
  110 + }
  111 +
102 public String getShopName() { 112 public String getShopName() {
103 return shopName; 113 return shopName;
104 } 114 }
1 package com.yoho.search.consumer.service.bo; 1 package com.yoho.search.consumer.service.bo;
2 2
  3 +import com.alibaba.fastjson.JSONArray;
  4 +
3 import java.io.Serializable; 5 import java.io.Serializable;
4 import java.math.BigDecimal; 6 import java.math.BigDecimal;
5 7
6 -import com.alibaba.fastjson.JSONArray;  
7 -  
8 /** 8 /**
9 * 商品实体索引 9 * 商品实体索引
10 * 10 *
@@ -165,6 +165,7 @@ public class ProductILogicService { @@ -165,6 +165,7 @@ public class ProductILogicService {
165 productIBO.setAgeLevel(p.getAgeLevel()); 165 productIBO.setAgeLevel(p.getAgeLevel());
166 productIBO.setAppType(p.getAppType()); 166 productIBO.setAppType(p.getAppType());
167 productIBO.setCouponLimitStatus(p.getCouponLimitStatus()); 167 productIBO.setCouponLimitStatus(p.getCouponLimitStatus());
  168 + productIBO.setIsFobbiden(p.getIsFobbiden());
168 //品牌 169 //品牌
169 this.buildBrand(brandMap,p,productIBO); 170 this.buildBrand(brandMap,p,productIBO);
170 //品类 171 //品类