|
@@ -0,0 +1,61 @@
|
|
|
+package com.gyee.consumer.controller.reliability;
|
|
|
+
|
|
|
+
|
|
|
+import com.gyee.common.domain.AjaxResult;
|
|
|
+import com.gyee.consumer.service.reliability.ReliabilityService;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/reliability")
|
|
|
+public class ReliabilityController {
|
|
|
+ @Autowired
|
|
|
+ private ReliabilityService reliabilityService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获得风场预警分类信息
|
|
|
+ * @param wpid
|
|
|
+ * @param date
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/earlyWarn")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "获得风场预警分类信息", notes = "获得风场预警分类信息")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "wpid", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "date", value = "日期", required = true, dataType = "string", paramType = "query")
|
|
|
+ })
|
|
|
+
|
|
|
+ public AjaxResult earlyWarn(@RequestParam("wpid") String wpid, @RequestParam("date") String date) {
|
|
|
+
|
|
|
+ AjaxResult ajax=reliabilityService.earlyWarn( wpid,date);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 故障统计
|
|
|
+ * @param wpid
|
|
|
+ * @param date
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/failurestatistics")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "获得风场故障分类信息", notes = "获得风场故障分类信息")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "wpid", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "date", value = "日期", required = true, dataType = "string", paramType = "query")
|
|
|
+ })
|
|
|
+
|
|
|
+ public AjaxResult failurestatistics(@RequestParam("wpid") String wpid, @RequestParam("date") String date) {
|
|
|
+
|
|
|
+ AjaxResult ajax=reliabilityService.failurestatistics( wpid,date);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|