Commit ebf8a88f by 王祖波

Merge branch 'feature-recommend' into 'developer'

多商品页面记录大于1件商品的埋点

See merge request !2722
parents fdc1fa91 d03ed807
...@@ -230,6 +230,10 @@ public class InteractRecordMessageService { ...@@ -230,6 +230,10 @@ public class InteractRecordMessageService {
List<List<String>> groupGoodsIds = JSON.parseObject(proIdJSON, new TypeReference<List<String>>() { List<List<String>> groupGoodsIds = JSON.parseObject(proIdJSON, new TypeReference<List<String>>() {
}); });
Integer goodsCount = groupGoodsIds.stream().mapToInt(List::size).sum();
if (goodsCount <= 1) {
return;
}
if (interactRecordBO.getExtendInfo() == null) { if (interactRecordBO.getExtendInfo() == null) {
interactRecordBO.setExtendInfo(InteractRecordExtendInfoBO.empty()); interactRecordBO.setExtendInfo(InteractRecordExtendInfoBO.empty());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment