|
@@ -0,0 +1,53 @@
|
|
|
+package com.gyee.runeconomy.controller.goodness;
|
|
|
+
|
|
|
+import com.gyee.common.model.StringUtils;
|
|
|
+import com.gyee.runeconomy.dto.R;
|
|
|
+import com.gyee.runeconomy.dto.ResultMsg;
|
|
|
+import com.gyee.runeconomy.dto.response.StationAnalysis;
|
|
|
+import com.gyee.runeconomy.service.goodness.WindturbinegoodnessService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 单机性能分析列表
|
|
|
+ */
|
|
|
+@Controller
|
|
|
+@RequestMapping("/economicsOperation")
|
|
|
+@Api(value = "单机信息总览首页",tags = "单机信息总览首页")
|
|
|
+public class StationAnalysisController {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private WindturbinegoodnessService windturbinegoodnessService;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 场站性能分析
|
|
|
+ */
|
|
|
+ @GetMapping("/analyse/stationAnalyse")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "场站性能分析", notes = "场站性能分析")
|
|
|
+ public R cndb(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "wpid",required = true) String wpid,
|
|
|
+ @RequestParam(value = "beginDate",required = true) String beginDate,
|
|
|
+ @RequestParam(value = "endDate",required = true) String endDate,
|
|
|
+ @RequestParam(value = "target",required = false) String target,
|
|
|
+ @RequestParam(value = "sort",required = false) String sort
|
|
|
+ ) throws Exception {
|
|
|
+
|
|
|
+ Map<String, List<StationAnalysis>> resultList = windturbinegoodnessService.stationAnalysis(companys, type, wpid, beginDate, endDate, target, sort);
|
|
|
+
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.data(ResultMsg.ok(resultList));
|
|
|
+ } else {
|
|
|
+ return R.error(ResultMsg.error());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|