From e99f1cd836475a059ed6fdcbd4235416ba108dd1 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 03 十二月 2021 17:16:00 +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