From 0ce771b4a4ff5897dc91bb1b84a4561781b00ca5 Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期一, 01 七月 2024 14:38:24 +0800
Subject: [PATCH] 修改

---
 src/main/java/com/whyc/controller/CKPowerDevAlarmHistoryController.java |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/whyc/controller/CKPowerDevAlarmHistoryController.java b/src/main/java/com/whyc/controller/CKPowerDevAlarmHistoryController.java
index 89e0507..126a76c 100644
--- a/src/main/java/com/whyc/controller/CKPowerDevAlarmHistoryController.java
+++ b/src/main/java/com/whyc/controller/CKPowerDevAlarmHistoryController.java
@@ -1,7 +1,9 @@
 package com.whyc.controller;
 
+import com.whyc.dto.DevAlarmHisDto;
 import com.whyc.dto.Response;
 import com.whyc.pojo.db_ckpwrdev_alarm.CKPowerDevAlarm;
+import com.whyc.pojo.db_ckpwrdev_alarm.CKPowerDevAlarmHistory;
 import com.whyc.service.CKPowerDevAlarmHistoryService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -11,8 +13,10 @@
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
+import java.text.ParseException;
+
 @RestController
-@Api(tags = "娴嬫帶鐢垫簮鍛婅")
+@Api(tags = "娴嬫帶鐢垫簮鍘嗗彶鍛婅")
 @RequestMapping("ckPowerDevAlarmHistory")
 public class CKPowerDevAlarmHistoryController {
 
@@ -21,8 +25,13 @@
 
     @PostMapping("getPage")
     @ApiOperation("鍒嗛〉鏌ヨ")
-    public Response getPage(@RequestBody CKPowerDevAlarm alarm){
-        return service.getPage(alarm);
+    public Response getPage(@RequestBody DevAlarmHisDto alarmDto) throws ParseException {
+        return service.getPage(alarmDto);
     }
 
+    @PostMapping("getCountByLevel")
+    @ApiOperation("澶撮儴缁熻")
+    public Response getCountByLevel() throws InterruptedException {
+        return service.getCountByLevel();
+    }
 }

--
Gitblit v1.9.1