From 3858c799e10a176d70420c2843ff4459aee7964c Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 16 十月 2025 17:40:01 +0800
Subject: [PATCH] 2025.10.16 新增三种类型的数据产品数据库实体

---
 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