diff --git a/jeecg-boot-base-core/src/main/resources/excelTemplate/SaveExcel.xls b/jeecg-boot-base-core/src/main/resources/excelTemplate/SaveExcel.xls
index 17c625ee..22c3e556 100644
Binary files a/jeecg-boot-base-core/src/main/resources/excelTemplate/SaveExcel.xls and b/jeecg-boot-base-core/src/main/resources/excelTemplate/SaveExcel.xls differ
diff --git a/jeecg-boot-base-core/src/main/resources/excelTemplate/SaveHtml.html b/jeecg-boot-base-core/src/main/resources/excelTemplate/SaveHtml.html
index 42d06c65..f0047357 100644
--- a/jeecg-boot-base-core/src/main/resources/excelTemplate/SaveHtml.html
+++ b/jeecg-boot-base-core/src/main/resources/excelTemplate/SaveHtml.html
@@ -117,12 +117,12 @@
New Gamma |
- CH(x) = (?1)+(?2)*x+(?3)x*x |
- CH(x) = (?1)+(?2)*x+(?3)x*x |
+ CH(x) = ([[${betaCalibrationSEC.coeff1}]])+([[${betaCalibrationSEC.coeff2}]])*x+([[${betaCalibrationSEC.coeff3}]])x*x |
+ CH(x) = ([[${gammaCalibrationSEC.coeff1}]])+([[${gammaCalibrationSEC.coeff2}]])*x+([[${gammaCalibrationSEC.coeff3}]])x*x |
- E(x) = (-3.33443)+(0.398048)*x+(-0.000124)x*x |
- E(x) = (0.879727)+(0.365551)*x+(-2.8e-05)x*x |
+ E(x) = ([[${betaCalibrationSCE.coeff1}]])+([[${betaCalibrationSCE.coeff2}]])*x+([[${betaCalibrationSCE.coeff3}]])x*x |
+ E(x) = ([[${gammaCalibrationSCE.coeff1}]])+([[${gammaCalibrationSCE.coeff2}]])*x+([[${gammaCalibrationSCE.coeff3}]])x*x |
  |
@@ -169,12 +169,12 @@
New Gamma |
- CH(x) = (?1)+(?2)*x+(?3)x*x |
- CH(x) = (?1)+(?2)*x+(?3)x*x |
+ CH(x) = ([[${betaCalibrationDEC.coeff1}]])+([[${betaCalibrationDEC.coeff2}]])*x+([[${betaCalibrationDEC.coeff3}]])x*x |
+ CH(x) = ([[${gammaCalibrationDEC.coeff1}]])+([[${gammaCalibrationDEC.coeff2}]])*x+([[${gammaCalibrationDEC.coeff3}]])x*x |
- E(x) = (0.879727)+(0.365551)*x+(-2.8e-05)x*x |
- E(x) = (0.879727)+(0.365551)*x+(-2.8e-05)x*x |
+ E(x) = ([[${betaCalibrationDCE.coeff1}]])+([[${betaCalibrationDCE.coeff2}]])*x+([[${betaCalibrationDCE.coeff3}]])x*x |
+ E(x) = ([[${gammaCalibrationDCE.coeff1}]])+([[${gammaCalibrationDCE.coeff2}]])*x+([[${gammaCalibrationDCE.coeff3}]])x*x |
  |
@@ -222,12 +222,12 @@
New Gamma |
- CH(x) = (?1)+(?2)*x+(?3)x*x |
- CH(x) = (?1)+(?2)*x+(?3)x*x |
+ CH(x) = ([[${betaCalibrationGEC.coeff1}]])+([[${betaCalibrationGEC.coeff2}]])*x+([[${betaCalibrationGEC.coeff3}]])x*x |
+ CH(x) = ([[${gammaCalibrationGEC.coeff1}]])+([[${gammaCalibrationGEC.coeff2}]])*x+([[${gammaCalibrationGEC.coeff3}]])x*x |
- E(x) = (-3.33443)+(0.398048)*x+(-0.000124)x*x |
- E(x) = (0.879727)+(0.365551)*x+(-2.8e-05)x*x |
+ E(x) = ([[${betaCalibrationGCE.coeff1}]])+([[${betaCalibrationGCE.coeff2}]])*x+([[${betaCalibrationGCE.coeff3}]])x*x |
+ E(x) = ([[${gammaCalibrationGCE.coeff1}]])+([[${gammaCalibrationGCE.coeff2}]])*x+([[${gammaCalibrationGCE.coeff3}]])x*x |
  |
diff --git a/jeecg-boot-base-core/src/main/resources/excelTemplate/SaveTxt.txt b/jeecg-boot-base-core/src/main/resources/excelTemplate/SaveTxt.txt
index 160cbc39..775aa787 100644
--- a/jeecg-boot-base-core/src/main/resources/excelTemplate/SaveTxt.txt
+++ b/jeecg-boot-base-core/src/main/resources/excelTemplate/SaveTxt.txt
@@ -33,8 +33,7 @@
#SAMPLE New CALIBRATION
New Beta New Gamma
- CH(x) = (?1)+(?2)*x+(?3)x*x CH(x) = (?1)+(?2)*x+(?3)x*x
- E(x) = (-3.33443)+(0.398048)*x+(-0.000124)x*x E(x) = (0.879727)+(0.365551)*x+(-2.8e-05)x*x
+${sampleNewCalibration}
#SAMPLE: LIMITS PER ROI
Roi Beta Gamma
@@ -47,8 +46,7 @@ ${sampleRoi}
#DET New CALIBRATION
New Beta New Gamma
- CH(x) = (?1)+(?2)*x+(?3)x*x CH(x) = (?1)+(?2)*x+(?3)x*x
- E(x) = (0.879727)+(0.365551)*x+(-2.8e-05)x*x E(x) = (0.879727)+(0.365551)*x+(-2.8e-05)x*x
+${detNewCalibration}
#DET: LIMITS PER ROI
Roi Beta Gamma
@@ -61,8 +59,7 @@ ${detRoi}
#GAS New CALIBRATION
New Beta New Gamma
- CH(x) = (?1)+(?2)*x+(?3)x*x CH(x) = (?1)+(?2)*x+(?3)x*x
- E(x) = (-3.33443)+(0.398048)*x+(-0.000124)x*x E(x) = (0.879727)+(0.365551)*x+(-2.8e-05)x*x
+${gasNewCalibration}
#GAS: LIMITS PER ROI
Roi Beta Gamma
diff --git a/jeecg-module-auto-process/src/main/java/org/jeecg/common/GammaFileUtil.java b/jeecg-module-auto-process/src/main/java/org/jeecg/common/GammaFileUtil.java
index d822691d..ee83e1ee 100644
--- a/jeecg-module-auto-process/src/main/java/org/jeecg/common/GammaFileUtil.java
+++ b/jeecg-module-auto-process/src/main/java/org/jeecg/common/GammaFileUtil.java
@@ -2710,10 +2710,11 @@ public class GammaFileUtil {
}
public List DoubleLimit(List data){
+ List rData = new LinkedList<>();
for(int pos=0;pos DoubleLimit_G(List _data) {
diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/common/util/GammaFileUtil.java b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/common/util/GammaFileUtil.java
index ffd95e03..5caf617a 100644
--- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/common/util/GammaFileUtil.java
+++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/common/util/GammaFileUtil.java
@@ -76,15 +76,8 @@ public class GammaFileUtil {
ftpClient.setControlEncoding("UTF-8");
ftpClient.setFileTransferMode(FTPClient.STREAM_TRANSFER_MODE);
ftpClient.changeWorkingDirectory(pathName);
- List ftpFiles = Arrays.asList(ftpClient.listFiles());
- ftpFiles = ftpFiles.stream().filter(item -> item.getName().equals(fileName)).collect(Collectors.toList());
- if (ftpFiles.size() == 0) {
- result.error500("ftp获取文件数据失败");
- return false;
- }
- FTPFile ftpFile = ftpFiles.get(0);
- if (Objects.nonNull(ftpFile)) {
- inputStream = ftpClient.retrieveFileStream(ftpFile.getName());
+ inputStream = ftpClient.retrieveFileStream(fileName);
+ if (Objects.nonNull(inputStream)) {
//声明一个临时文件
File file = File.createTempFile("tmp", null);
//将ftp文件的输入流复制给临时文件
@@ -270,7 +263,7 @@ public class GammaFileUtil {
return true;
}
- public void SetBaseInfo(PHDFile phd){
+ public void SetBaseInfo(PHDFile phd) {
String pathName = phd.getFilepath();
String fileName = phd.getFilename();
//文件名称需要加上自动处理的前缀以及修改不同的文件后缀名
@@ -281,6 +274,7 @@ public class GammaFileUtil {
if (Objects.isNull(ftpClient)){
String warning = "ftp连接失败";
}
+ InputStream inputStream = null;
try {
//切换被动模式
ftpClient.enterLocalPassiveMode();
@@ -289,27 +283,27 @@ public class GammaFileUtil {
ftpClient.setControlEncoding("UTF-8");
ftpClient.setFileTransferMode(FTPClient.STREAM_TRANSFER_MODE);
ftpClient.changeWorkingDirectory(pathName);
- List ftpFiles = Arrays.asList(ftpClient.listFiles());
String lcFileName = "RNAUTO_"+subFileName + ".lc";
- List lcFiles = ftpFiles.stream().filter(item -> item.getName().equals(lcFileName)).collect(Collectors.toList());
- if (CollectionUtils.isNotEmpty(lcFiles)){
- FTPFile lcFile = lcFiles.get(0);
- if (Objects.nonNull(lcFile)){
- InputStream inputStream = ftpClient.retrieveFileStream(lcFile.getName());
- //声明一个临时文件
- File file = File.createTempFile("tmp", null);
- //将ftp文件的输入流复制给临时文件
- FileUtils.copyInputStreamToFile(inputStream, file);
- List readLines = FileUtils.readLines(file, "UTF-8");
- List vData = ReadLcScacInfo(readLines);
- phd.setVLc(vData);
- }
+ inputStream = ftpClient.retrieveFileStream(lcFileName);
+ if (Objects.nonNull(inputStream)){
+ //声明一个临时文件
+ File file = File.createTempFile("tmp", null);
+ //将ftp文件的输入流复制给临时文件
+ FileUtils.copyInputStreamToFile(inputStream, file);
+ List readLines = FileUtils.readLines(file, "UTF-8");
+ List vData = ReadLcScacInfo(readLines);
+ phd.setVLc(vData);
}
} catch (IOException e) {
throw new RuntimeException(e);
} finally {
try {
- ftpClient.disconnect();
+ if (Objects.nonNull(ftpClient)) {
+ ftpClient.disconnect();
+ }
+ if (Objects.nonNull(inputStream)) {
+ inputStream.close();
+ }
} catch (IOException e) {
throw new RuntimeException(e);
}
@@ -321,6 +315,7 @@ public class GammaFileUtil {
if (Objects.isNull(ftpClient)){
String warning = "ftp连接失败";
}
+ InputStream inputStream = null;
try {
//切换被动模式
ftpClient.enterLocalPassiveMode();
@@ -329,27 +324,27 @@ public class GammaFileUtil {
ftpClient.setControlEncoding("UTF-8");
ftpClient.setFileTransferMode(FTPClient.STREAM_TRANSFER_MODE);
ftpClient.changeWorkingDirectory(pathName);
- List ftpFiles = Arrays.asList(ftpClient.listFiles());
String scacFileName = "RNAUTO_"+subFileName + ".scac";
- List scacFiles = ftpFiles.stream().filter(item -> item.getName().equals(scacFileName)).collect(Collectors.toList());
- if (CollectionUtils.isNotEmpty(scacFiles)){
- FTPFile scacFile = scacFiles.get(0);
- if (Objects.nonNull(scacFile)){
- InputStream inputStream = ftpClient.retrieveFileStream(scacFile.getName());
- //声明一个临时文件
- File file = File.createTempFile("tmp", null);
- //将ftp文件的输入流复制给临时文件
- FileUtils.copyInputStreamToFile(inputStream, file);
- List readLines = FileUtils.readLines(file, "UTF-8");
- List vData = ReadLcScacInfo(readLines);
- phd.setVScac(vData);
- }
+ inputStream = ftpClient.retrieveFileStream(scacFileName);
+ if (Objects.nonNull(inputStream)){
+ //声明一个临时文件
+ File file = File.createTempFile("tmp", null);
+ //将ftp文件的输入流复制给临时文件
+ FileUtils.copyInputStreamToFile(inputStream, file);
+ List readLines = FileUtils.readLines(file, "UTF-8");
+ List vData = ReadLcScacInfo(readLines);
+ phd.setVScac(vData);
}
} catch (IOException e) {
throw new RuntimeException(e);
} finally {
try {
- ftpClient.disconnect();
+ if (Objects.nonNull(ftpClient)) {
+ ftpClient.disconnect();
+ }
+ if (Objects.nonNull(inputStream)) {
+ inputStream.close();
+ }
} catch (IOException e) {
throw new RuntimeException(e);
}
@@ -361,6 +356,7 @@ public class GammaFileUtil {
if (Objects.isNull(ftpClient)){
String warning = "ftp连接失败";
}
+ InputStream inputStream = null;
try {
//切换被动模式
ftpClient.enterLocalPassiveMode();
@@ -369,27 +365,27 @@ public class GammaFileUtil {
ftpClient.setControlEncoding("UTF-8");
ftpClient.setFileTransferMode(FTPClient.STREAM_TRANSFER_MODE);
ftpClient.changeWorkingDirectory(pathName);
- List ftpFiles = Arrays.asList(ftpClient.listFiles());
String baselineFileName = "RNAUTO_"+subFileName + ".baseline";
- List baselineFiles = ftpFiles.stream().filter(item -> item.getName().equals(baselineFileName)).collect(Collectors.toList());
- if (CollectionUtils.isNotEmpty(baselineFiles)){
- FTPFile baselineFile = baselineFiles.get(0);
- if (Objects.nonNull(baselineFile)){
- InputStream inputStream = ftpClient.retrieveFileStream(baselineFile.getName());
- //声明一个临时文件
- File file = File.createTempFile("tmp", null);
- //将ftp文件的输入流复制给临时文件
- FileUtils.copyInputStreamToFile(inputStream, file);
- List readLines = FileUtils.readLines(file, "UTF-8");
- ReadBaseCtrlInfo(phd,readLines);
- phd.setVBase(phd.getBaseCtrls().getBaseline());
- }
+ inputStream = ftpClient.retrieveFileStream(baselineFileName);
+ if (Objects.nonNull(inputStream)){
+ //声明一个临时文件
+ File file = File.createTempFile("tmp", null);
+ //将ftp文件的输入流复制给临时文件
+ FileUtils.copyInputStreamToFile(inputStream, file);
+ List readLines = FileUtils.readLines(file, "UTF-8");
+ ReadBaseCtrlInfo(phd,readLines);
+ phd.setVBase(phd.getBaseCtrls().getBaseline());
}
} catch (IOException e) {
throw new RuntimeException(e);
} finally {
try {
- ftpClient.disconnect();
+ if (Objects.nonNull(ftpClient)) {
+ ftpClient.disconnect();
+ }
+ if (Objects.nonNull(inputStream)) {
+ inputStream.close();
+ }
} catch (IOException e) {
throw new RuntimeException(e);
}
@@ -397,7 +393,7 @@ public class GammaFileUtil {
}
}
- public List ReadLcScacInfo(List readLines){
+ public List ReadLcScacInfo(List readLines) {
List vData = new LinkedList<>();
for (int i=0; i< readLines.size(); i++){
String line = readLines.get(i);
@@ -432,7 +428,7 @@ public class GammaFileUtil {
return vData;
}
- public void ReadBaseCtrlInfo(PHDFile phd, List readLines){
+ public void ReadBaseCtrlInfo(PHDFile phd, List readLines) {
for (int i=0; i< readLines.size(); i++){
String line = readLines.get(i);
if (line.contains("#")){
@@ -486,7 +482,7 @@ public class GammaFileUtil {
}
}
- public boolean getResultFromDB(String dbName, Integer sampleId, PHDFile phd, Result result){
+ public boolean getResultFromDB(String dbName, String userName, Integer sampleId, PHDFile phd, Result result) {
//判断连接的数据库
String T_analy, T_calib, T_peaks, T_param, T_nuc_line, T_nuc_act, T_qc, T_setting;
if (dbName.equals("auto")){
@@ -497,6 +493,7 @@ public class GammaFileUtil {
T_nuc_line = "RNAUTO.GARDS_NUCL_LINES_IDED";
T_nuc_act = "RNAUTO.GARDS_NUCL_IDED";
T_qc = "RNAUTO.GARDS_QC_CHECK";
+ userName = "RNAUTO";
}else {
T_analy = "RNMAN.GARDS_ANALYSES";
T_calib = "RNMAN.GARDS_CALIBRATION_PAIRS";
@@ -519,7 +516,7 @@ public class GammaFileUtil {
}
// 获取 ananlysis_id、BaseLine、Lc、Scac、峰数量、Category、谱注释等信息
- GardsAnalysesSpectrum analysis = spectrumAnalysisMapper.getAnalysis(T_analy, sampleId);
+ GardsAnalysesSpectrum analysis = spectrumAnalysisMapper.getAnalysis(T_analy, sampleId, userName);
int peakNum = 0;
if (Objects.nonNull(analysis)){
phd.setId_analysis(analysis.getIdAnalysis().toString());
@@ -780,7 +777,7 @@ public class GammaFileUtil {
return true;
}
- public List Qcstate(PHDFile phd){
+ public List Qcstate(PHDFile phd) {
// Collection Time、 Acq Time、 Decay Time、 SampVol、 Be7-FWHM、 Ba140-MDC、 Xe133-MDC
List qcState = new LinkedList<>();
for (int i=0;i<7; i++){
@@ -809,7 +806,7 @@ public class GammaFileUtil {
return qcState;
}
- public void RunQC(PHDFile phd){
+ public void RunQC(PHDFile phd) {
System.loadLibrary("GammaAnaly");
try {
Date start = DateUtils.parseDate(phd.getCollect().getCollection_start_date() + StringPool.SPACE + phd.getCollect().getCollection_start_time());
@@ -911,7 +908,7 @@ public class GammaFileUtil {
}
}
- public Double CalculateMDC(PHDFile phd, List vMdcInfo, Double CCF){
+ public Double CalculateMDC(PHDFile phd, List vMdcInfo, Double CCF) {
try {
System.loadLibrary("GammaAnaly");
if(vMdcInfo.size() < 3 || vMdcInfo.get(2) == 0) {
@@ -988,7 +985,7 @@ public class GammaFileUtil {
}
}
- public boolean ReadQCLimit(Map qcItems, Map vMdcInfoMap, Double ener_Be7, String systemType){
+ public boolean ReadQCLimit(Map qcItems, Map vMdcInfoMap, Double ener_Be7, String systemType) {
try {
String filePath = parameterFilePath+ File.separator +"SystemManager.xml";
//创建一个文档解析器工厂
@@ -1175,7 +1172,7 @@ public class GammaFileUtil {
}
}
- public void UpdateChart(PHDFile phd, Map map, Map colorMap){
+ public void UpdateChart(PHDFile phd, Map map, Map colorMap) {
List m_vCount = new LinkedList<>();
long m_nCount = phd.getSpec().getNum_g_channel();
long m_nSChan = phd.getSpec().getBegin_channel();
@@ -1203,7 +1200,7 @@ public class GammaFileUtil {
map.put("shapeChannelData", shapeChannelData);
}
- public ChartData Energy_Count(PHDFile phd, List m_vCount, long m_nCount, String color){
+ public ChartData Energy_Count(PHDFile phd, List m_vCount, long m_nCount, String color) {
int start = 0;
long end = -1;
//Energy
@@ -1228,7 +1225,7 @@ public class GammaFileUtil {
return data1;
}
- public ChartData Channel_Count(List m_vCount, long m_nCount, String color){
+ public ChartData Channel_Count(List m_vCount, long m_nCount, String color) {
int start = 1;
long end = -1;
ChartData data1 = new ChartData();
@@ -1252,7 +1249,7 @@ public class GammaFileUtil {
return data1;
}
- public List Lc_Scac_base(boolean showLc, PHDFile phd, long m_nCount, Map colorMap){
+ public List Lc_Scac_base(boolean showLc, PHDFile phd, long m_nCount, Map colorMap) {
List datalist = new LinkedList<>();
int start = 0;
long end = -1;
@@ -1342,15 +1339,15 @@ public class GammaFileUtil {
return datalist;
}
- public List Channel_Peak(PHDFile phd, long m_nCount, String color){
+ public List Channel_Peak(PHDFile phd, long m_nCount, String color) {
return PeakSet(phd.getVPeak(), phd.getVBase(), color, m_nCount, null, false);
}
- public List Energy_Peak(PHDFile phd, long m_nCount, String color){
+ public List Energy_Peak(PHDFile phd, long m_nCount, String color) {
return PeakSet(phd.getVPeak(), phd.getVBase(), color, m_nCount, phd.getUsedEnerPara().getP(), true);
}
- public List PeakSet(List vPeak, List vBase, String color, long m_nCount, List p, boolean bEnergy){
+ public List PeakSet(List vPeak, List vBase, String color, long m_nCount, List p, boolean bEnergy) {
System.loadLibrary("GammaAnaly");
List datalist = new LinkedList<>();
int peakNum = vPeak.size();
@@ -1428,7 +1425,7 @@ public class GammaFileUtil {
return datalist;
}
- public List Energy_BaseCP(PHDFile phd){
+ public List Energy_BaseCP(PHDFile phd) {
System.loadLibrary("GammaAnaly");
List shapes = new LinkedList<>();
CalValuesOut calValuesOut = CalValuesHandler.calFcnEval(phd.getBaseCtrls().getXCtrl(), phd.getUsedEnerPara().getP());
@@ -1447,7 +1444,7 @@ public class GammaFileUtil {
return shapes;
}
- public List Channel_BaseCP(PHDFile phd){
+ public List Channel_BaseCP(PHDFile phd) {
List shapes = new LinkedList<>();
int num = phd.getBaseCtrls().getXCtrl().size();
if(num == phd.getBaseCtrls().getYCtrl().size()) {
@@ -1464,7 +1461,7 @@ public class GammaFileUtil {
return shapes;
}
- public List AllData(boolean showLc, PHDFile phd, List m_vCount, long m_nCount, Map colorMap){
+ public List AllData(boolean showLc, PHDFile phd, List m_vCount, long m_nCount, Map colorMap) {
List datalist = new LinkedList<>();
datalist.add(Channel_Count(m_vCount, m_nCount, colorMap.get("Color_Spec")));
datalist.add(Energy_Count(phd, m_vCount, m_nCount, colorMap.get("Color_Spec")));
@@ -1474,7 +1471,7 @@ public class GammaFileUtil {
return datalist;
}
- public boolean AnalyseData(PHDFile phd, ConfigureData configureData, List nuclides, boolean bSingle){
+ public boolean AnalyseData(PHDFile phd, ConfigureData configureData, List nuclides, boolean bSingle) {
//调用方法判断是否修改了参数
if (Objects.nonNull(configureData)){
SpecSetup phdSetting = phd.getSetting();
@@ -1583,7 +1580,7 @@ public class GammaFileUtil {
}
}
- public void NuclidesIdent(PHDFile phd, Map map){
+ public void NuclidesIdent(PHDFile phd, Map map) {
// 当重新分析时先清除上一次的分析结果
phd.getMapNucActMda().clear();
for(int i=0; i Differance(PHDFile phd, List vecPeak, List m_vCount, long m_nCount){
+ public List Differance(PHDFile phd, List vecPeak, List m_vCount, long m_nCount) {
System.loadLibrary("GammaAnaly");
List pointlist = new LinkedList<>();
int start =0;
@@ -1981,7 +1978,7 @@ public class GammaFileUtil {
return pointlist;
}
- public void ReadData(List m_vEnergy, List m_vNuclide){
+ public void ReadData(List m_vEnergy, List m_vNuclide) {
try {
String filePath = parameterFilePath+File.separator+"Energy_Nuclide.txt";
File file = new File(filePath);
@@ -2389,7 +2386,7 @@ public class GammaFileUtil {
}
}
- public boolean GetInterMiddlData(PHDFile phd, String userName, GStoreMiddleProcessData middleData){
+ public boolean GetInterMiddlData(PHDFile phd, String userName, GStoreMiddleProcessData middleData) {
boolean bRet = true;
Map temp = new HashMap<>();
try {
@@ -2401,7 +2398,7 @@ public class GammaFileUtil {
return bRet;
}
- public String GetLogContent(GStoreMiddleProcessData middleData){
+ public String GetLogContent(GStoreMiddleProcessData middleData) {
StringBuffer strBuffer = new StringBuffer();
strBuffer.append("-------------------------- Sample Analyse Beginning at "+DateUtils.formatDate(new Date(), "yyyy-MM-dd HH:mm:ss")+" ---------------------------\n");
strBuffer.append("\n");
@@ -2572,7 +2569,7 @@ public class GammaFileUtil {
return strBuffer.toString();
}
- public String GetReportContent(GStoreMiddleProcessData middleData){
+ public String GetReportContent(GStoreMiddleProcessData middleData) {
StringBuffer strBuffer = new StringBuffer();
strBuffer.append("CNL06 GENERATED REPORT\n");
strBuffer.append(middleData.analyses_type+" RADIONUCLIDE REPORT\n");
@@ -2714,11 +2711,12 @@ public class GammaFileUtil {
return strBuffer.toString();
}
- public List DoubleLimit(List data){
+ public List DoubleLimit(List data) {
+ List rData = new LinkedList<>();
for(int pos=0;pos DoubleLimit_I(List _data) {
@@ -2887,13 +2885,13 @@ public class GammaFileUtil {
for(int pos=0;pos dvctIDPEAK = new LinkedList<>();
+ List dvctIDPEAK = new LinkedList<>();
List dvctCENTROIDCHANNEL = new LinkedList<>();
List dvctUNCCENTROIDCHANNEL = new LinkedList<>();
List dvctENERGY = new LinkedList<>();
@@ -3144,7 +3142,7 @@ public class GammaFileUtil {
List dvctNuclide_name = new LinkedList<>();
List dvctComments = new LinkedList<>();
for(int m=0; m itor:fileAnlyse.getMapNucActMda().entrySet()) {
List svctNUCLIDEFULLNAME = new LinkedList<>();
- List dvctIDPEAK = new LinkedList<>();
+ List dvctIDPEAK = new LinkedList<>();
List dvctENERGY = new LinkedList<>();
List dvctUNCENERGY = new LinkedList<>();
List dvctABUNDANCE = new LinkedList<>();
@@ -3242,7 +3240,7 @@ public class GammaFileUtil {
first = first InitList(double energy, double tolerance, List nuclides){
+ public List InitList(double energy, double tolerance, List nuclides) {
if(nuclides.size() < 1){
return new LinkedList<>();
}
@@ -3644,7 +3642,7 @@ public class GammaFileUtil {
return nuclideList;
}
- public void InitTable(String name, Map map, PHDFile phd, Map colorMap){
+ public void InitTable(String name, Map map, PHDFile phd, Map colorMap) {
InitNuclideInfo(name, map);
long span = phd.getSpec().getG_energy_span();
List nuclideTableList = spectrumAnalysisMapper.getNuclideTable(name, span);
@@ -3654,7 +3652,7 @@ public class GammaFileUtil {
}
}
- public void InitNuclideInfo(String name, Map map){
+ public void InitNuclideInfo(String name, Map map) {
map.put("name", name);
GardsNuclLib nuclideInfo = spectrumAnalysisMapper.getNuclideInfo(name);
@@ -3686,7 +3684,7 @@ public class GammaFileUtil {
}
}
- public void InitChart(List nuclideTableList, PHDFile phd, Map map, Map colorMap){
+ public void InitChart(List nuclideTableList, PHDFile phd, Map map, Map colorMap) {
List