|
@@ -1,14 +1,17 @@
|
|
|
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.goodness.WindturbineDetailLineChartController;
|
|
|
+import com.gyee.frame.model.custom.EchartDataVo;
|
|
|
import com.gyee.frame.model.custom.Tablepar;
|
|
|
import lombok.SneakyThrows;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
|
import java.util.Calendar;
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
public class GoodnessTest {
|
|
|
|
|
@@ -160,19 +163,19 @@ public class GoodnessTest {
|
|
|
//
|
|
|
//
|
|
|
// WindturbineDetailLineChartController windturbineDetailLineChartController= SpringUtils.getBean("windturbineDetailLineChartController");
|
|
|
-//
|
|
|
-// AjaxResult ajaxResult = windturbineDetailLineChartController.getplotBands(wtid, "2021-01-02");
|
|
|
-//
|
|
|
-// List<List<EchartDataVo>> test3 = (List<List<EchartDataVo>>) ajaxResult.get("data");
|
|
|
-//
|
|
|
-// for (List<EchartDataVo> ls : test3) {
|
|
|
-// for (EchartDataVo wtd : ls) {
|
|
|
-// System.out.println(wtd.getName() + "----------------" + wtd.getxAxis());
|
|
|
-// }
|
|
|
-//
|
|
|
-// }
|
|
|
-// System.out.println("***************************************************************************************");
|
|
|
-//
|
|
|
+
|
|
|
+ AjaxResult ajaxResult = windturbineDetailLineChartController.getplotBands(wtid, "2021-01-02");
|
|
|
+
|
|
|
+ List<List<EchartDataVo>> test3 = (List<List<EchartDataVo>>) ajaxResult.get("data");
|
|
|
+
|
|
|
+ for (List<EchartDataVo> ls : test3) {
|
|
|
+ for (EchartDataVo wtd : ls) {
|
|
|
+ System.out.println(wtd.getName() + "----------------" + wtd.getxAxis());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ System.out.println("***************************************************************************************");
|
|
|
+
|
|
|
// AjaxResult ajaxResult2 =windturbineDetailLineChartController.plotBandAjax(wtid,"2021-01-02 00:01" ,"2021-01-02 03:22");
|
|
|
//
|
|
|
// Map<String, Double> test2=(Map<String, Double>)ajaxResult2.get("data");
|