Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
operate-customer-service
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
沈振路
operate-customer-service
Commits
70801f0d
提交
70801f0d
authored
4月 25, 2025
作者:
沈振路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
关回、关键词复用时校验并替换获客链接
上级
42c2cb60
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
2 行删除
+12
-2
CustomerKeywordComponent.java
...aoyaozw/customer/components/CustomerKeywordComponent.java
+6
-1
FollowReplyComponent.java
...om/yaoyaozw/customer/components/FollowReplyComponent.java
+6
-1
没有找到文件。
src/main/java/com/yaoyaozw/customer/components/CustomerKeywordComponent.java
浏览文件 @
70801f0d
...
@@ -14,6 +14,7 @@ import com.yaoyaozw.customer.entity.CustomerKeyword;
...
@@ -14,6 +14,7 @@ import com.yaoyaozw.customer.entity.CustomerKeyword;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
import
com.yaoyaozw.customer.feigns.ReferralFeignClient
;
import
com.yaoyaozw.customer.feigns.ReferralFeignClient
;
import
com.yaoyaozw.customer.service.AuthorizerInfoService
;
import
com.yaoyaozw.customer.service.AuthorizerInfoService
;
import
com.yaoyaozw.customer.service.CompanyAcquisitionLinkService
;
import
com.yaoyaozw.customer.service.ReferralEntityService
;
import
com.yaoyaozw.customer.service.ReferralEntityService
;
import
com.yaoyaozw.customer.utils.TencentCustomerUtil
;
import
com.yaoyaozw.customer.utils.TencentCustomerUtil
;
import
com.yaoyaozw.customer.vo.AuthInfoVO
;
import
com.yaoyaozw.customer.vo.AuthInfoVO
;
...
@@ -25,6 +26,7 @@ import org.slf4j.LoggerFactory;
...
@@ -25,6 +26,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
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.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -47,6 +49,8 @@ public class CustomerKeywordComponent {
...
@@ -47,6 +49,8 @@ public class CustomerKeywordComponent {
private
ReferralFeignClient
referralFeignClient
;
private
ReferralFeignClient
referralFeignClient
;
@Autowired
@Autowired
private
SnowflakeComponent
snowflakeComponent
;
private
SnowflakeComponent
snowflakeComponent
;
@Resource
private
CompanyAcquisitionLinkService
companyAcquisitionLinkService
;
/**
/**
* 获取链接实体
* 获取链接实体
...
@@ -111,7 +115,8 @@ public class CustomerKeywordComponent {
...
@@ -111,7 +115,8 @@ public class CustomerKeywordComponent {
}
}
doGetReferral
(
targetReferral
);
doGetReferral
(
targetReferral
);
}
else
if
(
newsType
.
equals
(-
1
))
{
}
else
if
(
newsType
.
equals
(-
1
))
{
targetReferral
.
setReferral
(
sourceReferral
.
getReferral
());
// 自定义链接,校验是不是获客链接,如果是的,更换为目标公众号的获客链接
targetReferral
.
setReferral
(
companyAcquisitionLinkService
.
checkAndSearchTargetReferral
(
sourceReferral
.
getReferral
(),
authInfoVo
.
getId
()));
}
}
return
targetReferral
;
return
targetReferral
;
...
...
src/main/java/com/yaoyaozw/customer/components/FollowReplyComponent.java
浏览文件 @
70801f0d
...
@@ -17,6 +17,7 @@ import com.yaoyaozw.customer.entity.CustomerFollowReplyMultiNews;
...
@@ -17,6 +17,7 @@ import com.yaoyaozw.customer.entity.CustomerFollowReplyMultiNews;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
import
com.yaoyaozw.customer.feigns.ReferralFeignClient
;
import
com.yaoyaozw.customer.feigns.ReferralFeignClient
;
import
com.yaoyaozw.customer.service.AuthorizerInfoService
;
import
com.yaoyaozw.customer.service.AuthorizerInfoService
;
import
com.yaoyaozw.customer.service.CompanyAcquisitionLinkService
;
import
com.yaoyaozw.customer.service.ReferralEntityService
;
import
com.yaoyaozw.customer.service.ReferralEntityService
;
import
com.yaoyaozw.customer.utils.TencentCustomerUtil
;
import
com.yaoyaozw.customer.utils.TencentCustomerUtil
;
import
com.yaoyaozw.customer.vo.AuthInfoVO
;
import
com.yaoyaozw.customer.vo.AuthInfoVO
;
...
@@ -29,6 +30,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -29,6 +30,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
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.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -53,6 +55,8 @@ public class FollowReplyComponent {
...
@@ -53,6 +55,8 @@ public class FollowReplyComponent {
private
SnowflakeComponent
snowflakeComponent
;
private
SnowflakeComponent
snowflakeComponent
;
@Autowired
@Autowired
private
RedisTemplate
<
String
,
Object
>
redisTemplate
;
private
RedisTemplate
<
String
,
Object
>
redisTemplate
;
@Resource
private
CompanyAcquisitionLinkService
companyAcquisitionLinkService
;
/**
/**
* 获取链接实体
* 获取链接实体
...
@@ -117,7 +121,8 @@ public class FollowReplyComponent {
...
@@ -117,7 +121,8 @@ public class FollowReplyComponent {
}
}
doGetReferral
(
targetReferral
);
doGetReferral
(
targetReferral
);
}
else
if
(
newsType
.
equals
(-
1
))
{
}
else
if
(
newsType
.
equals
(-
1
))
{
targetReferral
.
setReferral
(
sourceReferral
.
getReferral
());
// 自定义链接,校验是不是获客链接,如果是的,更换为目标公众号的获客链接
targetReferral
.
setReferral
(
companyAcquisitionLinkService
.
checkAndSearchTargetReferral
(
sourceReferral
.
getReferral
(),
authInfoVo
.
getId
()));
}
}
return
targetReferral
;
return
targetReferral
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论