package com.njcn.system.init;

import com.njcn.system.service.IEleEpdPqdService;
import com.njcn.system.service.SysDicTreePOService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;


/**
 * @author xy
 */
@Slf4j
@Component
@AllArgsConstructor
public class InitEpdPqd implements CommandLineRunner {

    private final IEleEpdPqdService epdPqdService;
    private final SysDicTreePOService sysDicTreePOService;

    @Override
    public void run(String... args) {
        epdPqdService.refreshEpdPqdDataCache();
        sysDicTreePOService.refreshDictTreeCache();
    }
}
