|
@@ -0,0 +1,83 @@
|
|
|
+package test;
|
|
|
+
|
|
|
+import com.gyee.SpringbootStart;
|
|
|
+import com.gyee.frame.common.domain.AjaxResult;
|
|
|
+import com.gyee.frame.common.spring.SpringUtils;
|
|
|
+import com.gyee.frame.controller.scatter.ScatterController;
|
|
|
+import com.gyee.frame.model.custom.Tablepar;
|
|
|
+import lombok.SneakyThrows;
|
|
|
+import org.springframework.boot.SpringApplication;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+public class ScatterTest {
|
|
|
+
|
|
|
+ @SneakyThrows
|
|
|
+ public static void main(String[] args) {
|
|
|
+
|
|
|
+ SpringApplication.run(SpringbootStart.class, args);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ String wtId="MG01_03";
|
|
|
+ String wpId="MHS_FDC";
|
|
|
+ String year="2021";
|
|
|
+ String month="1";
|
|
|
+
|
|
|
+ ScatterController scatterController= SpringUtils.getBean("scatterController");
|
|
|
+
|
|
|
+ Tablepar tablepar=new Tablepar();
|
|
|
+ tablepar.setPageNum(1);
|
|
|
+ tablepar.setPageSize(10);
|
|
|
+ tablepar.setOrderByColumn("windturbineName");
|
|
|
+ tablepar.setIsAsc("asc");
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ AjaxResult ar = scatterController.scatterWtAjax(wtId,year,month);
|
|
|
+
|
|
|
+ Map<String, List<List<Double>>> map=(Map<String, List<List<Double>>>)ar.get("data");
|
|
|
+
|
|
|
+ List<List<Double>> vos=map.get("line");
|
|
|
+ for(List<Double> wtd:vos)
|
|
|
+ {
|
|
|
+ System.out.println(wtd.size());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+}
|