|
@@ -1,17 +1,14 @@
|
|
|
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.DataVo;
|
|
|
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 {
|
|
|
|
|
@@ -27,17 +24,17 @@ public class GoodnessTest {
|
|
|
c.set(Calendar.MINUTE, 0);
|
|
|
c.set(Calendar.SECOND, 0);
|
|
|
|
|
|
- c.set(Calendar.DAY_OF_MONTH,2);
|
|
|
- c.set(Calendar.MONTH,0);
|
|
|
- c.set(Calendar.YEAR,2021);
|
|
|
+ c.set(Calendar.DAY_OF_MONTH, 2);
|
|
|
+ c.set(Calendar.MONTH, 0);
|
|
|
+ c.set(Calendar.YEAR, 2021);
|
|
|
|
|
|
Date date = c.getTime();
|
|
|
|
|
|
- String wpid="MHS_FDC";
|
|
|
- String wtid="MG01_02";
|
|
|
+ String wpid = "MHS_FDC";
|
|
|
+ String wtid = "MG01_02";
|
|
|
|
|
|
|
|
|
- WindturbineDetailLineChartController windturbineDetailLineChartController= SpringUtils.getBean("windturbineDetailLineChartController");
|
|
|
+ WindturbineDetailLineChartController windturbineDetailLineChartController = SpringUtils.getBean("windturbineDetailLineChartController");
|
|
|
|
|
|
|
|
|
|
|
@@ -45,7 +42,7 @@ public class GoodnessTest {
|
|
|
|
|
|
|
|
|
|
|
|
- Tablepar tablepar=new Tablepar();
|
|
|
+ Tablepar tablepar = new Tablepar();
|
|
|
tablepar.setPageNum(1);
|
|
|
tablepar.setPageSize(10);
|
|
|
|
|
@@ -164,15 +161,13 @@ public class GoodnessTest {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -187,17 +182,17 @@ public class GoodnessTest {
|
|
|
|
|
|
|
|
|
|
|
|
- AjaxResult ajaxResult4 =windturbineDetailLineChartController.findWtRealPowerChar(wtid,"2021-01-01");
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- List<DataVo> test4=(List<DataVo> )ajaxResult4.get("data");
|
|
|
|
|
|
- for(DataVo wtd:test4)
|
|
|
- {
|
|
|
- System.out.println(wtd.getValue1()+"----------------"+wtd.getValue2()+"----------------"+wtd.getValue3());
|
|
|
- }
|
|
|
- System.out.println("***************************************************************************************");
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|