Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
operate-customer-service
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
沈振路
operate-customer-service
Commits
3cc4ca95
提交
3cc4ca95
authored
1月 19, 2023
作者:
沈振路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
客服获取链接失败调整
上级
7adcca31
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
9 行删除
+6
-9
CustomerServiceCommonAsyncComponent.java
...tomer/components/CustomerServiceCommonAsyncComponent.java
+6
-9
没有找到文件。
src/main/java/com/yaoyaozw/customer/components/CustomerServiceCommonAsyncComponent.java
浏览文件 @
3cc4ca95
...
@@ -420,12 +420,6 @@ public class CustomerServiceCommonAsyncComponent {
...
@@ -420,12 +420,6 @@ public class CustomerServiceCommonAsyncComponent {
targetReferralEntity
.
setAccountId
(
targetAuthInfo
.
getAccountId
());
targetReferralEntity
.
setAccountId
(
targetAuthInfo
.
getAccountId
());
targetReferralEntity
.
setStoreTypeName
(
targetAuthInfo
.
getStoreTypeName
());
targetReferralEntity
.
setStoreTypeName
(
targetAuthInfo
.
getStoreTypeName
());
String
name
=
CustomerCommonConstant
.
getLinkNameModel
(
targetReferralEntity
.
getNewsType
());
if
(
StringUtils
.
isNotBlank
(
name
)
&&
!
CustomerCommonConstant
.
USUAL_LINK_NEWS_TYPE
.
equals
(
targetReferralEntity
.
getNewsType
()))
{
name
=
name
+
"-"
+
System
.
currentTimeMillis
()
%
100000
;
targetReferralEntity
.
setName
(
name
);
}
Integer
newsType
=
sourceReferralEntity
.
getNewsType
();
Integer
newsType
=
sourceReferralEntity
.
getNewsType
();
// 调用获取链接方法
// 调用获取链接方法
if
(
newsType
.
equals
(
CustomerCommonConstant
.
BOOK_NEWS_TYPE
))
{
if
(
newsType
.
equals
(
CustomerCommonConstant
.
BOOK_NEWS_TYPE
))
{
...
@@ -568,8 +562,12 @@ public class CustomerServiceCommonAsyncComponent {
...
@@ -568,8 +562,12 @@ public class CustomerServiceCommonAsyncComponent {
ygAccessLimit
(
true
,
authInfoVo
.
getStoreType
());
ygAccessLimit
(
true
,
authInfoVo
.
getStoreType
());
referralEntity
.
setStoreType
(
authInfoVo
.
getStoreType
());
referralEntity
.
setStoreType
(
authInfoVo
.
getStoreType
());
// 非常用链接类型的name需要处理
// 非常用链接类型的name需要处理
String
name
=
referralEntity
.
getName
();
Integer
newsType
=
referralEntity
.
getNewsType
();
Integer
newsType
=
referralEntity
.
getNewsType
();
String
name
=
CustomerCommonConstant
.
getLinkNameModel
(
newsType
);
if
(
StringUtils
.
isNotBlank
(
name
)
&&
!
CustomerCommonConstant
.
USUAL_LINK_NEWS_TYPE
.
equals
(
newsType
))
{
name
=
name
+
"-"
+
System
.
currentTimeMillis
()
%
100000
;
referralEntity
.
setName
(
name
);
}
if
(!
CustomerCommonConstant
.
USUAL_LINK_NEWS_TYPE
.
equals
(
newsType
)
&&
!
StringUtils
.
isBlank
(
name
))
{
if
(!
CustomerCommonConstant
.
USUAL_LINK_NEWS_TYPE
.
equals
(
newsType
)
&&
!
StringUtils
.
isBlank
(
name
))
{
String
newsTypeName
=
CustomerCommonConstant
.
getNewsTypeName
(
newsType
);
String
newsTypeName
=
CustomerCommonConstant
.
getNewsTypeName
(
newsType
);
if
(
ObjectUtil
.
isNull
(
newsTypeName
))
{
if
(
ObjectUtil
.
isNull
(
newsTypeName
))
{
...
@@ -590,8 +588,7 @@ public class CustomerServiceCommonAsyncComponent {
...
@@ -590,8 +588,7 @@ public class CustomerServiceCommonAsyncComponent {
String
tempId
=
CustomerStoreTemplateEnum
.
getTempId
(
referralEntity
.
getStoreType
());
String
tempId
=
CustomerStoreTemplateEnum
.
getTempId
(
referralEntity
.
getStoreType
());
referralEntity
.
setTemplateId
(
tempId
);
referralEntity
.
setTemplateId
(
tempId
);
}
}
long
suffix
=
System
.
currentTimeMillis
()
%
100000
;
referralEntity
.
setName
(
name
);
referralEntity
.
setName
(
name
+
"-"
+
suffix
);
}
}
referralEntity
.
setInfoId
(
authInfoVo
.
getId
());
referralEntity
.
setInfoId
(
authInfoVo
.
getId
());
LOCAL_LOG
.
info
(
"获取链接, 参数: {}"
,
referralEntity
);
LOCAL_LOG
.
info
(
"获取链接, 参数: {}"
,
referralEntity
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论