package test;

import com.gyee.SpringbootStart;
import com.gyee.frame.common.spring.SpringUtils;
import com.gyee.frame.service.weather.WeatherDay5Service;
import com.gyee.frame.service.weather.WeatherService;
import lombok.SneakyThrows;
import org.springframework.boot.SpringApplication;

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

public class WeatherServiceTest {

    @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_01";
        WeatherService weatherService= SpringUtils.getBean("weatherService");

        WeatherDay5Service weatherDay5Service= SpringUtils.getBean("weatherDay5Service");
        Map<String, Object> map1=weatherDay5Service.getWeatherRealDay5Info("0");
//        Map<String, Object> map1= weatherService.getWeatherRealInfo("0");
//        Map<String, Object> map2= weatherService.getWeatherRealInfo("-1");
//        Map<String, Object> map3= weatherService.getWeatherRealInfo("-2");
//        Map<String, Object> map4= weatherService.getWeatherRealInfo("MHS_FDC");
//        Map<String, Object> map5= weatherService.getWeatherRealInfo("MHS02_GC");
//        Map<String, Object> map6= weatherService.getWeatherRealInfo("MHS04_XL");
        System.out.println(map1);
//
//        Map<String, Object> map =healthMainController.findWpMap("MHS_FDC");

//        Map<String, Object> map =healthMainController.findHealthMatrixMap();
//
//        System.out.println(map);
//
//
//        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.findPartHealthInfo(wtid);
//
//
//        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.hsFjValueIndex(wtid);
//        System.out.println(map1.size());
        System.out.println("***************************************************************************************");


    }




}
