Jelajahi Sumber

风电场下拉列表

shilin 4 tahun lalu
induk
melakukan
5f010c06fd

+ 27 - 0
src/main/java/com/gyee/frame/controller/powercompare/PowerCompareController.java

@@ -56,6 +56,33 @@ public class PowerCompareController {
     }
 
     /**
+     * 风电场下拉接口
+     * @return
+     */
+    @GetMapping("/windfarmAllAjax")
+    @ResponseBody
+    @CrossOrigin
+    public AjaxResult windfarmAllAjax() {
+        List<StopTypeTreeVo> vos = new ArrayList<StopTypeTreeVo>();
+        for (Windpowerstation station : InitialRunner.wpallls) {
+            if (station.getId().endsWith("FDC")) {
+                StopTypeTreeVo vo = new StopTypeTreeVo();
+                vo.setId(station.getId());
+                vo.setName(station.getName());
+                vo.setpId("0");
+                vos.add(vo);
+            }
+        }
+        if(vos !=null && !vos.isEmpty())
+        {
+            return	AjaxResult.successData(AjaxStatus.success.code,vos);
+        }else
+        {
+            return	AjaxResult.successData(AjaxStatus.emptyresultset.code,vos);
+        }
+    }
+
+    /**
      * 项目下拉接口
      * @return
      */