gamma向数据库存储人工交互分析结果时24小时制问题修改
自动处理console文件标识增加 自动处理程序beta部分det,gas文件路径多\导致无法加载问题修改 beta,gamma存储数据库时台站没有权限时,提示哪个台站没有对应权限
This commit is contained in:
parent
0756bddc6c
commit
810cc21732
|
@ -235,7 +235,7 @@ public class Sample_B_Analysis implements BlockConstant {
|
||||||
//gas谱PHD文件本地路径
|
//gas谱PHD文件本地路径
|
||||||
StringBuilder gasFileFinalPath = new StringBuilder();
|
StringBuilder gasFileFinalPath = new StringBuilder();
|
||||||
gasFileFinalPath.append(this.spectrumServiceQuotes.getSpectrumPathProperties().getRootPath());
|
gasFileFinalPath.append(this.spectrumServiceQuotes.getSpectrumPathProperties().getRootPath());
|
||||||
gasFileFinalPath.append(File.separator);
|
// gasFileFinalPath.append(File.separator);
|
||||||
gasFileFinalPath.append(this.spectrumServiceQuotes.getSpectrumPathProperties().getSaveFilePath());
|
gasFileFinalPath.append(this.spectrumServiceQuotes.getSpectrumPathProperties().getSaveFilePath());
|
||||||
gasFileFinalPath.append(File.separator);
|
gasFileFinalPath.append(File.separator);
|
||||||
gasFileFinalPath.append(gasSampleData.getInputFileName());
|
gasFileFinalPath.append(gasSampleData.getInputFileName());
|
||||||
|
@ -248,7 +248,7 @@ public class Sample_B_Analysis implements BlockConstant {
|
||||||
//det谱PHD文件本地路径
|
//det谱PHD文件本地路径
|
||||||
StringBuilder detFileFinalPath = new StringBuilder();
|
StringBuilder detFileFinalPath = new StringBuilder();
|
||||||
detFileFinalPath.append(this.spectrumServiceQuotes.getSpectrumPathProperties().getRootPath());
|
detFileFinalPath.append(this.spectrumServiceQuotes.getSpectrumPathProperties().getRootPath());
|
||||||
detFileFinalPath.append(File.separator);
|
// detFileFinalPath.append(File.separator);
|
||||||
detFileFinalPath.append(this.spectrumServiceQuotes.getSpectrumPathProperties().getSaveFilePath());
|
detFileFinalPath.append(this.spectrumServiceQuotes.getSpectrumPathProperties().getSaveFilePath());
|
||||||
detFileFinalPath.append(File.separator);
|
detFileFinalPath.append(File.separator);
|
||||||
detFileFinalPath.append(detSampleData.getInputFileName());
|
detFileFinalPath.append(detSampleData.getInputFileName());
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
<update id="updateEntity">
|
<update id="updateEntity">
|
||||||
UPDATE
|
UPDATE
|
||||||
RNMAN.GARDS_ANALYSES
|
RNMAN.GARDS_ANALYSES
|
||||||
SET ANALYSISBEGIN = to_date(#{analyses.analysisBeginStr},'yyyy/MM/dd HH:mi:ss'),
|
SET ANALYSISBEGIN = to_date(#{analyses.analysisBeginStr},'yyyy/MM/dd HH24:mi:ss'),
|
||||||
ANALYSISEND = to_date(#{analyses.analysisEndStr},'yyyy/MM/dd HH:mi:ss'),
|
ANALYSISEND = to_date(#{analyses.analysisEndStr},'yyyy/MM/dd HH24:mi:ss'),
|
||||||
SOFTWARE = #{analyses.software},
|
SOFTWARE = #{analyses.software},
|
||||||
SWVERSION = #{analyses.swVersion},
|
SWVERSION = #{analyses.swVersion},
|
||||||
COMMENTS = #{analyses.comments},
|
COMMENTS = #{analyses.comments},
|
||||||
|
|
|
@ -4495,7 +4495,7 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
|
||||||
Integer isExist = spectrumAnalysisMapper.SampleIsExist(sysTemSubdir+ dateTypeSubdir + StringPool.SLASH + mSaveFileName, userName);
|
Integer isExist = spectrumAnalysisMapper.SampleIsExist(sysTemSubdir+ dateTypeSubdir + StringPool.SLASH + mSaveFileName, userName);
|
||||||
// 如果用户没有权限操作 则查看当前用户是否是高级分析员/管理员
|
// 如果用户没有权限操作 则查看当前用户是否是高级分析员/管理员
|
||||||
if (!bAnalysisResultWriteAuthority && Objects.isNull(isExist)) {
|
if (!bAnalysisResultWriteAuthority && Objects.isNull(isExist)) {
|
||||||
result.error500("You have no permission to save results to DB!");
|
result.error500("You have no permission to save "+phd.getHeader().getSite_code()+" results to DB!");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
// 如果有权限则开始保存数据库操作
|
// 如果有权限则开始保存数据库操作
|
||||||
|
|
|
@ -3676,7 +3676,7 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
|
||||||
Integer isExist = spectrumAnalysisMapper.SampleIsExist(sampleFilePathName, anlyseResultIn.getUserName());
|
Integer isExist = spectrumAnalysisMapper.SampleIsExist(sampleFilePathName, anlyseResultIn.getUserName());
|
||||||
//如果当前分析员在当天没有排班任务 并且 没有历史分析过当前文件 则不允许进行保存操作
|
//如果当前分析员在当天没有排班任务 并且 没有历史分析过当前文件 则不允许进行保存操作
|
||||||
if ( !bAnalysisResultWriteAuthority && Objects.isNull(isExist) ){
|
if ( !bAnalysisResultWriteAuthority && Objects.isNull(isExist) ){
|
||||||
result.error500("You have no permission to save results to DB!");
|
result.error500("You have no permission to save "+anlyseResultIn.getStationName()+" results to DB!");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
//处理数据 获取对应的channel/energy值
|
//处理数据 获取对应的channel/energy值
|
||||||
|
|
|
@ -95,6 +95,7 @@
|
||||||
<!-- 日志输出级别 -->
|
<!-- 日志输出级别 -->
|
||||||
<root level="INFO">
|
<root level="INFO">
|
||||||
<appender-ref ref="STDOUT" />
|
<appender-ref ref="STDOUT" />
|
||||||
|
<appender-ref ref="FILE_INFO" />
|
||||||
<appender-ref ref="FILE" />
|
<appender-ref ref="FILE" />
|
||||||
<appender-ref ref="HTML" />
|
<appender-ref ref="HTML" />
|
||||||
<appender-ref ref="FILE_HTML" />
|
<appender-ref ref="FILE_HTML" />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user