Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
毛树良
/
VVAS-DataCenter-DBWriter
Go to a project
Project
Repository
Merge Requests
0
Pipelines
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fb11a55a
authored
Jul 10, 2025
by
毛树良
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[chg]全天分析后,默认不在跑支付事件数据,因为这个功能已迁移至VVAS-PayAnalysis服务中;如果项目未部署VVAS-PayAnalysis服务,又需要支付事件,可以开启;
1 parent
88afe9d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
src/main/java/com/viontech/keliu/consumer/MallDataStatisticsConsumer.java
src/main/resources/application.properties
src/main/java/com/viontech/keliu/consumer/MallDataStatisticsConsumer.java
View file @
fb11a55
...
...
@@ -35,6 +35,9 @@ public class MallDataStatisticsConsumer {
@Value
(
"${vion.consumer.mallDataStatistics.zoneNum:true}"
)
private
boolean
zoneNumEnable
;
@Value
(
"${vion.consumer.mallDataStatistics.payEvent:false}"
)
private
boolean
payEventEnable
;
private
ExecutorService
executorService
=
ThreadUtil
.
newFixedExecutor
(
1
,
1024
,
"dataStatistics-"
,
true
);
@KafkaListener
(
topics
=
KafkaConstants
.
MALL_DATA_STATISTICS_TOPIC
...
...
@@ -196,12 +199,14 @@ public class MallDataStatisticsConsumer {
}
}
url
=
reidUrl
+
"/reid/tool/payEvent?mallId="
+
mallDataStatisticsInfo
.
getMallId
()
+
"&countDate="
+
date
;
try
{
String
result
=
HttpUtil
.
get
(
url
);
log
.
info
(
"调用mallId:{} 收银事件 执行结果:{}"
,
mallDataStatisticsInfo
.
getMallId
(),
result
);
}
catch
(
Exception
e
)
{
log
.
error
(
"收银事件计算异常:{}"
,
url
,
e
);
if
(
payEventEnable
)
{
url
=
reidUrl
+
"/reid/tool/payEvent?mallId="
+
mallDataStatisticsInfo
.
getMallId
()
+
"&countDate="
+
date
;
try
{
String
result
=
HttpUtil
.
get
(
url
);
log
.
info
(
"调用mallId:{} 收银事件 执行结果:{}"
,
mallDataStatisticsInfo
.
getMallId
(),
result
);
}
catch
(
Exception
e
)
{
log
.
error
(
"收银事件计算异常:{}"
,
url
,
e
);
}
}
}
}
src/main/resources/application.properties
View file @
fb11a55
...
...
@@ -81,3 +81,4 @@ vion.consumer.mallDataStatistics.autoStartup=true
vion.consumer.mallDataStatistics.concurrency
=
1
vion.consumer.mallDataStatistics.reidUrl
=
http://10.0.14.11:23456
vion.consumer.mallDataStatistics.zoneNum
=
false
vion.consumer.mallDataStatistics.payEvent
=
false
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment