From 720e1bf975cf08d018b09a15e7d876beec909a48 Mon Sep 17 00:00:00 2001 From: qiaoqinzheng Date: Thu, 21 Sep 2023 17:20:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9beta=E6=A8=A1=E5=9D=97saveToD?= =?UTF-8?q?B=E6=8E=A5=E5=8F=A3=E9=97=AE=E9=A2=98=20=E4=BF=AE=E6=94=B9gamma?= =?UTF-8?q?=E6=A8=A1=E5=9D=97saveToDB=E6=8E=A5=E5=8F=A3=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9beta=E6=A8=A1=E5=9D=97saveToTXT,saveToExce?= =?UTF-8?q?l,saveToHtml=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SpectrumAnalysesController.java | 9 +- .../mapper/SpectrumAnalysisMapper.java | 6 +- .../mapper/xml/SpectrumAnalysisMapper.xml | 4 +- .../impl/SpectrumAnalysisServiceImpl.java | 580 ++++++++++++------ 4 files changed, 407 insertions(+), 192 deletions(-) diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/controller/SpectrumAnalysesController.java b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/controller/SpectrumAnalysesController.java index f7e000db..33c7305b 100644 --- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/controller/SpectrumAnalysesController.java +++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/controller/SpectrumAnalysesController.java @@ -46,11 +46,6 @@ public class SpectrumAnalysesController { return spectrumAnalysisService.getDBSpectrumList(queryRequest, gardsSampleData, dbName, menuTypes, AllUsers, CollectStopB, AcqStartB, startDate, endDate, request); } - @GetMapping("getSpectrumFiles") - public Result getSpectrumFiles(HttpServletRequest request) { - return spectrumAnalysisService.getSpectrumFiles(request); - } - @GetMapping("getFilesBySampleFile") @ApiOperation(value = "根据sampleFile查询出关联的文件信息", notes = "根据sampleFile查询出关联的文件信息") public Result getFilesBySampleFile(String fileName, HttpServletRequest request) { @@ -59,8 +54,8 @@ public class SpectrumAnalysesController { @GetMapping("getDBSpectrumChart") @ApiOperation(value = "查询折线图相关信息接口", notes = "查询折线图相关信息接口") - public Result getDBSpectrumChart(String dbName, Integer sampleId) { - return spectrumAnalysisService.getDBSpectrumChart(dbName, sampleId); + public Result getDBSpectrumChart(String dbName, Integer sampleId, HttpServletRequest request) { + return spectrumAnalysisService.getDBSpectrumChart(dbName, sampleId, request); } @GetMapping("getFileSpectrumChart") diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/mapper/SpectrumAnalysisMapper.java b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/mapper/SpectrumAnalysisMapper.java index 911e709d..bf5a9ef8 100644 --- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/mapper/SpectrumAnalysisMapper.java +++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/mapper/SpectrumAnalysisMapper.java @@ -22,7 +22,7 @@ public interface SpectrumAnalysisMapper { Page getDBSpectrumList(IPage page, GardsSampleDataSpectrum gardsSampleData, String dbName, List stationTypes, boolean CollectStopB, boolean AcqStartB, String startTime, String endTime, List userStations, boolean AllUsers); - SpectrumFileRecord getDBSpectrumFilePath(String dbName, Integer sampleId); + SpectrumFileRecord getDBSpectrumFilePath(String dbName, Integer sampleId, Integer analysisID); List getXeDataList(Integer sampleId); @@ -56,7 +56,7 @@ public interface SpectrumAnalysisMapper { String getStatus(@Param(value = "sampleId") Integer sampleId); - GardsAnalysesSpectrum getAnalysis(@Param(value = "dbName") String dbName, @Param(value = "sampleId") Integer sampleId); + GardsAnalysesSpectrum getAnalysis(@Param(value = "dbName") String dbName, @Param(value = "sampleId") Integer sampleId, @Param(value = "userName") String userName); List getPeaks(@Param(value = "dbName") String dbName, @Param(value = "idAnalysis") Integer idAnalysis); @@ -78,7 +78,7 @@ public interface SpectrumAnalysisMapper { List UserNuclide(@Param(value = "systemType") String systemType, @Param(value = "userName") String userName); - Integer getAnalysisID(@Param(value = "dbName") String dbName, @Param(value = "sampleId") Integer sampleId); + Integer getAnalysisID(@Param(value = "dbName") String dbName, @Param(value = "sampleId") Integer sampleId, @Param(value = "userName") String userName); List ReadGammaFitChannelEnergy(@Param(value = "idAnalysis") Integer idAnalysis, @Param(value = "sampleId") Integer sampleId); diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/mapper/xml/SpectrumAnalysisMapper.xml b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/mapper/xml/SpectrumAnalysisMapper.xml index 5d2c4d47..35155864 100644 --- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/mapper/xml/SpectrumAnalysisMapper.xml +++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/mapper/xml/SpectrumAnalysisMapper.xml @@ -123,6 +123,7 @@ ${dbName}.GARDS_ANALYSES analyses analyses.SAMPLE_ID = #{sampleId} + AND analyses.IDANALYSIS = #{analysisID} AND org_sample.SAMPLE_ID=analyses.SAMPLE_ID @@ -379,6 +380,7 @@ FROM ${dbName} WHERE SAMPLE_ID = #{sampleId} + and ANALYST = #{userName}