Commit 5c4ed354 by 王祖波

企微群发重复调用校验

parent e0c10635
......@@ -76,7 +76,6 @@ public class ContactFollowServiceImpl implements ContactFollowService {
return;
}
String enterpriseId = list.get(0).getEnterpriseId();
Integer followType = list.get(0).getFollowType();
Map<String, ClerkDTO> clerkMap = clerks.stream().collect(Collectors.toMap(ClerkDTO::getClerkId, Function.identity(), (v1, v2) -> v1));
List<TabContactFollow> followList = list.stream().map(follow -> {
TabContactFollow contactFollow = EntityUtil.changeEntityNew(TabContactFollow.class, follow);
......@@ -101,6 +100,11 @@ public class ContactFollowServiceImpl implements ContactFollowService {
}
return contactFollow;
}).filter(Objects::nonNull).collect(Collectors.toList());
if (CollectionUtils.isEmpty(followList)) {
return;
}
Integer followType = followList.get(0).getFollowType();
logger.info("跟进类型:{}", followType);
// 解决企微群发重复调用问题
if (Objects.equals(followType, ContactFollowTypeEnum.WECHAT_GROUP_SEND.getCode())) {
logger.info("企微群发重复调用校验");
......
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