package com.youchain.utils;

import com.youchain.modules.quartz.service.QuartzJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 加载配置信息
 **/
@Component
public class BaseCode {
    public static String PICK_YH_QR="0";
    /** PLC IP*/
    public static String PLC_IP = "10.173.133.31";
    /** PLC 端口号*/
    public static int PLC_PORT = 102;
    public static String MLS_IP = "";
    /** sap 获取token账号*/
    public static String MLS_UN="";
    /** sap 获取token账号*/
    public static String MLS_PW="";
    @Autowired
    private QuartzJobService quartzJobService;
    public BaseCode() {
        System.out.println("加载配置文件");
    }
    @PostConstruct
    public void getConfigBaseCode(){
        quartzJobService.execution(quartzJobService.findById(1l));
    }
}
