Commit 507301c8 by 向延琳

reset

1 parent a64c31ff
...@@ -192,12 +192,12 @@ public class DashboardService extends AbstractCommonService { ...@@ -192,12 +192,12 @@ public class DashboardService extends AbstractCommonService {
injectSettled(activeSearch); injectSettled(activeSearch);
StopWatch stopWatch = new StopWatch(); StopWatch stopWatch = new StopWatch();
//激活设备总数 TODO 警情迁移后需要单独查询激活数量 //激活设备总数
// stopWatch.start(); stopWatch.start();
// List<Integer> listActiveDevice = vehicleDeviceMapper.countDeviceWithAuth(new RangeTimeDTO(), activeSearch); List<Integer> listActiveDevice = vehicleDeviceMapper.countDeviceWithAuth(new RangeTimeDTO(), activeSearch);
// int totalActiveDevice = listActiveDevice.stream().reduce(0, Integer::sum); int totalActiveDevice = listActiveDevice.stream().reduce(0, Integer::sum);
// stopWatch.stop(); stopWatch.stop();
// log.info("{} 耗时:{} ms", "看板统计信息 - 激活设备总数查询", stopWatch.getLastTaskTimeMillis()); log.info("{} 耗时:{} ms", "看板统计信息 - 激活设备总数查询", stopWatch.getLastTaskTimeMillis());
//车辆总数 //车辆总数
stopWatch.start(); stopWatch.start();
...@@ -217,7 +217,6 @@ public class DashboardService extends AbstractCommonService { ...@@ -217,7 +217,6 @@ public class DashboardService extends AbstractCommonService {
//查询新E盾sn //查询新E盾sn
stopWatch.start(); stopWatch.start();
List<String> sns = vehicleMapper.getAllDeviceSnByAuth(); List<String> sns = vehicleMapper.getAllDeviceSnByAuth();
int totalActiveDevice = sns.size();
stopWatch.stop(); stopWatch.stop();
log.info("{} 耗时:{} ms", "看板统计信息 - sn查询", stopWatch.getLastTaskTimeMillis()); log.info("{} 耗时:{} ms", "看板统计信息 - sn查询", stopWatch.getLastTaskTimeMillis());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!