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 fa8208f1
authored
Dec 12, 2025
by
zhuht
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[chg]修改滞留时间任务的调用顺序,放到tool建表后;
1 parent
de687c5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
src/main/java/com/viontech/keliu/consumer/MallDataStatisticsConsumer.java
src/main/java/com/viontech/keliu/consumer/MallDataStatisticsConsumer.java
View file @
fa8208f
...
...
@@ -3,7 +3,6 @@ package com.viontech.keliu.consumer;
import
cn.hutool.core.thread.ThreadUtil
;
import
cn.hutool.http.HttpUtil
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.viontech.keliu.constants.KafkaConstants
;
import
com.viontech.keliu.entity.MallDataStatisticsInfo
;
import
com.viontech.keliu.utils.DateUtil
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -54,7 +53,7 @@ public class MallDataStatisticsConsumer {
try
{
MallDataStatisticsInfo
mallDataStatisticsInfo
=
objectMapper
.
readValue
(
consumerRecord
.
value
(),
MallDataStatisticsInfo
.
class
);
executorService
.
execute
(()
->
{
log
.
info
(
"处理storeDataStatisticsInfo,mallId:{},countDate:{}, 开始"
,
mallDataStatisticsInfo
.
getMallId
(),
mallDataStatisticsInfo
.
getCountDate
());
log
.
info
(
"处理storeDataStatisticsInfo,mallId:{},countDate:{}, 开始"
,
mallDataStatisticsInfo
.
getMallId
(),
mallDataStatisticsInfo
.
getCountDate
());
execDataStatistics
(
mallDataStatisticsInfo
);
});
}
catch
(
Exception
ee
)
{
...
...
@@ -92,15 +91,8 @@ public class MallDataStatisticsConsumer {
log
.
info
(
"开始执行mallId:{} ,countDate:{} 统计任务"
,
mallDataStatisticsInfo
.
getMallId
(),
mallDataStatisticsInfo
.
getCountDate
());
String
date
=
DateUtil
.
format
(
mallDataStatisticsInfo
.
getCountDate
(),
"yyyy-MM-dd"
);
String
url
=
reidUrl
+
"/reid/tool/residenceByMall?mallId="
+
mallDataStatisticsInfo
.
getMallId
()
+
"&countDate="
+
date
;
try
{
String
result
=
HttpUtil
.
get
(
url
);
log
.
info
(
"调用mallId:{} 平均滞留时间 执行结果:{}"
,
mallDataStatisticsInfo
.
getMallId
(),
result
);
}
catch
(
Exception
e
)
{
log
.
error
(
"平均滞留时间计算异常:{}"
,
url
,
e
);
}
url
=
reidUrl
+
"/reid/tool/faceResidence?mallIds="
+
mallDataStatisticsInfo
.
getMallId
()
+
"&startDate="
+
date
+
"&endDate="
+
date
;
String
url
=
reidUrl
+
"/reid/tool/faceResidence?mallIds="
+
mallDataStatisticsInfo
.
getMallId
()
+
"&startDate="
+
date
+
"&endDate="
+
date
;
try
{
String
result
=
HttpUtil
.
get
(
url
);
log
.
info
(
"调用mallId:{} 滞留时间 执行结果:{}"
,
mallDataStatisticsInfo
.
getMallId
(),
result
);
...
...
@@ -124,6 +116,14 @@ public class MallDataStatisticsConsumer {
log
.
error
(
"客流数据重汇异常:{}"
,
url
,
e
);
}
url
=
reidUrl
+
"/reid/tool/residenceByMall?mallId="
+
mallDataStatisticsInfo
.
getMallId
()
+
"&countDate="
+
date
;
try
{
String
result
=
HttpUtil
.
get
(
url
);
log
.
info
(
"调用mallId:{} 平均滞留时间 执行结果:{}"
,
mallDataStatisticsInfo
.
getMallId
(),
result
);
}
catch
(
Exception
e
)
{
log
.
error
(
"平均滞留时间计算异常:{}"
,
url
,
e
);
}
url
=
reidUrl
+
"/reid/tool/faceRecognition/aggregation?mallIds="
+
mallDataStatisticsInfo
.
getMallId
()
+
"&startDate="
+
date
+
"&endDate="
+
date
;
try
{
String
result
=
HttpUtil
.
get
(
url
);
...
...
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