feat:添加IDC数据源控制访问
This commit is contained in:
parent
86968e383b
commit
cf0751109d
|
@ -1,5 +1,6 @@
|
||||||
package org.jeecg;
|
package org.jeecg;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.jeecg.common.cache.BetaCache;
|
import org.jeecg.common.cache.BetaCache;
|
||||||
import org.jeecg.common.cache.LocalCache;
|
import org.jeecg.common.cache.LocalCache;
|
||||||
|
@ -9,6 +10,7 @@ import org.jeecg.modules.service.IDataService;
|
||||||
import org.jeecg.modules.service.IGammaService;
|
import org.jeecg.modules.service.IGammaService;
|
||||||
import org.jeecg.modules.service.IGardsNuclCoincidenceSumSpectrumService;
|
import org.jeecg.modules.service.IGardsNuclCoincidenceSumSpectrumService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.boot.CommandLineRunner;
|
import org.springframework.boot.CommandLineRunner;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
@ -40,6 +42,9 @@ public class JeecgSpectrumAnalysisApplication extends SpringBootServletInitializ
|
||||||
@Autowired
|
@Autowired
|
||||||
private IDataService dataService;
|
private IDataService dataService;
|
||||||
|
|
||||||
|
@Value("${isOpen}")
|
||||||
|
private Boolean isOpen;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
||||||
|
@ -78,6 +83,7 @@ public class JeecgSpectrumAnalysisApplication extends SpringBootServletInitializ
|
||||||
gammaService.readMDCParameter();
|
gammaService.readMDCParameter();
|
||||||
nuclLibService.getNuclideMap();
|
nuclLibService.getNuclideMap();
|
||||||
nuclCoincidenceSumSpectrumService.getNuclCoincidenceMap();
|
nuclCoincidenceSumSpectrumService.getNuclCoincidenceMap();
|
||||||
|
if (ObjectUtil.isNotNull(isOpen) && isOpen)
|
||||||
dataService.viewStations();
|
dataService.viewStations();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user