From 7a22433eae5550d49f8de54bdc77ab29a79fd59a Mon Sep 17 00:00:00 2001
From: lxw <810412026@qq.com>
Date: 星期四, 01 六月 2023 10:54:58 +0800
Subject: [PATCH] powerInf/getPwrInf

---
 src/main/java/com/whyc/controller/PowerInfController.java |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/src/main/java/com/whyc/controller/PowerInfController.java b/src/main/java/com/whyc/controller/PowerInfController.java
index 2c1808c..e531c53 100644
--- a/src/main/java/com/whyc/controller/PowerInfController.java
+++ b/src/main/java/com/whyc/controller/PowerInfController.java
@@ -1,7 +1,5 @@
 package com.whyc.controller;
 
-import com.baomidou.mybatisplus.extension.api.R;
-import com.github.pagehelper.PageInfo;
 import com.whyc.dto.Response;
 import com.whyc.factory.BattinfGroupFactory;
 import com.whyc.pojo.Battinf;
@@ -13,18 +11,12 @@
 import com.whyc.service.PowerInfService;
 import com.whyc.service.StationInfService;
 import com.whyc.util.ActionUtil;
-import com.whyc.util.CommonUtil;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
-import org.apache.poi.util.StringUtil;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.util.StringUtils;
 import org.springframework.web.bind.annotation.*;
-
-import javax.annotation.Resource;
-import java.io.PipedWriter;
-import java.util.List;
 
 @RequestMapping("powerInf")
 @RestController
@@ -189,16 +181,23 @@
         return service.updateExceptionCause(powerInf);
     }
 
-    @ApiOperation(value = "鍙栨秷寮傚父鍘熷洜",notes = "浼犲叆瀛楁 num")
+    @ApiOperation(value = "鍙栨秷寮傚父鍘熷洜", notes = "浼犲叆瀛楁 num")
     @PutMapping("cancelExceptionCause")
-    public Response updateCancelExceptionCause(@RequestParam int num){
+    public Response updateCancelExceptionCause(@RequestParam int num) {
         return service.updateCancelExceptionCause(num);
     }
 
-    @ApiOperation(value = "鏌ヨ寮傚父鍘熷洜",notes = "浼犲叆瀛楁 num")
+    @ApiOperation(value = "鏌ヨ寮傚父鍘熷洜", notes = "浼犲叆瀛楁 num")
     @GetMapping("exceptionCause")
-    public Response getExceptionCause(@RequestParam int num){
+    public Response getExceptionCause(@RequestParam int num) {
         return service.getExceptionCause(num);
     }
 
+
+    @GetMapping("getPwrInf")
+    @ApiOperation(value = "鑾峰彇鐢ㄦ埛绠$悊鐨勬満鎴�")
+    public Response getPwrInf() {
+        UserInf userInf = (UserInf) ActionUtil.getUser();
+        return service.getPwrInf(userInf.getUId());
+    }
 }

--
Gitblit v1.9.1