whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/controller/PwrDevDataHistoryGWController.java
@@ -6,10 +6,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.text.ParseException;
@@ -28,4 +25,10 @@
        return service.getListByParam(param);
    }
    @GetMapping("getAvgLoadCurr")
    @ApiOperation("获取当前天平均负载电流")
    public Response getAvgLoadCurr(@RequestParam Integer powerId) {
        return service.getAvgLoadCurr(powerId);
    }
}