Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
operate-customer-service
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
沈振路
operate-customer-service
Commits
927f59f1
提交
927f59f1
authored
10月 10, 2022
作者:
沈振路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
客服
上级
1bed98b9
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
12 行增加
和
5 行删除
+12
-5
CustomerServiceCommonAsyncComponent.java
...tomer/components/CustomerServiceCommonAsyncComponent.java
+12
-5
没有找到文件。
src/main/java/com/yaoyaozw/customer/components/CustomerServiceCommonAsyncComponent.java
浏览文件 @
927f59f1
...
...
@@ -163,6 +163,8 @@ public class CustomerServiceCommonAsyncComponent {
private
void
generateExtendLink
(
Map
<
String
,
List
<
CrowdPackageUserVO
>>
storeGroupMap
,
ReferralEntity
customerReferral
)
{
SimpleDateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
storeGroupMap
.
forEach
((
storeType
,
userVoList
)
->
{
LOCAL_LOG
.
info
(
"当前处理书城: {}"
,
storeType
);
// 去重提取公众号
...
...
@@ -240,25 +242,30 @@ public class CustomerServiceCommonAsyncComponent {
ReferralEntity
referralEntity
)
{
referralEntity
.
setStoreType
(
authInfoVo
.
getStoreType
());
referralEntity
.
setStoreTypeName
(
authInfoVo
.
getStoreTypeName
());
referralEntity
.
setName
(
replaceName
(
referralEntity
.
getName
(),
dateStr
));
// 非常用链接类型的name需要处理
if
(!
CustomerCommonConstant
.
USUAL_LINK_NEWS_TYPE
.
equals
(
referralEntity
.
getNewsType
()))
{
referralEntity
.
setName
(
replaceName
(
referralEntity
.
getName
(),
dateStr
));
}
referralEntity
.
setAccountId
(
null
);
referralEntity
.
setInfoId
(
authInfoVo
.
getId
());
R
r
=
referralFeignClient
.
productReferral
(
referralEntity
);
if
(!
r
.
getCode
().
equals
(
ApiResultConstant
.
SUCCESS_CODE
))
{
throw
new
RuntimeException
(
r
.
getMessage
());
}
String
res
=
r
.
getData
(
"storeReferral"
,
new
TypeReference
<
String
>()
{
});
String
res
=
r
.
getData
(
"storeReferral"
,
new
TypeReference
<
String
>()
{});
JSONObject
jsonObject1
=
JSON
.
parseObject
(
res
);
String
referral
=
jsonObject1
.
getString
(
"referral"
);
referralEntity
.
setPromoteId
(
jsonObject1
.
getString
(
"promoteId"
));
referralEntity
.
setReferral
(
referral
);
// 系统-客服-
推广-{accountNickName}-{storeType}-2022/04/24-1
-{bookName}
// 系统-客服-
活动-{accountNickName}-{storeType}-2022/04/24-1
-充{recharge}送{gift}
// 系统-客服-
{newsType}-{accountNickName}-{storeType}-{currentDate}
-{bookName}
// 系统-客服-
{newsType}-{accountNickName}-{storeType}-{currentDate}
-充{recharge}送{gift}
}
private
String
replaceName
(
String
materialName
,
String
appNickName
)
{
if
(
StringUtils
.
isBlank
(
materialName
))
{
return
null
;
}
if
(
materialName
.
contains
(
"-"
))
{
String
[]
split
=
materialName
.
split
(
"-"
);
String
format
=
new
SimpleDateFormat
(
"yyyy/MM/dd"
).
format
(
new
Date
());
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论