|
@@ -106,7 +106,7 @@ public class GADailyReportServiceImpl extends ServiceImpl<GADailyReportMapper, G
|
|
|
});
|
|
|
|
|
|
// 3. 询盘数据补充
|
|
|
- List<Pair<String, Integer>> enquiryDailyCounts =
|
|
|
+ List<Pair<String, Long>> enquiryDailyCounts =
|
|
|
adwebEnquiryMapper.getEnquiryDailyCounts(siteCode, start, end);
|
|
|
enquiryDailyCounts.stream()
|
|
|
.filter(enquiryDailyCount -> dailyStatsVOs.containsKey(enquiryDailyCount.getKey()))
|
|
@@ -114,7 +114,7 @@ public class GADailyReportServiceImpl extends ServiceImpl<GADailyReportMapper, G
|
|
|
enquiryDailyCount ->
|
|
|
dailyStatsVOs
|
|
|
.get(enquiryDailyCount.getKey())
|
|
|
- .setEnquires(enquiryDailyCount.getValue())); // 返回值可能为Long型
|
|
|
+ .setEnquires(enquiryDailyCount.getValue().intValue()));
|
|
|
|
|
|
// 3. 根据日期排序并返回
|
|
|
return dailyStatsVOs.values().stream()
|
|
@@ -160,6 +160,7 @@ public class GADailyReportServiceImpl extends ServiceImpl<GADailyReportMapper, G
|
|
|
2));
|
|
|
}
|
|
|
|
|
|
- return periodicStatsVOs.values().stream().collect(Collectors.toList());
|
|
|
+ return periodicStatsVOs.values().stream()
|
|
|
+ .collect(Collectors.toList()); // 使用toList()方法返回UnmodifiableList,导致Redis类型解析异常
|
|
|
}
|
|
|
}
|