Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-miniappserver
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 507301c8
authored
Jul 14, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
reset
1 parent
a64c31ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
src/main/java/cn/com/glsx/app/modules/service/DashboardService.java
src/main/java/cn/com/glsx/app/modules/service/DashboardService.java
View file @
507301c
...
...
@@ -192,12 +192,12 @@ public class DashboardService extends AbstractCommonService {
injectSettled
(
activeSearch
);
StopWatch
stopWatch
=
new
StopWatch
();
//激活设备总数
TODO 警情迁移后需要单独查询激活数量
//
stopWatch.start();
//
List<Integer> listActiveDevice = vehicleDeviceMapper.countDeviceWithAuth(new RangeTimeDTO(), activeSearch);
//
int totalActiveDevice = listActiveDevice.stream().reduce(0, Integer::sum);
//
stopWatch.stop();
//
log.info("{} 耗时:{} ms", "看板统计信息 - 激活设备总数查询", stopWatch.getLastTaskTimeMillis());
//激活设备总数
stopWatch
.
start
();
List
<
Integer
>
listActiveDevice
=
vehicleDeviceMapper
.
countDeviceWithAuth
(
new
RangeTimeDTO
(),
activeSearch
);
int
totalActiveDevice
=
listActiveDevice
.
stream
().
reduce
(
0
,
Integer:
:
sum
);
stopWatch
.
stop
();
log
.
info
(
"{} 耗时:{} ms"
,
"看板统计信息 - 激活设备总数查询"
,
stopWatch
.
getLastTaskTimeMillis
());
//车辆总数
stopWatch
.
start
();
...
...
@@ -217,7 +217,6 @@ public class DashboardService extends AbstractCommonService {
//查询新E盾sn
stopWatch
.
start
();
List
<
String
>
sns
=
vehicleMapper
.
getAllDeviceSnByAuth
();
int
totalActiveDevice
=
sns
.
size
();
stopWatch
.
stop
();
log
.
info
(
"{} 耗时:{} ms"
,
"看板统计信息 - sn查询"
,
stopWatch
.
getLastTaskTimeMillis
());
...
...
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