|
@@ -28,15 +28,24 @@ public class StatisticsUtil {
|
|
String isShare = labelKey.getString("is_share");
|
|
String isShare = labelKey.getString("is_share");
|
|
String isReturnNoSelf = labelKey.getString("is_return_noself");
|
|
String isReturnNoSelf = labelKey.getString("is_return_noself");
|
|
|
|
|
|
- if (StatisticsUtil.isRecommendScene(page, recommendPageType)) {
|
|
|
|
- StatisticsUtil.mapKeyAddOne(allMap, "recommendSampleNum");
|
|
|
|
|
|
+ // 非推荐样本数
|
|
|
|
+ if (!StatisticsUtil.isRecommendScene(page, recommendPageType)) {
|
|
|
|
+ StatisticsUtil.mapKeyAddOne(allMap, "noRecommendSampleNum");
|
|
if (StringUtils.equals("1", isShare)) {
|
|
if (StringUtils.equals("1", isShare)) {
|
|
- StatisticsUtil.mapKeyAddOne(isShareMap, "recommendSampleNum");
|
|
|
|
|
|
+ StatisticsUtil.mapKeyAddOne(isShareMap, "noRecommendSampleNum");
|
|
}
|
|
}
|
|
if (StringUtils.equals("1", isReturnNoSelf)) {
|
|
if (StringUtils.equals("1", isReturnNoSelf)) {
|
|
- StatisticsUtil.mapKeyAddOne(isReturnNoSelfMap, "recommendSampleNum");
|
|
|
|
|
|
+ StatisticsUtil.mapKeyAddOne(isReturnNoSelfMap, "noRecommendSampleNum");
|
|
}
|
|
}
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ StatisticsUtil.mapKeyAddOne(allMap, "recommendSampleNum");
|
|
|
|
+ if (StringUtils.equals("1", isShare)) {
|
|
|
|
+ StatisticsUtil.mapKeyAddOne(isShareMap, "recommendSampleNum");
|
|
|
|
+ }
|
|
|
|
+ if (StringUtils.equals("1", isReturnNoSelf)) {
|
|
|
|
+ StatisticsUtil.mapKeyAddOne(isReturnNoSelfMap, "recommendSampleNum");
|
|
}
|
|
}
|
|
|
|
|
|
// 正常数据统计
|
|
// 正常数据统计
|