|
@@ -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
|
|
|
*/
|