feat:增加枚举

This commit is contained in:
nieziyan 2023-09-28 11:16:05 +08:00
parent 3386e05ee0
commit d9731c97e9
3 changed files with 46 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -22,7 +22,7 @@ public class Test implements Job {
@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
init();
Info info = new Info();
/*Info info = new Info();
info.setStationId("205");
info.setSampleId("425496");
info.setBetaOrGamma("Gamma");
@ -35,7 +35,7 @@ public class Test implements Job {
nuclides.put("sss","1000000");
nuclides.put("Tl208","10");
info.setNuclides(nuclides);
redisStreamUtil.pushAnalysis(info);
redisStreamUtil.pushAnalysis(info);*/
}
private void init(){