|
@@ -108,12 +108,15 @@ public class RecallService implements ApplicationContextAware {
|
|
|
}
|
|
|
|
|
|
public RecallResult recall(RecallParam param) {
|
|
|
+ long t1 = System.currentTimeMillis();
|
|
|
List<RecallResult.RecallData> results = new ArrayList<>();
|
|
|
log.info("RecallParam {}", JSONUtils.toJson(param));
|
|
|
List<RecallStrategy> strategies = getRecallStrategy(param);
|
|
|
log.info("RecallStrategy {}", JSONUtils.toJson(CommonCollectionUtils.toList(strategies,
|
|
|
s -> s.getClass().getSimpleName())));
|
|
|
List<Content> content = getAllContent(param);
|
|
|
+ long t2 = System.currentTimeMillis();
|
|
|
+ log.info("recall account:{} get content:{}", param.getAccountName(), t2 - t1);
|
|
|
if (CollectionUtils.isEmpty(content)) {
|
|
|
return new RecallResult(results);
|
|
|
}
|