...
|
...
|
@@ -80,6 +80,8 @@ public class UserRecallResponseBuilder { |
|
|
sknList.add(new RecallSknInfo(sknResult.getProductSkn(), sknResult.getStrategy().name()));
|
|
|
}
|
|
|
int recallTotal = sknResultList.size();
|
|
|
//10、打印日志
|
|
|
logSknResultList(userRecallRequest,sknList);
|
|
|
return new UserRecallResponse(total, recallTotal, recallTotalPage, sknList);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -104,6 +106,19 @@ public class UserRecallResponseBuilder { |
|
|
return sknResultList;
|
|
|
}
|
|
|
|
|
|
private void logSknResultList(UserRecallRequest userRecallRequest, List<RecallSknInfo> sknList) {
|
|
|
if (!userRecallRequest.openDetailLog()) {
|
|
|
return;
|
|
|
}
|
|
|
try {
|
|
|
RECALL_NEW_LOGGER.info("total recall skn count after merger2 is [{}]", sknList.size());
|
|
|
for (RecallSknInfo recallSknInfo : sknList) {
|
|
|
RECALL_NEW_LOGGER.info("skn is[{}], recallType is [{}]", recallSknInfo.getProductSkn(), recallSknInfo.getRecallType());
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
RECALL_NEW_LOGGER.error(e.getMessage(), e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private void logSknStrategyAndScore(UserRecallRequest userRecallRequest, RecallMergerResult.SknResult sknResult) {
|
|
|
if (!userRecallRequest.openDetailLog()) {
|
...
|
...
|
|