...
|
...
|
@@ -57,7 +57,6 @@ public class SpecialDealLogicService { |
|
|
if ("Y".equalsIgnoreCase(productIBO.getIsGlobal())) {
|
|
|
specialSearchField.append("全球购,quanqiugou,");
|
|
|
}
|
|
|
|
|
|
if (productIBO.getBundleType() != null) {
|
|
|
// 处理折扣类型 0:正常商品 1:套餐 2:量贩 3:搭配
|
|
|
switch (productIBO.getBundleType()) {
|
...
|
...
|
@@ -74,14 +73,15 @@ public class SpecialDealLogicService { |
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if(productIBO instanceof ProductIndexBO){
|
|
|
ProductIndexBO indexBO = (ProductIndexBO)productIBO;
|
|
|
if("Y".equalsIgnoreCase(indexBO.getIsDiscount())){
|
|
|
if (productIBO instanceof ProductIndexBO) {
|
|
|
ProductIndexBO indexBO = (ProductIndexBO) productIBO;
|
|
|
if ("Y".equalsIgnoreCase(indexBO.getIsDiscount())) {
|
|
|
specialSearchField.append("折扣,zhekou,优惠,youhui,打折,dazhe");
|
|
|
}
|
|
|
if ("Y".equalsIgnoreCase(indexBO.getIsStudentPrice())) {
|
|
|
specialSearchField.append("学生,xuesheng,学生价,xueshengjia");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return specialSearchField.toString();
|
|
|
}
|
|
|
|
...
|
...
|
@@ -100,26 +100,26 @@ 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、处理forbiddenPageIds
|
|
|
String forbiddenPageIds = forbiddenPageIdsLogicService.getSknForbiddenPageIds(productIBO);
|
|
|
productIBO.setForbiddenPageIds(forbiddenPageIds);
|
|
|
|
|
|
|
|
|
// 5、处理物理分类对应的销售分类
|
|
|
List<Integer> physicalChannels = salesCategoryLogicService.getPhysicalChannelsBySmallSortId(productIBO.getSmallSortId());
|
|
|
productIBO.setPhysicalChannels(StringUtils.join(physicalChannels, ","));
|
|
|
if ("Y".equals(productIBO.getIsGlobal())) {
|
|
|
productIBO.setPhysicalChannels("1,2,3,4");
|
|
|
}
|
|
|
|
|
|
|
|
|
// 6、处理限购,防止数据库未设置
|
|
|
if (StringUtils.isBlank(productIBO.getIsLimitbuy())) {
|
|
|
productIBO.setIsLimitbuy("N");
|
...
|
...
|
|