提交 fa29b8d4 作者: 沈振路

延时客服复用时检测并赋值新的获客链接

上级 54690af0
...@@ -20,10 +20,7 @@ import com.yaoyaozw.customer.mapper.CustomerGraphicsDelayMapper; ...@@ -20,10 +20,7 @@ import com.yaoyaozw.customer.mapper.CustomerGraphicsDelayMapper;
import com.yaoyaozw.customer.mapper.CustomerGraphicsMapper; import com.yaoyaozw.customer.mapper.CustomerGraphicsMapper;
import com.yaoyaozw.customer.mapper.KanbanCommonMapper; import com.yaoyaozw.customer.mapper.KanbanCommonMapper;
import com.yaoyaozw.customer.mapper.MaterialCommonMapper; import com.yaoyaozw.customer.mapper.MaterialCommonMapper;
import com.yaoyaozw.customer.service.CrowdPackageConditionMatchService; import com.yaoyaozw.customer.service.*;
import com.yaoyaozw.customer.service.CustomerServiceCommonService;
import com.yaoyaozw.customer.service.ReferralEntityService;
import com.yaoyaozw.customer.service.RegisterUserEntityService;
import com.yaoyaozw.customer.vo.AuthInfoVO; import com.yaoyaozw.customer.vo.AuthInfoVO;
import com.yaoyaozw.customer.vo.kanban.CommonOptionResponseVO; import com.yaoyaozw.customer.vo.kanban.CommonOptionResponseVO;
import com.yaoyaozw.customer.vo.customer.CrowdPackageUserVO; import com.yaoyaozw.customer.vo.customer.CrowdPackageUserVO;
...@@ -37,6 +34,7 @@ import org.springframework.data.redis.core.RedisTemplate; ...@@ -37,6 +34,7 @@ import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
...@@ -78,6 +76,8 @@ public class CustomerServiceCommonAsyncComponent { ...@@ -78,6 +76,8 @@ public class CustomerServiceCommonAsyncComponent {
private CustomerGraphicsDelayMapper customerGraphicsDelayMapper; private CustomerGraphicsDelayMapper customerGraphicsDelayMapper;
@Autowired @Autowired
private RabbitTemplate rabbitTemplate; private RabbitTemplate rabbitTemplate;
@Resource
private CompanyAcquisitionLinkService companyAcquisitionLinkService;
@Async("myExecutor") @Async("myExecutor")
...@@ -416,7 +416,7 @@ public class CustomerServiceCommonAsyncComponent { ...@@ -416,7 +416,7 @@ public class CustomerServiceCommonAsyncComponent {
BeanUtil.copyProperties(sourceReferralEntity, targetReferralEntity, "referral"); BeanUtil.copyProperties(sourceReferralEntity, targetReferralEntity, "referral");
if (sourceReferralEntity.getNewsType().equals(-1)) { if (sourceReferralEntity.getNewsType().equals(-1)) {
// 自定义链接延用链接 // 自定义链接延用链接
targetReferralEntity.setReferral(sourceReferralEntity.getReferral()); targetReferralEntity.setReferral(companyAcquisitionLinkService.checkAndSearchTargetReferral(sourceReferralEntity.getReferral(), targetAuthInfo.getId()));
} }
// 重新生成链接主键id // 重新生成链接主键id
targetReferralEntity.setId(snowflakeComponent.snowflakeId()); targetReferralEntity.setId(snowflakeComponent.snowflakeId());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论