feat:增加枚举
This commit is contained in:
parent
3386e05ee0
commit
d9731c97e9
|
@ -0,0 +1,27 @@
|
||||||
|
package org.jeecg.modules.base.enums;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author nieziyan
|
||||||
|
* 数据源类型
|
||||||
|
*/
|
||||||
|
public enum DSType {
|
||||||
|
/* ARMD自动处理库 */
|
||||||
|
ARMDARR("1"),
|
||||||
|
/* ARMD人工交互库 */
|
||||||
|
ARMDRRR("2"),
|
||||||
|
/* IDC自动处理库 */
|
||||||
|
IDCARR("3"),
|
||||||
|
/* IDC人工交互库 */
|
||||||
|
IDCRRR("4");
|
||||||
|
|
||||||
|
DSType(java.lang.String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
package org.jeecg.modules.base.enums;
|
||||||
|
/*
|
||||||
|
* 谱类型
|
||||||
|
* */
|
||||||
|
public enum SpectrumType {
|
||||||
|
BETA("Beta"), GAMMA("Gamma");
|
||||||
|
|
||||||
|
SpectrumType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
|
@ -22,7 +22,7 @@ public class Test implements Job {
|
||||||
@Override
|
@Override
|
||||||
public void execute(JobExecutionContext context) throws JobExecutionException {
|
public void execute(JobExecutionContext context) throws JobExecutionException {
|
||||||
init();
|
init();
|
||||||
Info info = new Info();
|
/*Info info = new Info();
|
||||||
info.setStationId("205");
|
info.setStationId("205");
|
||||||
info.setSampleId("425496");
|
info.setSampleId("425496");
|
||||||
info.setBetaOrGamma("Gamma");
|
info.setBetaOrGamma("Gamma");
|
||||||
|
@ -35,7 +35,7 @@ public class Test implements Job {
|
||||||
nuclides.put("sss","1000000");
|
nuclides.put("sss","1000000");
|
||||||
nuclides.put("Tl208","10");
|
nuclides.put("Tl208","10");
|
||||||
info.setNuclides(nuclides);
|
info.setNuclides(nuclides);
|
||||||
redisStreamUtil.pushAnalysis(info);
|
redisStreamUtil.pushAnalysis(info);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private void init(){
|
private void init(){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user