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}