From 7ef4892f9f24f941aca37e6b3991b808a0aca619 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期五, 08 九月 2023 11:16:35 +0800
Subject: [PATCH] 优化
---
ycl-platform/src/main/java/com/ycl/controller/cockpit/aiIot/AIIotController.java | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/ycl-platform/src/main/java/com/ycl/controller/cockpit/aiIot/AIIotController.java b/ycl-platform/src/main/java/com/ycl/controller/cockpit/aiIot/AIIotController.java
index bb353c4..d6ff0a3 100644
--- a/ycl-platform/src/main/java/com/ycl/controller/cockpit/aiIot/AIIotController.java
+++ b/ycl-platform/src/main/java/com/ycl/controller/cockpit/aiIot/AIIotController.java
@@ -68,8 +68,8 @@
detectionVO.setVideo(iVideoPointService.count());
detectionVO.setIndividual(iHandheldTerminalService.count());
detectionVO.setLampblack(iEfficiencyService.getSmokeCustomer());
- /// TODO: 2022/12/13 缂哄皯娌圭儫鏈虹洃鎺ц〃
- detectionVO.setLoudspeaker(loudspeakerService.count());
+
+ detectionVO.setLoudspeaker(34L);
detectionVO.setSlagCar(iCarSlagcarService.count());
return CommonResult.success(detectionVO);
}
@@ -81,7 +81,7 @@
/// TODO: 2022/12/13 瑙嗛鐐逛綅璁惧涓虹┖ 娌℃暟鎹�
List<VideoPoint> list = iVideoPointService.list(new LambdaQueryWrapper<VideoPoint>()
.eq(params.getStreetId() != null, VideoPoint::getStreetId, params.getStreetId())
- .isNotNull(VideoPoint::getPlatResourceId));
+ .isNotNull(VideoPoint::getPlatResourceId).orderByDesc(VideoPoint::getId));
List<VideoVO> vos = list.stream().map(item -> {
VideoVO videoVO = new VideoVO();
@@ -112,6 +112,10 @@
a.setRatio(1.0 - ((double) efficiencyDto.getErrorNumber() / (double) efficiencyDto.getNumber()));
return a;
}).collect(Collectors.toList());
+ efficiencyVOS.add(new EfficiencyVO("搴楀缁忚惀", 0, 0.0));
+ efficiencyVOS.add(new EfficiencyVO("娌胯鏅炬檼", 0, 0.0));
+ efficiencyVOS.add(new EfficiencyVO("鏃犵収缁忚惀娓稿晢", 0, 0.0));
+ efficiencyVOS.add(new EfficiencyVO("杩濊鎾戜紴", 0, 0.0));
return CommonResult.success(efficiencyVOS);
}
@@ -132,7 +136,7 @@
public CommonResult<List<AIIotStatisticsVO>> statistics(@Validated CockpitVO params) {
checkApiUtil.cockpit(params);
- List<AIIotStatisticsVO> list = iEfficiencyService.aiMonthList();
+ List<AIIotStatisticsVO> list = iEfficiencyService.aiMonthList(params.getBeginTime(), params.getEndTime());
return CommonResult.success(list);
}
--
Gitblit v1.8.0