Authored by hugufei

FIX

... ... @@ -111,7 +111,7 @@ public class SceneRecallProductListService {
int productSkn = MapUtils.getIntValue(productInfo,"product_skn",0);
RecallSknInfo recallSknInfo = sknRecallTypeMap.get(productSkn);
if(recallSknInfo==null || recallSknInfo.getRecallType()==null){
productInfo.put("recall_type","default");
productInfo.put("recall_type","DEFAULT");
}else{
productInfo.put("recall_type",recallSknInfo.getRecallType());
}
... ...
... ... @@ -106,7 +106,7 @@ public class RecallResultBuilder {
Iterator<RecallMergerResult.SknResult> iterator = sknResultList.iterator();
while (iterator.hasNext()) {
RecallMergerResult.SknResult sknResult= iterator.next();
if (sknResult.getRequestTypes().contains(StrategyNameEnum.FIRST_PRODUCT_SKN.name())) {
if (sknResult.getRequestTypes().contains(StrategyNameEnum.FIRST_SKN.name())) {
results.add(sknResult);
iterator.remove();
break;
... ...
... ... @@ -3,7 +3,7 @@ package com.yoho.search.recall.scene.beans.strategy;
public enum StrategyNameEnum {
COMMON,
FIRST_PRODUCT_SKN,
FIRST_SKN,
DIRECT_TRAIN,
NEW_SHOP,
ADD_FLOW,
... ...
... ... @@ -29,7 +29,7 @@ public class CommonFirstSknStrategy implements IStrategy {
@Override
public StrategyNameEnum nameEnum() {
return StrategyNameEnum.FIRST_PRODUCT_SKN;
return StrategyNameEnum.FIRST_SKN;
}
@Override
... ...