package cn.wise.sc.energy.power.plant.business;

import cn.wise.sc.energy.power.plant.business.jni.WaveAnalysis;
import cn.wise.sc.energy.power.plant.business.security.SecurityConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling
@SpringBootApplication
@ImportAutoConfiguration(SecurityConfig.class)
public class PowerPlantApplication {
    public static void main(String[] args) {
        SpringApplication.run(PowerPlantApplication.class, args);
        String str = "{\"Record\":{\"Data\":{\"Data\":[{\"Data\":[14.5446,19.6776,33.1913,35.8237,30.389],\"KKSCode\":\"c0a00101mka12cy616r\",\"KeyPhaseOffset\":[],\"Period\":1}],\"Direction\":0,\"GenerationFreq\":50,\"KeyPhaseTyped\":1,\"PoleNum\":2,\"RecordFlag\":1}},\"StartTime\":1597126940000,\"TimeSpan\":1280}";
        System.out.println("===========调用开始================");
        System.out.println("参数从信息:===");
        System.out.println(str);
        //String s = WaveAnalysis.INSTANCE.WaveAnalysisModel(str);
        System.out.println("===========================");
        //System.out.println("结果:" + s);
    }
}
