From 9cb8d7e0f4ffca386b14a15f8a0aca4d1db23252 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 30 十月 2025 15:58:45 +0800
Subject: [PATCH] 2025.10.30 新增单场景纵向统计接口
---
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/InspectionController.kt | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/InspectionController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/InspectionController.kt
index 502dc57..147cefe 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/InspectionController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/InspectionController.kt
@@ -6,6 +6,7 @@
import cn.flightfeather.supervision.lightshare.service.InspectionService
import cn.flightfeather.supervision.lightshare.vo.AreaVo
import cn.flightfeather.supervision.lightshare.vo.BaseResponse
+import cn.flightfeather.supervision.lightshare.vo.InspectionStatisticVo
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
@@ -65,8 +66,8 @@
@ApiParam("鎬讳换鍔d") @RequestParam(required = false) topTaskId: String?,
@ApiParam("鍦烘櫙绫诲瀷id") @RequestParam(required = false) sceneTypeId: String?,
@ApiParam("鍖哄煙鏉′欢") @RequestBody(required = false) areaVo: AreaVo?,
- ) = resPack {
- if (topTaskId != null && sceneTypeId != null) {
+ ):List<InspectionStatisticVo> {
+ return if (topTaskId != null && sceneTypeId != null) {
inspectionService.getStatistic(topTaskId, sceneTypeId)
} else if (areaVo != null) {
inspectionService.getStatistic(areaVo)
--
Gitblit v1.9.3