Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
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 48284d67
authored
Apr 15, 2024
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.60.1 开发1.60.1需求版本 修改风险监控业务管理基本信息中的客户姓名为组织层级一级名称
1 parent
7ed758af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/main/java/cn/com/glsx/admin/modules/service/RiskAssessmentService.java
src/main/java/cn/com/glsx/admin/modules/service/RiskAssessmentService.java
View file @
48284d6
...
...
@@ -416,6 +416,8 @@ public class RiskAssessmentService {
// 获取最大的年数
Integer
maxYearInt
=
userBehaviorWeekDTOList
.
stream
().
map
(
UserBehaviorWeekDTO:
:
getYearInt
).
max
(
Integer:
:
compareTo
).
orElse
(
0
);
log
.
info
(
sn
+
"===maxYearInt==="
+
maxYearInt
);
// 获取最小的年份
Integer
minYearInt
=
userBehaviorWeekDTOList
.
stream
().
map
(
UserBehaviorWeekDTO:
:
getYearInt
).
min
(
Integer:
:
compareTo
).
orElse
(
0
);
// 获取最大年数的最大的周数
Integer
maxWeekInt
=
userBehaviorWeekDTOList
.
stream
().
filter
(
item
->
Objects
.
equals
(
item
.
getYearInt
(),
maxYearInt
)).
map
(
UserBehaviorWeekDTO:
:
getWeekInt
).
max
(
Integer:
:
compareTo
).
orElse
(
0
);
log
.
info
(
sn
+
"===maxWeekInt==="
+
maxWeekInt
);
...
...
@@ -423,7 +425,7 @@ public class RiskAssessmentService {
Integer
minWeekInt
=
userBehaviorWeekDTOList
.
stream
().
filter
(
item
->
Objects
.
equals
(
item
.
getYearInt
(),
maxYearInt
)).
map
(
UserBehaviorWeekDTO:
:
getWeekInt
).
min
(
Integer:
:
compareTo
).
orElse
(
0
);
log
.
info
(
sn
+
"===minWeekInt==="
+
minWeekInt
);
// 如果数据不满一周 则按照每日数量进行统计
if
(
Objects
.
equals
(
maxWeekInt
,
minWeekInt
))
{
if
(
Objects
.
equals
(
max
YearInt
,
minYearInt
)
&&
Objects
.
equals
(
max
WeekInt
,
minWeekInt
))
{
userBehaviorInformationVO
.
setStatisticsType
(
2
);
List
<
UserBehaviorDayDTO
>
userBehaviorDayDTOList
=
deviceJourneyMapper
.
statisticsDeviceJourneyWithDay
(
sn
);
// 获取最大的天数
...
...
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