提交 6abc7608 作者: 沈振路

关回、关键词获客链接替换查询的字段名调整

上级 52ee0fbe
......@@ -42,7 +42,7 @@ public class FollowReplyAcquisitionListener implements ApplicationListener<Acqui
String fromPath = source.getFromPath();
String toPath = source.getToPath();
// 查询这个公众号延时客服用到了 fromPath 的地方,替换成 toPath
List<CustomerFollowReply> allCustomerFollowReplyList = customerFollowReplyService.list(new QueryWrapper<CustomerFollowReply>().eq("app_id", authorizerInfo.getAppid()));
List<CustomerFollowReply> allCustomerFollowReplyList = customerFollowReplyService.list(new QueryWrapper<CustomerFollowReply>().eq("appid", authorizerInfo.getAppid()));
// 过滤出发送链接是 fromPath 或者发送文本中的跳转链接包含 fromPath 的延时客服配置
List<CustomerFollowReply> containsFromPathGraphicsList = allCustomerFollowReplyList.stream().filter(v -> (StringUtils.isNotBlank(v.getSourceUrl()) && v.getSourceUrl().contains(fromPath)) || (StringUtils.isNotBlank(v.getContent()) && v.getContent().contains(fromPath))).collect(Collectors.toList());
......
......@@ -42,7 +42,7 @@ public class KeywordAcquisitionListener implements ApplicationListener<Acquisiti
String fromPath = source.getFromPath();
String toPath = source.getToPath();
// 查询这个公众号延时客服用到了 fromPath 的地方,替换成 toPath
List<CustomerKeyword> allCustomerKeywordList = customerKeywordService.list(new QueryWrapper<CustomerKeyword>().eq("app_id", authorizerInfo.getAppid()));
List<CustomerKeyword> allCustomerKeywordList = customerKeywordService.list(new QueryWrapper<CustomerKeyword>().eq("appid", authorizerInfo.getAppid()));
// 过滤出发送链接是 fromPath 或者发送文本中的跳转链接包含 fromPath 的延时客服配置
List<CustomerKeyword> containsFromPathGraphicsList = allCustomerKeywordList.stream().filter(v -> (StringUtils.isNotBlank(v.getSourceUrl()) && v.getSourceUrl().contains(fromPath)) || (StringUtils.isNotBlank(v.getContent()) && v.getContent().contains(fromPath))).collect(Collectors.toList());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论