Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-pe-analysis
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 06163bd7
authored
Dec 29, 2025
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]bi报表新增埋点
1 parent
97b58372
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/service/BusinessAnalysisService.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/service/BusinessAnalysisService.java
View file @
06163bd
...
...
@@ -800,6 +800,7 @@ public class BusinessAnalysisService {
Pair
<
String
,
String
>
lastPeriod
=
DateUtils
.
getLastPeriodDates
(
req
.
getStartTime
(),
req
.
getEndTime
(),
req
.
getCycleType
()
);
String
startTime
=
req
.
getStartTime
();
req
.
setStartTime
(
lastPeriod
.
getKey
());
req
.
setEndTime
(
lastPeriod
.
getValue
());
...
...
@@ -861,7 +862,7 @@ public class BusinessAnalysisService {
Collectors
.
toList
());
List
<
DistributioncConfigResponse
>
currentlist
=
findDisConfigByMerchantIdsAndMonth
(
currentMerchantIds
,
req
.
getStartTime
()
);
currentMerchantIds
,
startTime
);
List
<
DistributioncConfigResponse
>
lastlist
=
findDisConfigByMerchantIdsAndMonth
(
lastMerchantIds
,
lastPeriod
.
getKey
());
...
...
@@ -983,13 +984,21 @@ public class BusinessAnalysisService {
.
collect
(
Collectors
.
toList
());
log
.
info
(
"rankList: {}"
,
rankList
);
// 3. 找到目标省份的排名(从1开始)
BigDecimal
lastValue
=
null
;
int
rank
=
0
;
for
(
int
i
=
0
;
i
<
rankList
.
size
();
i
++)
{
if
(
proviceId
==
rankList
.
get
(
i
).
getKey
())
{
return
i
+
1
;
BigDecimal
currentValue
=
rankList
.
get
(
i
).
getValue
();
if
(!
currentValue
.
equals
(
lastValue
))
{
rank
=
i
+
1
;
lastValue
=
currentValue
;
}
if
(
proviceId
.
equals
(
rankList
.
get
(
i
).
getKey
()))
{
return
rank
;
}
}
return
provinceMetrics
.
isEmpty
()
?
1
:
provinceMetrics
.
size
()
+
1
;
// 未找到则排最后
return
0
;
}
...
...
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