package test;

import com.gyee.SpringbootStart;
import com.gyee.frame.common.spring.SpringUtils;
import com.gyee.frame.controller.health.HealthMainController;
import com.gyee.frame.controller.health.HealthSubController;
import com.gyee.frame.controller.health.WindTurbineHealthListController;
import lombok.SneakyThrows;
import org.springframework.boot.SpringApplication;

import java.util.Calendar;
import java.util.Date;

public class HealthTest {

    @SneakyThrows
    public static void main(String[] args) {

        SpringApplication.run(SpringbootStart.class, args);


        Calendar c = Calendar.getInstance();

        c.set(Calendar.HOUR_OF_DAY, 0);
        c.set(Calendar.MINUTE, 0);
        c.set(Calendar.SECOND, 0);
        c.set(Calendar.MILLISECOND, 0);
        c.set(Calendar.DAY_OF_MONTH,24);
        c.set(Calendar.MONTH,2);
        c.set(Calendar.YEAR,2021);

        Date date = c.getTime();

        String wtid="MG01_07";
        HealthMainController healthMainController= SpringUtils.getBean("healthMainController");

        HealthSubController healthSubController= SpringUtils.getBean("healthSubController");

        WindTurbineHealthListController windTurbineHealthListController= SpringUtils.getBean("windTurbineHealthListController");
//        Map<String, Object> map =healthMainController.findAllMap();
////
////
//        System.out.println(map);
//
//        Map<String, Object> map1 =healthMainController.findWpMap("MHS_FDC");
//
////        Map<String, Object> map =healthMainController.findHealthMatrixMap();
////
//       System.out.println(map1);
//
//
//        Map<String, Object> map =healthMainController.findWpMap("MHS_FDC");
//
//
//        System.out.println(map);
//
//        Map<String, Object> map =healthMainController.findHealthMatrixMap();
//
//
//        System.out.println(map);
//
//
//       Map<String, Object> map =healthSubController.hsFjValueIndexByPart(wtid,"1");
//        Map<String, Object> map1 =healthSubController.hsFjValueIndexByPart(wtid,"2");
//        Map<String, Object> map2 =healthSubController.hsFjValueIndexByPart(wtid,"3");
//        Map<String, Object> map3 =healthSubController.hsFjValueIndexByPart(wtid,"4");
//        Map<String, Object> map4 =healthSubController.hsFjValueIndexByPart(wtid,"5");
////
////
//       System.out.println(map);



//        Map<String, Object> map1 =healthSubController.initalGzjfx(wtid);
//        Map<String, Object> map2 =healthSubController.initalYjfx(wtid);
//        Map<String, Object> map3 =healthSubController.initalYxfx(wtid);
//        Map<String, Object> map4 =healthSubController.initalXnfx(wtid);
//        Map<String, Object> map5 =healthSubController.initalShutdown(wtid);
//        Map<String, Object> map6 =healthSubController.findJudgmentList(wtid);
//        Map<String, Object> map7 =healthSubController.findQxpcList(wtid);
//        Map<String, Object> map8 =healthSubController.findWdList(wtid);
//
//        Map<String, Object> map1 =healthSubController.gadaytop5(wtid);
//        Map<String, Object> map2 =healthSubController.queryStopTop10(wtid);
//        System.out.println(map1.size());


//        Map<String, Object> map1 =healthSubController.findWtHealthInfo("NG01_79");
//        System.out.println(map1.size());


//        AjaxResult ajax=windTurbineHealthListController.windTurbineHealthList("MHS_FDC");
//        System.out.println(ajax.size());
        System.out.println("***************************************************************************************");


    }




}
