...
|
...
|
@@ -55,20 +55,20 @@ public class SpecialDealLogicService { |
|
|
specialSearchField.append("全球购,quanqiugou,");
|
|
|
}
|
|
|
|
|
|
if (productIBO.getBundleType() != null){
|
|
|
if (productIBO.getBundleType() != null) {
|
|
|
// 处理折扣类型 0:正常商品 1:套餐 2:量贩 3:搭配
|
|
|
switch (productIBO.getBundleType()){
|
|
|
case 1:
|
|
|
specialSearchField.append("套餐,taocan,");
|
|
|
break;
|
|
|
case 2:
|
|
|
specialSearchField.append("量贩,liangfan,");
|
|
|
break;
|
|
|
case 3:
|
|
|
specialSearchField.append("搭配,dapei,");
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
switch (productIBO.getBundleType()) {
|
|
|
case 1:
|
|
|
specialSearchField.append("套餐,taocan,");
|
|
|
break;
|
|
|
case 2:
|
|
|
specialSearchField.append("量贩,liangfan,");
|
|
|
break;
|
|
|
case 3:
|
|
|
specialSearchField.append("搭配,dapei,");
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -90,19 +90,22 @@ public class SpecialDealLogicService { |
|
|
// 1、处理ageLevel
|
|
|
String ageLevel = specialDealAgeLevel(productIBO.getAgeLevel());
|
|
|
productIBO.setAgeLevel(ageLevel);
|
|
|
|
|
|
|
|
|
// 2、处理specialSearchField
|
|
|
String specialSearchField = getSpecialSearchFieldFromProduct(productIBO);
|
|
|
productIBO.setSpecialSearchField(specialSearchField);
|
|
|
|
|
|
|
|
|
// 3、处理isForiddenSortBrand
|
|
|
int isForbiddenSortBrand = this.getIsForbiddenSortBrand(productIBO);
|
|
|
productIBO.setIsForbiddenSortBrand(isForbiddenSortBrand);
|
|
|
|
|
|
|
|
|
// 4、处理物理分类对应的销售分类
|
|
|
List<Integer> physicalChannels = salesCategoryLogicService.getPhysicalChannelsBySmallSortId(productIBO.getSmallSortId());
|
|
|
productIBO.setPhysicalChannels(StringUtils.join(physicalChannels, ","));
|
|
|
|
|
|
if ("Y".equals(productIBO.getIsGlobal())) {
|
|
|
productIBO.setPhysicalChannels("1,2,3,4");
|
|
|
}
|
|
|
|
|
|
// 5、处理限购,防止数据库未设置
|
|
|
if (StringUtils.isBlank(productIBO.getIsLimitbuy())) {
|
|
|
productIBO.setIsLimitbuy("N");
|
...
|
...
|
|