Browse Source

update exp code

丁云鹏 5 months ago
parent
commit
9341acc646

+ 1 - 1
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/rank/RankRouter.java

@@ -45,7 +45,7 @@ public class RankRouter {
         if (CollectionUtils.isNotEmpty(abExpCodes)) {
             for (Map.Entry<String, RankService> entry : strategyMap.entrySet()) {
                 if (abExpCodes.contains(entry.getKey())) {
-                    // log.info("rank strategies {} {}", entry.getKey(), entry.getValue().getClass().getSimpleName());
+                    log.info("rank strategies {} {}", entry.getKey(), entry.getValue().getClass().getSimpleName());
                     return entry.getValue().rank(param);
                 }
             }

+ 3 - 3
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/recall/RecallService.java

@@ -47,8 +47,8 @@ public class RecallService implements ApplicationContextAware {
 
     public RecallResult recall(RecallParam param) {
         List<RecallStrategy> strategies = getRecallStrategy(param);
-//        log.info("recall strategies {}", JSONUtils.toJson(CommonCollectionUtils.toList(strategies,
-//                o -> o.getClass().getSimpleName())));
+        log.info("recall strategies {}", JSONUtils.toJson(CommonCollectionUtils.toList(strategies,
+                o -> o.getClass().getSimpleName())));
         CountDownLatch cdl = new CountDownLatch(strategies.size());
         List<Future<RecallResult.RecallData>> recallResultFutures = new ArrayList<>();
         for (final RecallStrategy strategy : strategies) {
@@ -110,7 +110,7 @@ public class RecallService implements ApplicationContextAware {
         strategies.add(strategyMap.get(ReturnVideoRecallStrategy.class.getSimpleName()));
 
         Set<String> abExpCodes = param.getAbExpCodes();
-        if(CollectionUtils.isNotEmpty(abExpCodes)) {
+        if (CollectionUtils.isNotEmpty(abExpCodes)) {
             if (abExpCodes.contains("563")
                     || abExpCodes.contains("567")) {
                 strategies.add(strategyMap.get(SceneCFRovnRecallStrategy.class.getSimpleName()));

+ 1 - 0
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/recall/strategy/AbstractRegionRecallStrategy.java

@@ -160,6 +160,7 @@ public abstract class AbstractRegionRecallStrategy implements RecallStrategy {
         }
 
         int sizeReturn = param.getSize();
+        log.info("sizeReturn {}", sizeReturn);
         return results.subList(0, results.size() < sizeReturn ? results.size() : sizeReturn);
     }