package test;

import com.gyee.SpringbootStart;
import com.gyee.frame.common.spring.SpringUtils;
import com.gyee.frame.model.custom.DataVo;
import com.gyee.frame.service.ForecastwindspeedService;
import org.springframework.boot.SpringApplication;

import java.util.List;

public class ForecastwindspeedServiceTest {


    public static void main(String[] args) throws Exception {

        SpringApplication.run(SpringbootStart.class, args);

          String QS = "0";
          String FD = "-1";
          String GF = "-2";

        String wtId="MG01_03";
        String wpId="MHS_FDC";
        String year="2021";
        String month="1";

        ForecastwindspeedService forecastwindspeedService= SpringUtils.getBean("forecastwindspeedService");

//        Map<String, Object> map =genreSetPushController.findBasicDataInfo("0");
//        Map<String, Object> map =genreSetPushController.findDayInfo("0","rfdl");

//        Map<String, Object> map2 =genreSetPushController.findBasicDataInfo("MHS_FDC");
//        Map<String, Object> map = new HashMap<>();
//
//
//        map.put(QS, genreSetPushService.findBasicDataInfo(QS));
//        map.put(FD, genreSetPushService.findBasicDataInfo(FD));
//        map.put(GF, genreSetPushService.findBasicDataInfo(GF));


        List<DataVo> map1 = forecastwindspeedService.getForecastwindspeedInfo("0");
        List<DataVo> map2 = forecastwindspeedService.getForecastwindspeedInfo("MHS_FDC");
        List<DataVo> map3 = forecastwindspeedService.getForecastwindspeedInfo("MHS01_GC");
        List<DataVo> map4 = forecastwindspeedService.getForecastwindspeedInfo("MHS03_XL");
         System.out.println(map1.size());



//        AjaxResult ar = singleAnalysisController.singleanalysisSub(wtId,year,month);
//
//        Map<String,Object> map=( Map<String,Object>)ar.get("data");
//        for(SingleAnalysisVo wtd:vos)
//        {
//            System.out.println(wtd.getXfqr()+"----------------"+wtd.getXfqrhgl());
//        }
//
//        AjaxResult ar = singleAnalysisController.singleanalysisChart(wtId,year,month);
//
//        Map<String, List<SingleAnalysisVo>> map=( Map<String,List<SingleAnalysisVo>>)ar.get("data");
//        List<SingleAnalysisVo> vos=map.get("ff");
//        for(SingleAnalysisVo wtd:vos)
//        {
//            System.out.println(wtd.getFdl()+"----------------"+wtd.getFs());
//        }
//
//        System.out.println("---------------------------------------------------------------------------------");
//        vos=map.get("ws");
//        for(SingleAnalysisVo wtd:vos)
//        {
//            System.out.println(wtd.getGzss()+"----------------"+wtd.getJxss()+"----------------"+wtd.getXdss()
//                    +"----------------"+wtd.getXnss()+"----------------"+wtd.getSlss());
//        }
//        System.out.println("---------------------------------------------------------------------------------");
//        vos=map.get("jd");
//        for(SingleAnalysisVo wtd:vos)
//        {
//            System.out.println(wtd.getJfpl()+"----------------"+wtd.getTjxs());
//        }
//
//
//
    }
}
