| | |
| | | package cc.mrbird.febs.server.hr.runner; |
| | | |
| | | import cc.mrbird.febs.common.core.utils.FebsUtil; |
| | | import cc.mrbird.febs.server.hr.properties.FebsServerHrProperties; |
| | | import cn.hutool.core.io.FileUtil; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.boot.ApplicationArguments; |
| | | import org.springframework.boot.ApplicationRunner; |
| | |
| | | |
| | | private final ConfigurableApplicationContext context; |
| | | private final Environment environment; |
| | | |
| | | private final FebsServerHrProperties properties; |
| | | @Override |
| | | public void run(ApplicationArguments args) { |
| | | if (context.isActive()) { |
| | | FebsUtil.printSystemUpBanner(environment); |
| | | } |
| | | if (! FileUtil.exist( properties.getEmpBaseInfoPath())){ |
| | | FileUtil.mkdir( properties.getEmpBaseInfoPath()); |
| | | } |
| | | } |
| | | } |