|
@@ -0,0 +1,256 @@
|
|
|
+package com.gyee.runeconomy.controller.specific;/*
|
|
|
+@author 谢生杰
|
|
|
+@date 2022/11/23-21:39
|
|
|
+*/
|
|
|
+
|
|
|
+import com.gyee.common.model.StringUtils;
|
|
|
+import com.gyee.common.vo.specific.SpecificTargetVo;
|
|
|
+import com.gyee.runeconomy.dto.R;
|
|
|
+import com.gyee.runeconomy.service.specific.SpecificService;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.text.ParseException;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("//specific")
|
|
|
+public class SpecificController {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private SpecificService specificService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询风能利用率功能
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/fnlylList")
|
|
|
+ @ResponseBody
|
|
|
+ public R fnlylList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.fnlylList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询发电量
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/fdlList")
|
|
|
+ @ResponseBody
|
|
|
+ public R fdlList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.fdlList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询综合厂用电量
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/zhcydlList")
|
|
|
+ @ResponseBody
|
|
|
+ public R zhcydlList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.zhcydlList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询故障损失率
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/gzsslList")
|
|
|
+ @ResponseBody
|
|
|
+ public R gzsslList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.gzsslList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询维护损失率
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/whsslList")
|
|
|
+ @ResponseBody
|
|
|
+ public R whsslList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.whsslList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询限电损失率
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/xdsslList")
|
|
|
+ @ResponseBody
|
|
|
+ public R xdsslList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.xdsslList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询性能损失率
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/xnsslList")
|
|
|
+ @ResponseBody
|
|
|
+ public R xnsslList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.xnsslList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询受累损失率
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/slsslList")
|
|
|
+ @ResponseBody
|
|
|
+ public R slsslList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.slsslList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询复位及时率
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/fwjslList")
|
|
|
+ @ResponseBody
|
|
|
+ public R fwjslList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.fwjslList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询状态转换率
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/ztzhlList")
|
|
|
+ @ResponseBody
|
|
|
+ public R ztzhlList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.ztzhlList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询消缺及时率
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/xqjslList")
|
|
|
+ @ResponseBody
|
|
|
+ public R xqjslList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.xqjslList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询MTBF
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/mtbfList")
|
|
|
+ @ResponseBody
|
|
|
+ public R mtbfList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.mtbfList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询MTTR
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/mttrList")
|
|
|
+ @ResponseBody
|
|
|
+ public R mttrList(@RequestParam(value = "companys",required = true) String companys,
|
|
|
+ @RequestParam(value = "type",required = true) String type,
|
|
|
+ @RequestParam(value = "year",required = true) String year) throws ParseException {
|
|
|
+
|
|
|
+ List<SpecificTargetVo> resultList = specificService.mttrList(companys,type,year);
|
|
|
+ if (StringUtils.isNotNull(resultList)) {
|
|
|
+ return R.ok().data(resultList);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|