|
@@ -745,27 +745,30 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
|
|
|
} else {
|
|
} else {
|
|
|
corpUserMapper.updateById(corpUser);
|
|
corpUserMapper.updateById(corpUser);
|
|
|
}
|
|
}
|
|
|
- followedUsers.forEach(followedUser -> {
|
|
|
|
|
- //备注手机号 客服跟进用户年付续费
|
|
|
|
|
- String description = followedUser.getDescription();
|
|
|
|
|
- if (Validator.isMobile(description)) {
|
|
|
|
|
- THREAD_POOL.execute(() ->{
|
|
|
|
|
- CorpUserRelate corpUserRelate = corpUserRelateMapper.selectOne(Wrappers.lambdaQuery(CorpUserRelate.class)
|
|
|
|
|
- .eq(CorpUserRelate::getCorpUserId, corpUser.getId()).last("limit 1"));
|
|
|
|
|
- if (corpUserRelate != null) {
|
|
|
|
|
- corpUserRelate.setPhone(description);
|
|
|
|
|
- corpUserRelateMapper.updateById(corpUserRelate);
|
|
|
|
|
- } else {
|
|
|
|
|
- corpUserRelate = new CorpUserRelate();
|
|
|
|
|
- corpUserRelate.setCorpUserId(corpUser.getId());
|
|
|
|
|
- corpUserRelate.setPhone(description);
|
|
|
|
|
- corpUserRelateMapper.insert(corpUserRelate);
|
|
|
|
|
- }
|
|
|
|
|
- //客服续费跟进
|
|
|
|
|
- corpRenewFollowUser(description);
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (CollUtil.isNotEmpty(followedUsers)) {
|
|
|
|
|
+ followedUsers.forEach(followedUser -> {
|
|
|
|
|
+ //备注手机号 客服跟进用户年付续费
|
|
|
|
|
+ String description = followedUser.getDescription();
|
|
|
|
|
+ if (Validator.isMobile(description)) {
|
|
|
|
|
+ THREAD_POOL.execute(() ->{
|
|
|
|
|
+ CorpUserRelate corpUserRelate = corpUserRelateMapper.selectOne(Wrappers.lambdaQuery(CorpUserRelate.class)
|
|
|
|
|
+ .eq(CorpUserRelate::getCorpUserId, corpUser.getId()).last("limit 1"));
|
|
|
|
|
+ if (corpUserRelate != null) {
|
|
|
|
|
+ corpUserRelate.setPhone(description);
|
|
|
|
|
+ corpUserRelateMapper.updateById(corpUserRelate);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ corpUserRelate = new CorpUserRelate();
|
|
|
|
|
+ corpUserRelate.setCorpUserId(corpUser.getId());
|
|
|
|
|
+ corpUserRelate.setPhone(description);
|
|
|
|
|
+ corpUserRelateMapper.insert(corpUserRelate);
|
|
|
|
|
+ }
|
|
|
|
|
+ //客服续费跟进
|
|
|
|
|
+ corpRenewFollowUser(description);
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
return corpUser;
|
|
return corpUser;
|
|
|
}
|
|
}
|
|
|
|
|
|