Showing
4 changed files
with
4 additions
and
4 deletions
@@ -111,7 +111,7 @@ public class SceneRecallProductListService { | @@ -111,7 +111,7 @@ public class SceneRecallProductListService { | ||
111 | int productSkn = MapUtils.getIntValue(productInfo,"product_skn",0); | 111 | int productSkn = MapUtils.getIntValue(productInfo,"product_skn",0); |
112 | RecallSknInfo recallSknInfo = sknRecallTypeMap.get(productSkn); | 112 | RecallSknInfo recallSknInfo = sknRecallTypeMap.get(productSkn); |
113 | if(recallSknInfo==null || recallSknInfo.getRecallType()==null){ | 113 | if(recallSknInfo==null || recallSknInfo.getRecallType()==null){ |
114 | - productInfo.put("recall_type","default"); | 114 | + productInfo.put("recall_type","DEFAULT"); |
115 | }else{ | 115 | }else{ |
116 | productInfo.put("recall_type",recallSknInfo.getRecallType()); | 116 | productInfo.put("recall_type",recallSknInfo.getRecallType()); |
117 | } | 117 | } |
@@ -106,7 +106,7 @@ public class RecallResultBuilder { | @@ -106,7 +106,7 @@ public class RecallResultBuilder { | ||
106 | Iterator<RecallMergerResult.SknResult> iterator = sknResultList.iterator(); | 106 | Iterator<RecallMergerResult.SknResult> iterator = sknResultList.iterator(); |
107 | while (iterator.hasNext()) { | 107 | while (iterator.hasNext()) { |
108 | RecallMergerResult.SknResult sknResult= iterator.next(); | 108 | RecallMergerResult.SknResult sknResult= iterator.next(); |
109 | - if (sknResult.getRequestTypes().contains(StrategyNameEnum.FIRST_PRODUCT_SKN.name())) { | 109 | + if (sknResult.getRequestTypes().contains(StrategyNameEnum.FIRST_SKN.name())) { |
110 | results.add(sknResult); | 110 | results.add(sknResult); |
111 | iterator.remove(); | 111 | iterator.remove(); |
112 | break; | 112 | break; |
@@ -3,7 +3,7 @@ package com.yoho.search.recall.scene.beans.strategy; | @@ -3,7 +3,7 @@ package com.yoho.search.recall.scene.beans.strategy; | ||
3 | public enum StrategyNameEnum { | 3 | public enum StrategyNameEnum { |
4 | 4 | ||
5 | COMMON, | 5 | COMMON, |
6 | - FIRST_PRODUCT_SKN, | 6 | + FIRST_SKN, |
7 | DIRECT_TRAIN, | 7 | DIRECT_TRAIN, |
8 | NEW_SHOP, | 8 | NEW_SHOP, |
9 | ADD_FLOW, | 9 | ADD_FLOW, |
@@ -29,7 +29,7 @@ public class CommonFirstSknStrategy implements IStrategy { | @@ -29,7 +29,7 @@ public class CommonFirstSknStrategy implements IStrategy { | ||
29 | 29 | ||
30 | @Override | 30 | @Override |
31 | public StrategyNameEnum nameEnum() { | 31 | public StrategyNameEnum nameEnum() { |
32 | - return StrategyNameEnum.FIRST_PRODUCT_SKN; | 32 | + return StrategyNameEnum.FIRST_SKN; |
33 | } | 33 | } |
34 | 34 | ||
35 | @Override | 35 | @Override |
-
Please register or login to post a comment