|
@@ -4,7 +4,9 @@ import com.gyee.SpringbootStart;
|
|
|
import com.gyee.frame.common.domain.AjaxResult;
|
|
|
import com.gyee.frame.common.spring.SpringUtils;
|
|
|
import com.gyee.frame.controller.leaderboard.LeaderboardController;
|
|
|
-import com.gyee.frame.model.custom.StatisticalAnalysisTopVo;
|
|
|
+import com.gyee.frame.model.auto.Curvefittingmain;
|
|
|
+import com.gyee.frame.model.auto.Curvefittingmonthmain;
|
|
|
+import com.gyee.frame.model.custom.DataVo;
|
|
|
import com.gyee.frame.model.custom.Tablepar;
|
|
|
import lombok.SneakyThrows;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
@@ -12,6 +14,7 @@ import org.springframework.boot.SpringApplication;
|
|
|
import java.util.Calendar;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
public class LeaderboardTest {
|
|
|
|
|
@@ -59,15 +62,15 @@ public class LeaderboardTest {
|
|
|
|
|
|
// AjaxResult ajaxResult =leaderboardController.loadfactortoplist(tablepar,"-1","MHS_FDC","2021-01-01","2021-01-03");
|
|
|
// AjaxResult ajaxResult =leaderboardController.querywarningStatistical(tablepar,"1","2021-01-01","2021-01-03");
|
|
|
-
|
|
|
- AjaxResult ajaxResult1 =leaderboardController.querywarningStatistical(tablepar,"2","2021-01-01","2021-01-03");
|
|
|
-// AjaxResult ajaxResult2 =leaderboardController.querywarningStatistical(tablepar,"3","2021-01-01","2021-01-03");
|
|
|
-
|
|
|
- List<StatisticalAnalysisTopVo> test2=(List<StatisticalAnalysisTopVo>)ajaxResult1.get("data");
|
|
|
- for(StatisticalAnalysisTopVo wtd:test2)
|
|
|
- {
|
|
|
- System.out.println(wtd.getWindfarm()+"----------------"+wtd.getPower()+"----------------"+wtd.getSpeed());
|
|
|
- }
|
|
|
+//
|
|
|
+// AjaxResult ajaxResult1 =leaderboardController.querywarningStatistical(tablepar,"2","2021-01-01","2021-01-03");
|
|
|
+//// AjaxResult ajaxResult2 =leaderboardController.querywarningStatistical(tablepar,"3","2021-01-01","2021-01-03");
|
|
|
+//
|
|
|
+// List<StatisticalAnalysisTopVo> test2=(List<StatisticalAnalysisTopVo>)ajaxResult1.get("data");
|
|
|
+// for(StatisticalAnalysisTopVo wtd:test2)
|
|
|
+// {
|
|
|
+// System.out.println(wtd.getWindfarm()+"----------------"+wtd.getPower()+"----------------"+wtd.getSpeed());
|
|
|
+// }
|
|
|
|
|
|
// AjaxResult ajaxResult =leaderboardController.utilizationList(tablepar,null,"2021-01-01","2021-01-03","0");
|
|
|
//
|
|
@@ -96,45 +99,45 @@ public class LeaderboardTest {
|
|
|
// }
|
|
|
//
|
|
|
//
|
|
|
-// AjaxResult ajaxResult =leaderboardController.curvefittingmainList(tablepar,wpid,"2021-01-01");
|
|
|
-//
|
|
|
-// List<Curvefittingmain> test=(List<Curvefittingmain>)ajaxResult.get("data");
|
|
|
-// for(Curvefittingmain wtd:test)
|
|
|
-// {
|
|
|
-// System.out.println(wtd.getDeviationrate1()+"----------------"+wtd.getDeviationrate2()+"----------------"+wtd.getDeviationrate3());
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// AjaxResult ajaxResult2 =leaderboardController.getCurvechatAjax("sjbz","MG01_01",beginDate);
|
|
|
-//
|
|
|
-//
|
|
|
-// Map<String, Object> map=(Map<String, Object>)ajaxResult2.get("data");
|
|
|
-// List<DataVo> datavos =(List<DataVo>)map.get("datas");
|
|
|
-// for(DataVo wtd:datavos)
|
|
|
-// {
|
|
|
-// System.out.println(wtd.getValue1()+"----------------"+wtd.getValue2()+"----------------"+wtd.getValue3());
|
|
|
-// }
|
|
|
+ AjaxResult ajaxResult =leaderboardController.curvefittingmainList(tablepar,wpid,"2021-01-01");
|
|
|
|
|
|
+ List<Curvefittingmain> test=(List<Curvefittingmain>)ajaxResult.get("data");
|
|
|
+ for(Curvefittingmain wtd:test)
|
|
|
+ {
|
|
|
+ System.out.println(wtd.getDeviationrate1()+"----------------"+wtd.getDeviationrate2()+"----------------"+wtd.getDeviationrate3());
|
|
|
+ }
|
|
|
|
|
|
-// AjaxResult ajaxResult2 =leaderboardController.curvefittingmonthmainList(tablepar, "MHS_FDC", "2021", "1");
|
|
|
-//
|
|
|
-//
|
|
|
-// List<Curvefittingmonthmain> list=(List<Curvefittingmonthmain>)ajaxResult2.get("data");
|
|
|
-//
|
|
|
-// for(Curvefittingmonthmain wtd:list)
|
|
|
-// {
|
|
|
-// System.out.println(wtd.getDeviationrate1()+"----------------"+wtd.getDeviationrate2()+"----------------"+wtd.getDeviationrate3());
|
|
|
-// }
|
|
|
|
|
|
-// AjaxResult ajaxResult2 =leaderboardController.curveMonthchatAjax("sjzy", "MG01_01", "2021", "1");
|
|
|
-//
|
|
|
-//
|
|
|
-// List<Curvefittingmonthmain> list=(List<Curvefittingmonthmain>)ajaxResult2.get("data");
|
|
|
-//
|
|
|
-// for(Curvefittingmonthmain wtd:list)
|
|
|
-// {
|
|
|
-// System.out.println(wtd.getDeviationrate1()+"----------------"+wtd.getDeviationrate2()+"----------------"+wtd.getDeviationrate3());
|
|
|
-// }
|
|
|
+ AjaxResult ajaxResult2 =leaderboardController.getCurvechatAjax("sjbz","MG01_01","2021-01-01");
|
|
|
+
|
|
|
+
|
|
|
+ Map<String, Object> map=(Map<String, Object>)ajaxResult2.get("data");
|
|
|
+ List<DataVo> datavos =(List<DataVo>)map.get("datas");
|
|
|
+ for(DataVo wtd:datavos)
|
|
|
+ {
|
|
|
+ System.out.println(wtd.getValue1()+"----------------"+wtd.getValue2()+"----------------"+wtd.getValue3());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ AjaxResult ajaxResult3 =leaderboardController.curvefittingmonthmainList(tablepar, "MHS_FDC", "2021", "1");
|
|
|
+
|
|
|
+
|
|
|
+ List<Curvefittingmonthmain> list=(List<Curvefittingmonthmain>)ajaxResult3.get("data");
|
|
|
+
|
|
|
+ for(Curvefittingmonthmain wtd:list)
|
|
|
+ {
|
|
|
+ System.out.println(wtd.getDeviationrate1()+"----------------"+wtd.getDeviationrate2()+"----------------"+wtd.getDeviationrate3());
|
|
|
+ }
|
|
|
+
|
|
|
+ AjaxResult ajaxResult4 =leaderboardController.curveMonthchatAjax("sjzy", "MG01_01", "2021", "1");
|
|
|
+
|
|
|
+
|
|
|
+ List<Curvefittingmonthmain> list2=(List<Curvefittingmonthmain>)ajaxResult4.get("data");
|
|
|
+
|
|
|
+ for(Curvefittingmonthmain wtd:list2)
|
|
|
+ {
|
|
|
+ System.out.println(wtd.getDeviationrate1()+"----------------"+wtd.getDeviationrate2()+"----------------"+wtd.getDeviationrate3());
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|