Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
operate-customer-service
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
沈振路
operate-customer-service
Commits
2e93a97d
提交
2e93a97d
authored
10月 20, 2022
作者:
沈振路
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'customer_service_SZlu'
上级
29b767fa
019a757d
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
35 行增加
和
3 行删除
+35
-3
.gitignore
.gitignore
+1
-0
CustomerServiceCommonAsyncComponent.java
...tomer/components/CustomerServiceCommonAsyncComponent.java
+31
-0
CrowdPackageServiceImpl.java
...oyaozw/customer/service/impl/CrowdPackageServiceImpl.java
+1
-1
CustomerDelayTextServiceImpl.java
...w/customer/service/impl/CustomerDelayTextServiceImpl.java
+1
-1
CustomerGraphicsDelayServiceImpl.java
...stomer/service/impl/CustomerGraphicsDelayServiceImpl.java
+1
-1
没有找到文件。
.gitignore
浏览文件 @
2e93a97d
/.idea/
/.idea/
/target/
/target/
/customer-service/
src/main/java/com/yaoyaozw/customer/components/CustomerServiceCommonAsyncComponent.java
浏览文件 @
2e93a97d
...
@@ -171,6 +171,37 @@ public class CustomerServiceCommonAsyncComponent {
...
@@ -171,6 +171,37 @@ public class CustomerServiceCommonAsyncComponent {
}
}
}
}
@Async
(
"myExecutor"
)
public
void
dispatchDelay
(
String
dateStr
,
AuthInfoVO
authInfoVo
,
ReferralEntity
referralEntity
)
{
String
storeType
=
referralEntity
.
getStoreType
();
if
(
storeType
.
equals
(
CustomerCommonConstant
.
STORE_NAME_YANG_GUANG
)
||
storeType
.
equals
(
CustomerCommonConstant
.
STORE_NAME_ZHANG_ZHONG_YUN
))
{
if
(
CustomerCommonConstant
.
ACTIVITY_NEWS_TYPE
.
equals
(
referralEntity
.
getNewsType
()))
{
// 获取config
R
activityConfig
=
referralFeignClient
.
getActivityConfig
(
referralEntity
.
getRechargeAmount
().
stripTrailingZeros
().
toPlainString
(),
storeType
,
null
);
// 获取资源配置列表
Map
<
String
,
Object
>
data
=
activityConfig
.
getData
();
JSONArray
configList
=
JSONUtil
.
parseArray
(
data
.
get
(
"configList"
));
List
<
CommonOptionResponseVO
>
activityConfigList
=
JSONUtil
.
toList
(
configList
,
CommonOptionResponseVO
.
class
);
if
(!
CollectionUtil
.
isEmpty
(
activityConfigList
))
{
// 转换config
String
activityContent
=
referralEntity
.
getRechargeAmount
().
stripTrailingZeros
().
toPlainString
()
+
"送"
+
referralEntity
.
getGiftAmount
();
Map
<
String
,
String
>
configMap
=
activityConfigList
.
stream
().
collect
(
Collectors
.
toMap
(
key
->
key
.
getLabel
().
replaceAll
(
"[^(0-9.送)]"
,
""
),
CommonOptionResponseVO:
:
getValue
,
(
o1
,
o2
)
->
o2
));
String
configId
=
configMap
.
get
(
activityContent
);
LOCAL_LOG
.
info
(
"活动内容: {} 获取到configId: {}"
,
activityContent
,
configId
);
if
(
ObjectUtil
.
isNull
(
configId
))
{
LOCAL_LOG
.
info
(
"无法获取资源配置"
);
}
}
else
{
LOCAL_LOG
.
info
(
"无法获取资源配置"
);
}
}
}
getCopyReferral
(
dateStr
,
authInfoVo
,
referralEntity
);
}
/**
/**
* 以下是客服消息模块的私有方法
* 以下是客服消息模块的私有方法
...
...
src/main/java/com/yaoyaozw/customer/service/impl/CrowdPackageServiceImpl.java
浏览文件 @
2e93a97d
...
@@ -139,7 +139,7 @@ public class CrowdPackageServiceImpl extends ServiceImpl<MaterialCrowdPackageMap
...
@@ -139,7 +139,7 @@ public class CrowdPackageServiceImpl extends ServiceImpl<MaterialCrowdPackageMap
public
GenericsResult
<
List
<
CrowdPackageListVO
>>
pageList
(
CrowdPackageQueryDTO
queryDto
)
{
public
GenericsResult
<
List
<
CrowdPackageListVO
>>
pageList
(
CrowdPackageQueryDTO
queryDto
)
{
List
<
CrowdPackageListVO
>
pageList
=
baseMapper
.
getPageList
(
queryDto
);
List
<
CrowdPackageListVO
>
pageList
=
baseMapper
.
getPageList
(
queryDto
);
if
(
CollectionUtil
.
isEmpty
(
pageList
))
{
if
(
CollectionUtil
.
isEmpty
(
pageList
))
{
return
new
GenericsResult
<>(
fals
e
,
"暂无数据"
);
return
new
GenericsResult
<>(
tru
e
,
"暂无数据"
);
}
}
return
new
GenericsResult
<>(
pageList
);
return
new
GenericsResult
<>(
pageList
);
...
...
src/main/java/com/yaoyaozw/customer/service/impl/CustomerDelayTextServiceImpl.java
浏览文件 @
2e93a97d
...
@@ -110,7 +110,7 @@ public class CustomerDelayTextServiceImpl extends ServiceImpl<CustomerGraphicsDe
...
@@ -110,7 +110,7 @@ public class CustomerDelayTextServiceImpl extends ServiceImpl<CustomerGraphicsDe
// 公众号
// 公众号
AuthInfoVO
authInfoVO
=
super
.
baseMapper
.
getCustomerDelayAuthInfo
(
referralDto
.
getMaterialGraphicsId
());
AuthInfoVO
authInfoVO
=
super
.
baseMapper
.
getCustomerDelayAuthInfo
(
referralDto
.
getMaterialGraphicsId
());
if
(
CustomerCommonConstant
.
REMOTE_LINK_NEWS_TYPE_LIST
.
contains
(
referralEntity
.
getNewsType
()))
{
if
(
CustomerCommonConstant
.
REMOTE_LINK_NEWS_TYPE_LIST
.
contains
(
referralEntity
.
getNewsType
()))
{
commonAsyncComponent
.
getCopyReferral
(
format
,
authInfoVO
,
referralEntity
);
commonAsyncComponent
.
dispatchDelay
(
format
,
authInfoVO
,
referralEntity
);
}
}
// 保存链接数据
// 保存链接数据
referralEntityService
.
saveOrUpdate
(
referralEntity
);
referralEntityService
.
saveOrUpdate
(
referralEntity
);
...
...
src/main/java/com/yaoyaozw/customer/service/impl/CustomerGraphicsDelayServiceImpl.java
浏览文件 @
2e93a97d
...
@@ -120,7 +120,7 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
...
@@ -120,7 +120,7 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
AuthorizerInfo
authorizerInfo
=
authorizerInfoService
.
getOne
(
new
QueryWrapper
<
AuthorizerInfo
>().
eq
(
"appid"
,
saveDto
.
getAppId
()));
AuthorizerInfo
authorizerInfo
=
authorizerInfoService
.
getOne
(
new
QueryWrapper
<
AuthorizerInfo
>().
eq
(
"appid"
,
saveDto
.
getAppId
()));
AuthInfoVO
authInfoVO
=
new
AuthInfoVO
();
AuthInfoVO
authInfoVO
=
new
AuthInfoVO
();
authInfoVO
.
putPropertyValue
(
authorizerInfo
);
authInfoVO
.
putPropertyValue
(
authorizerInfo
);
commonAsyncComponent
.
getCopyReferral
(
dateStr
,
authInfoVO
,
referralEntity
);
commonAsyncComponent
.
dispatchDelay
(
dateStr
,
authInfoVO
,
referralEntity
);
customerGraphicsDelay
.
setSendStatus
(
CustomerCommonConstant
.
SEND_STATUS_ACTIVE
);
customerGraphicsDelay
.
setSendStatus
(
CustomerCommonConstant
.
SEND_STATUS_ACTIVE
);
localLog
.
info
(
"链接获取完成"
);
localLog
.
info
(
"链接获取完成"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论