fix:Sample_G_Analysis

This commit is contained in:
nieziyan 2023-09-01 18:55:37 +08:00
parent ee174a95bb
commit 0b61778dc3
3 changed files with 14 additions and 2 deletions

View File

@ -16,4 +16,6 @@ public interface GardsAnalysesService extends IService<GardsAnalyses> {
* @param sampleId
*/
public void create(BgAnalyseResult analyseResult,Integer sampleId);
Integer getIdAnalysis(Integer sampleId);
}

View File

@ -38,4 +38,10 @@ public class GardsAnalysesServiceImpl extends ServiceImpl<GardsAnalysesMapper, G
analyses.setLogPath(null);//解析过程日志ftp路径
analyses.setReportPath(null);//报告ftp路径
}
@Override
public Integer getIdAnalysis(Integer sampleId) {
return null;
}
}

View File

@ -41,13 +41,17 @@ public class Sample_G_Analysis {
}
public void analysis(){
/* 准备Gamma分析需要的数据 */
PHDFile phdFile = getSettingFromDB();
GStoreMiddleProcessData middleData = new GStoreMiddleProcessData();
// 保存Gards_Analyses
// 保存分析结果(Gards_Analyses)
GardsAnalyses analysis = toAnalysis(middleData);
Integer sampleId = sampleData.getSampleId();
analysis.setSampleId(sampleId);
serviceQuotes.getAnalysesService().save(analysis);
// 获取分析结果ID
}