Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
5f42a270
Commit
5f42a270
authored
Jun 28, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改bug
parent
ba0bf323
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
FireStationInfoServiceImpl.java
...dule/ccs/biz/service/impl/FireStationInfoServiceImpl.java
+2
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-ccs-biz/src/main/java/com/yeejoin/amos/boot/module/ccs/biz/service/impl/FireStationInfoServiceImpl.java
View file @
5f42a270
...
...
@@ -85,7 +85,7 @@ public class FireStationInfoServiceImpl extends BaseService<FireStationInfoDto,
if
(
null
==
top
)
{
finalVoList
=
fireStationInfoList
.
stream
().
skip
(
0
).
sorted
(
Comparator
.
comparing
(
FireStationInfoDto:
:
getAlarmNum
).
reversed
()).
collect
(
Collectors
.
toList
());
}
else
{
finalVoList
=
fireStationInfoList
.
stream
().
skip
(
0
).
limit
(
top
).
sorted
(
Comparator
.
comparing
(
FireStationInfoDto:
:
getAlarmNum
).
reversed
()
).
collect
(
Collectors
.
toList
());
finalVoList
=
fireStationInfoList
.
stream
().
skip
(
0
).
sorted
(
Comparator
.
comparing
(
FireStationInfoDto:
:
getAlarmNum
).
reversed
()).
limit
(
top
).
collect
(
Collectors
.
toList
());
}
return
finalVoList
;
}
...
...
@@ -95,7 +95,7 @@ public class FireStationInfoServiceImpl extends BaseService<FireStationInfoDto,
String
year
=
DateUtil
.
format
(
date
,
"YYYY"
);
String
currentMonth
=
DateUtil
.
format
(
date
,
DatePattern
.
NORM_MONTH_PATTERN
);
String
yesterday
=
DateUtil
.
format
(
DateUtil
.
offsetDay
(
date
,
-
1
),
DatePattern
.
NORM_DATE_PATTERN
);
Integer
todayNum
=
this
.
baseMapper
.
queryAlarmCountByDateAndCode
(
stationCode
,
DateUtil
.
now
());
Integer
todayNum
=
this
.
baseMapper
.
queryAlarmCountByDateAndCode
(
stationCode
,
DateUtil
.
today
());
Integer
currentYearNum
=
this
.
baseMapper
.
queryAlarmCountByDateAndCode
(
stationCode
,
year
);
Integer
currentMonthNum
=
this
.
baseMapper
.
queryAlarmCountByDateAndCode
(
stationCode
,
currentMonth
);
Integer
yesterdayNum
=
this
.
baseMapper
.
queryAlarmCountByDateAndCode
(
stationCode
,
yesterday
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment