package test;

import com.gyee.SpringbootStart;
import com.gyee.frame.common.spring.SpringUtils;
import com.gyee.frame.service.WindPowerstationTestingPoint2Service;
import org.springframework.boot.SpringApplication;

import java.util.Map;

public class windPowerstationTestingPoint2ServiceTest {


    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";



        WindPowerstationTestingPoint2Service windPowerstationTestingPoint2Service= SpringUtils.getBean("windPowerstationTestingPoint2Service");
//        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));


        Map<String,Integer> map= windPowerstationTestingPoint2Service.getWpPointTotal();

//        List<YawValuesVo> vos2 = yawService.getYawValuesPowerTotal("MG01_01",beginDate,endDate,4);
//
//        List<YawVo> vos3 = yawService.getYawSpeedTotal("MG01_01",beginDate,endDate);
//
//        List<YawValuesVo> vos4 = yawService.getYawValuesSpeedTotal("MG01_01",beginDate,endDate,4);

         System.out.println(map.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());
//        }
//
//
//
    }
}
