From da431c25dfe5122e4ed70372da36ede3e4eaec4a Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期五, 31 五月 2024 17:43:41 +0800
Subject: [PATCH] 1. 新增自动报告生成功能

---
 src/main/kotlin/com/flightfeather/uav/lightshare/web/ElectricityController.kt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/main/kotlin/com/flightfeather/uav/lightshare/web/ElectricityController.kt b/src/main/kotlin/com/flightfeather/uav/lightshare/web/ElectricityController.kt
index cc74fc6..c778d45 100644
--- a/src/main/kotlin/com/flightfeather/uav/lightshare/web/ElectricityController.kt
+++ b/src/main/kotlin/com/flightfeather/uav/lightshare/web/ElectricityController.kt
@@ -49,4 +49,12 @@
         @RequestParam(value = "page", required = false) page: Int?,
         @RequestParam(value = "perPage", required = false) perPage: Int?
     ) = electricityService.getElectricityInfo(cId, startTime, endTime, page, perPage)
+
+    @ApiOperation(value = "浼佷笟鐢ㄧ數閲忔棩鍒嗘瀽")
+    @GetMapping("/analysis/daily")
+    fun dailyStatistics(
+        @ApiParam("浼佷笟id") @RequestParam(value = "cId") cId: String,
+        @ApiParam(value = "寮�濮嬫椂闂�", example = "yyyy-MM-dd HH:mm:ss") @RequestParam(value = "startTime", required = false) startTime: String?,
+        @ApiParam(value = "缁撴潫鏃堕棿", example = "yyyy-MM-dd HH:mm:ss") @RequestParam(value = "endTime", required = false) endTime: String?,
+    ) = electricityService.dailyAnalysis(cId, startTime, endTime)
 }
\ No newline at end of file

--
Gitblit v1.9.3