Authored by hugufei

日志修复

... ... @@ -124,7 +124,6 @@ public class SceneRecallProductListService {
}else{
recallSknInfos = this.queryProductSknByFilterSkn(userRecallRequest, userRecallResponse.getSknList(), page-recallTotalPage, pageSize);
}
RECALL_NEW_LOGGER.info("SceneRecallProductListService[2].getRecallSknInfos,cost is [{}]", System.currentTimeMillis()-begin);
//3、获取召回结果的skn
List<Integer> productSknList = this.getProductSknList(recallSknInfos);
... ... @@ -132,7 +131,7 @@ public class SceneRecallProductListService {
//4、获取商品的返回信息
begin = System.currentTimeMillis();
List<Map<String, Object>> productInfoList = sknInfoResqusetResponseCacheBean.queryProductListBySkn(productSknList,productSknList.size());
RECALL_NEW_LOGGER.info("SceneRecallProductListService[3].queryProductListBySkn,cost is [{}]", System.currentTimeMillis()-begin);
RECALL_NEW_LOGGER.info("SceneRecallProductListService[2].queryProductListBySkn,cost is [{}]", System.currentTimeMillis()-begin);
//5、填充召回类型
Map<Integer,RecallSknInfo> sknRecallTypeMap = CollectionUtils.toMap(recallSknInfos, new Transfer<RecallSknInfo, Integer>() {
... ...
... ... @@ -86,7 +86,7 @@ public class UserRecallRequestResponseCacheBean extends AbstractCacheBean<UserRe
}else{
userPersonalFactor = queryUserPersionalFactorBean.queryPersionalFactorNew(param);
}
RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[1]-queryPersionalFactor,cost is [{}]", System.currentTimeMillis()-begin);
RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[1]-queryPersionalFactor,cost is [{}]", System.currentTimeMillis()-begin);
//2、构造请求
List<RecallRequest> batchRequests;
if(!USER_SORT_BRAND_RECALL){
... ... @@ -97,15 +97,14 @@ public class UserRecallRequestResponseCacheBean extends AbstractCacheBean<UserRe
//3、批量召回
begin = System.currentTimeMillis();
List<RecallRequestResponse> requestResponses = recallRequestResponseCacheBean.batchRecallAndCache(batchRequests);
RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[2]-batchRecallAndCache,cost is [{}]", System.currentTimeMillis()-begin);
RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[2]-batchRecallAndCache,cost is [{}]", System.currentTimeMillis()-begin);
//4、获取skn列表[去重]
begin = System.currentTimeMillis();
RecallMergerResult recallMergerResult = recallMergerResultBuilder.buildRecallMergerResult(requestResponses);
RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[3]-buildRecallMergerResult,cost is [{}]", System.currentTimeMillis()-begin);
//5、构造真实结果[排序,截取skn]
begin = System.currentTimeMillis();
UserRecallResponse userRecallResponse = userRecallResponseBuilder.builderRecallResult(recallMergerResult, param, userPersonalFactor);
RECALL_NEW_LOGGER.info("QueryRecallResultCacheBean[4]-builderRecallResult,cost is [{}]", System.currentTimeMillis()-begin);
RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[3]-builderRecallResult,cost is [{}]", System.currentTimeMillis()-begin);
return userRecallResponse;
}
... ...
... ... @@ -82,7 +82,7 @@ public class QueryUserPersionalFactorBean {
//4、构造UserPersonalFactorRspNew
UserPersonalFactor userPersonalFactor = new UserPersonalFactor(sortBrandList, sortPriceAreasList,userFactorNew.getVector());
if(userRecallRequest.getUid()==13420925){
RECALL_NEW_LOGGER.info("innerJoinFactor . uid is[{}], userPersonalFactor is [{}], ", userRecallRequest.getUid(), JSON.toJSONString(userPersonalFactor);
RECALL_NEW_LOGGER.info("innerJoinFactor . uid is[{}], userPersonalFactor is [{}], ", userRecallRequest.getUid(), JSON.toJSONString(userPersonalFactor));
}
return userPersonalFactor;
} catch (Exception e) {
... ...