diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsAnalyses.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsAnalyses.java index 8ac4af39..b0fbb7e0 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsAnalyses.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsAnalyses.java @@ -11,7 +11,7 @@ import java.io.Serializable; * 谱数据到达的时间、分析开始和结束时间、分析员姓名、使用的软件、谱分析使用的参数(基线类型、寻峰方式、核素识别方法)等 */ @Data -@TableName("GARDS_ANALYSES") +@TableName("RNAUTO.GARDS_ANALYSES") public class GardsAnalyses implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsBgEfficiencyPairs.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsBgEfficiencyPairs.java index ff2241cb..3db92b14 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsBgEfficiencyPairs.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsBgEfficiencyPairs.java @@ -10,7 +10,7 @@ import java.io.Serializable; * 存储β-γ符合谱中#b_ gefficiency 数据块中的探测器符合效率刻度点。 */ @Data -@TableName("GARDS_BG_EFFICIENCY_PAIRS") +@TableName("ORIGINAL.GARDS_BG_EFFICIENCY_PAIRS") public class GardsBgEfficiencyPairs implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsCalibration.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsCalibration.java index 07fd2db2..f3135876 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsCalibration.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsCalibration.java @@ -9,7 +9,7 @@ import java.io.Serializable; * 存储数据分析过程中能量、分辨率和效率刻度的拟合结果。 */ @Data -@TableName("GARDS_CALIBRATION") +@TableName("RNAUTO.GARDS_CALIBRATION") public class GardsCalibration implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsCalibrationPairs.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsCalibrationPairs.java index 94634963..99ee09c7 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsCalibrationPairs.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsCalibrationPairs.java @@ -9,7 +9,7 @@ import java.io.Serializable; * 存储数据分析过程中能量、分辨率和效率刻度实际使用的刻度点数据。 */ @Data -@TableName("GARDS_CALIBRATION_PAIRS") +@TableName("RNAUTO.GARDS_CALIBRATION_PAIRS") public class GardsCalibrationPairs implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsCalibrationPairsOrig.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsCalibrationPairsOrig.java index 3a7928ce..f74954df 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsCalibrationPairsOrig.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsCalibrationPairsOrig.java @@ -10,7 +10,7 @@ import java.io.Serializable; * 存储所有能谱中#g_energy、#b_energy、#b_resolution、#g_resolution、#g_efficiency数据块中的刻度点。 */ @Data -@TableName("GARDS_CALIBRATION_PAIRS_ORIG") +@TableName("ORIGINAL.GARDS_CALIBRATION_PAIRS_ORIG") public class GardsCalibrationPairsOrig implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsHistogram.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsHistogram.java index af1f0788..62185922 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsHistogram.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsHistogram.java @@ -10,7 +10,7 @@ import java.io.Serializable; * 存储β-γ符合谱中#histogram数据块中的数据。 */ @Data -@TableName("GARDS_HISTOGRAM") +@TableName("ORIGINAL.GARDS_HISTOGRAM") public class GardsHistogram implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsMetData.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsMetData.java index 54d65a55..e9069f07 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsMetData.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsMetData.java @@ -10,7 +10,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName(value = "gards_met_data") +@TableName(value = "ORIGINAL.GARDS_MET_DATA") public class GardsMetData implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsNuclIded.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsNuclIded.java index d1c8acea..4abb82e1 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsNuclIded.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsNuclIded.java @@ -10,7 +10,7 @@ import java.io.Serializable; * 存储gamma谱中识别到的核素计算结果。 */ @Data -@TableName("GARDS_NUCL_IDED") +@TableName("RNAUTO.GARDS_NUCL_IDED") public class GardsNuclIded implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsNuclLinesIded.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsNuclLinesIded.java index a88d0b89..4c641450 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsNuclLinesIded.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsNuclLinesIded.java @@ -10,7 +10,7 @@ import java.io.Serializable; * 存储gamma谱中识别到的峰计算结果。 */ @Data -@TableName("GARDS_NUCL_LINES_IDED") +@TableName("RNAUTO.GARDS_NUCL_LINES_IDED") public class GardsNuclLinesIded implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsPeaks.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsPeaks.java index 39f49e6c..60c8a35b 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsPeaks.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsPeaks.java @@ -8,7 +8,7 @@ import java.io.Serializable; * 存储gamma谱的寻峰结果 */ @Data -@TableName("GARDS_PEAKS") +@TableName("RNAUTO.GARDS_PEAKS") public class GardsPeaks implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsRoiChannels.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsRoiChannels.java index 5ba33b1d..8690269e 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsRoiChannels.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsRoiChannels.java @@ -10,7 +10,7 @@ import java.io.Serializable; * 存储β-γ符合谱中感兴趣区道址边界数据。 */ @Data -@TableName("GARDS_ROI_CHANNELS") +@TableName("RNAUTO.GARDS_ROI_CHANNELS") public class GardsRoiChannels implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsRoiLimits.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsRoiLimits.java index 7a06b359..19716869 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsRoiLimits.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsRoiLimits.java @@ -9,7 +9,7 @@ import java.io.Serializable; * 存储β-γ符合谱中#ROI_LMITS 数据块中的感兴趣区能量边界数据。 */ @Data -@TableName("GARDS_ROI_LIMITS") +@TableName("ORIGINAL.GARDS_ROI_LIMITS") public class GardsRoiLimits implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsRoiResults.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsRoiResults.java index 94694a3f..64bdd4ba 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsRoiResults.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsRoiResults.java @@ -10,7 +10,7 @@ import java.io.Serializable; * 存储β-γ符合谱中分析过程中的有关感兴趣区(ROI)计算的中间结果。 */ @Data -@TableName("GARDS_ROI_RESULTS") +@TableName("RNAUTO.GARDS_ROI_RESULTS") public class GardsRoiResults implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleAux.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleAux.java index cae4b07d..db2b77e9 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleAux.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleAux.java @@ -10,7 +10,7 @@ import java.util.Date; * 存储所有原始数据的基本数据 */ @Data -@TableName("GARDS_SAMPLE_DATA") +@TableName("ORIGINAL.GARDS_SAMPLE_AUX") public class GardsSampleAux implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleCert.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleCert.java index 8cf5d16f..3085f785 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleCert.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleCert.java @@ -11,7 +11,7 @@ import java.util.Date; * 存储QCPHD 和 CALIBPHD谱中#CERTIFICATE数据块中的内容。 */ @Data -@TableName("GARDS_SAMPLE_CERT") +@TableName("ORIGINAL.GARDS_SAMPLE_CERT") public class GardsSampleCert implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleCertLine.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleCertLine.java index 587a75fd..b657dbe9 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleCertLine.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleCertLine.java @@ -9,7 +9,7 @@ import java.io.Serializable; * 存储QCPHD 和 CALIBPHD谱中#CERTIFICATE数据块中的内容。 */ @Data -@TableName("GARDS_SAMPLE_CERT_LINE") +@TableName("ORIGINAL.GARDS_SAMPLE_CERT_LINE") public class GardsSampleCertLine implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleData.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleData.java index 1e0e2c46..2caf8bb7 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleData.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleData.java @@ -10,7 +10,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName("GARDS_SAMPLE_DATA") +@TableName("ORIGINAL.GARDS_SAMPLE_DATA") public class GardsSampleData implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleDescription.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleDescription.java index d1c8ad02..ac6f3443 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleDescription.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleDescription.java @@ -9,7 +9,7 @@ import java.io.Serializable; * 存储台站注释 */ @Data -@TableName("GARDS_SAMPLE_DESCRIPTION") +@TableName("ORIGINAL.GARDS_SAMPLE_DESCRIPTION") public class GardsSampleDescription implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleRatios.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleRatios.java index df7c0c66..13c13b8f 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleRatios.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSampleRatios.java @@ -9,7 +9,7 @@ import java.io.Serializable; * 存储β-γ符合谱中# Ratios 数据块中的感兴趣区相应核素的计数比率。 */ @Data -@TableName("GARDS_SAMPLE_RATIOS") +@TableName("ORIGINAL.GARDS_SAMPLE_RATIOS") public class GardsSampleRatios implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSohData.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSohData.java index d05b83ed..ff74dd23 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSohData.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSohData.java @@ -10,7 +10,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName(value = "gards_soh_data") +@TableName(value = "ORIGINAL.GARDS_SOH_DATA") public class GardsSohData implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSpectrum.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSpectrum.java index bac67ef0..92cc59d8 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSpectrum.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsSpectrum.java @@ -9,7 +9,7 @@ import java.io.Serializable; * 存储所有能谱中#G_Spectrum和#B_Spectrum数据块中的数据。 */ @Data -@TableName("GARDS_SPECTRUM") +@TableName("ORIGINAL.GARDS_SPECTRUM") public class GardsSpectrum implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsTotalEfficiencyPairs.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsTotalEfficiencyPairs.java index f5edc6a8..f0f3c3a4 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsTotalEfficiencyPairs.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsTotalEfficiencyPairs.java @@ -11,7 +11,7 @@ import java.io.Serializable; * IDC没有 */ @Data -@TableName("GARDS_TOTAL_EFFICIENCY_PAIRS") +@TableName("ORIGINAL.GARDS_TOTAL_EFFICIENCY_PAIRS") public class GardsTotalEfficiencyPairs implements Serializable { /** diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsXeResults.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsXeResults.java index f86d62ff..035eced5 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsXeResults.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/GardsXeResults.java @@ -10,7 +10,7 @@ import java.io.Serializable; * 存储β-γ符合谱最终分析结果。 */ @Data -@TableName("GARDS_XE_RESULTS") +@TableName("RNAUTO.GARDS_XE_RESULTS") public class GardsXeResults implements Serializable { /** 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 97bd10e5..1c7ec92d 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 @@ -24,15 +24,15 @@ public class SpectrumAnalysesController { @GetMapping("getDBSearchList") @ApiOperation(value = "查询台站,探测器数据接口", notes = "查询台站,探测器数据接口") - public Result getDBSearchList(String menuType){ - return spectrumAnalysisService.getDBSearchList(menuType); + public Result getDBSearchList(String[] menuTypes){ + return spectrumAnalysisService.getDBSearchList(menuTypes); } @GetMapping("getDBSpectrumList") @ApiOperation(value = "获取数据库中交互分析基础数据", notes = "获取数据库中交互分析基础数据") - public Result getDBSpectrumList(QueryRequest queryRequest, GardsSampleData gardsSampleData, String dbName, String menuType,boolean CollectStop, boolean AcqStart, + public Result getDBSpectrumList(QueryRequest queryRequest, GardsSampleData gardsSampleData, String dbName, String[] menuTypes,boolean CollectStop, boolean AcqStart, @DateTimeFormat(pattern = "yyyy-MM-dd") Date startDate, @DateTimeFormat(pattern = "yyyy-MM-dd") Date endDate) { - return spectrumAnalysisService.getDBSpectrumList(queryRequest, gardsSampleData, dbName, menuType, CollectStop, AcqStart, startDate, endDate); + return spectrumAnalysisService.getDBSpectrumList(queryRequest, gardsSampleData, dbName, menuTypes, CollectStop, AcqStart, startDate, endDate); } diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/ISpectrumAnalysisService.java b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/ISpectrumAnalysisService.java index 6d4747cd..101eeed8 100644 --- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/ISpectrumAnalysisService.java +++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/ISpectrumAnalysisService.java @@ -8,8 +8,8 @@ import java.util.Date; public interface ISpectrumAnalysisService { - Result getDBSearchList(String menuType); + Result getDBSearchList(String[] menuTypes); - Result getDBSpectrumList(QueryRequest queryRequest, GardsSampleData gardsSampleData, String dbName, String menuType, boolean CollectStop, boolean AcqStart, Date startDate, Date endDate); + Result getDBSpectrumList(QueryRequest queryRequest, GardsSampleData gardsSampleData, String dbName, String[] menuTypes, boolean CollectStop, boolean AcqStart, Date startDate, Date endDate); } diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/ISysDictService.java b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/ISysDictService.java index 26c8eff8..677065c2 100644 --- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/ISysDictService.java +++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/ISysDictService.java @@ -7,7 +7,7 @@ import java.util.List; public interface ISysDictService extends IService { - List findStationType(String menuType); + List findStationType(List menuTypeList); } diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SpectrumAnalysisServiceImpl.java b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SpectrumAnalysisServiceImpl.java index bbd669ea..436e5154 100644 --- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SpectrumAnalysisServiceImpl.java +++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SpectrumAnalysisServiceImpl.java @@ -23,7 +23,7 @@ import java.util.*; import java.util.stream.Collectors; @Service("spectrumAnalysisService") -@DS("auo") +@DS("ora") public class SpectrumAnalysisServiceImpl implements ISpectrumAnalysisService { @Autowired @@ -36,15 +36,16 @@ public class SpectrumAnalysisServiceImpl implements ISpectrumAnalysisService { private GardsDetectorsMapper gardsDetectorsMapper; @Override - public Result getDBSearchList(String menuType) { + public Result getDBSearchList(String[] menuTypes) { Result result = new Result(); Map> map = new HashMap<>(); + List menuTypeList = Arrays.asList(menuTypes); //查询谱对应的台站类型 - if (StringUtils.isBlank(menuType)){ + if (CollectionUtils.isEmpty(menuTypeList)){ result.error500("谱类型不能为空"); return result; } - List stationTypes = sysDictService.findStationType(menuType); + List stationTypes = sysDictService.findStationType(menuTypeList); if (CollectionUtils.isEmpty(stationTypes)) { result.error500("请先补充数据字典中当前系统类型对应的台站类型信息"); return result; @@ -73,7 +74,7 @@ public class SpectrumAnalysisServiceImpl implements ISpectrumAnalysisService { } @Override - public Result getDBSpectrumList(QueryRequest queryRequest, GardsSampleData gardsSampleData, String dbName, String menuType, boolean CollectStop, boolean AcqStart, Date startDate, Date endDate) { + public Result getDBSpectrumList(QueryRequest queryRequest, GardsSampleData gardsSampleData, String dbName, String[] menuTypes, boolean CollectStop, boolean AcqStart, Date startDate, Date endDate) { Result result = new Result(); if (Objects.isNull(startDate)){ result.error500("开始时间不能为空"); @@ -85,11 +86,12 @@ public class SpectrumAnalysisServiceImpl implements ISpectrumAnalysisService { return result; } String endTime = DateUtils.formatDate(endDate, "yyyy-MM-dd") + " 23:59:59"; - if (StringUtils.isBlank(menuType)){ + List menuTypeList = Arrays.asList(menuTypes); + if (CollectionUtils.isEmpty(menuTypeList)){ result.error500("谱类型不能为空"); return result; } - List stationTypes = sysDictService.findStationType(menuType); + List stationTypes = sysDictService.findStationType(menuTypeList); if (CollectionUtils.isEmpty(stationTypes)) { result.error500("请先补充数据字典中当前系统类型对应的台站类型信息"); return result; diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SysDictServiceImpl.java b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SysDictServiceImpl.java index 9a7b2889..ac705fd3 100644 --- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SysDictServiceImpl.java +++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SysDictServiceImpl.java @@ -30,11 +30,11 @@ public class SysDictServiceImpl extends ServiceImpl impl @Override @Transactional(propagation = Propagation.REQUIRES_NEW) - public List findStationType(String menuType) { + public List findStationType(List menuTypeList) { List menuTypes = new LinkedList<>(); - if (menuType.equals("B")) { + if (menuTypeList.contains("B")) { menuTypes.add("Noble Gas Beta-Gamma"); - }else if (menuType.equals("G")) { + }else if (menuTypeList.contains("G")) { menuTypes.add("Particulate"); menuTypes.add("Noble Gas HPGe"); } diff --git a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/StationMetDataMapper.java b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/StationMetDataMapper.java index 831399d6..f2dff64e 100644 --- a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/StationMetDataMapper.java +++ b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/StationMetDataMapper.java @@ -7,7 +7,7 @@ import org.jeecg.modules.base.entity.GardsMetData; import java.util.List; -@DS("ori") +@DS("ora") public interface StationMetDataMapper extends BaseMapper { List findMetDataList(@Param("stationIds") List stationIds, @Param("startDate") String startDate); diff --git a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/StationSampleDataMapper.java b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/StationSampleDataMapper.java index 605e1479..f0838d49 100644 --- a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/StationSampleDataMapper.java +++ b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/StationSampleDataMapper.java @@ -7,7 +7,7 @@ import org.jeecg.modules.base.entity.GardsSampleData; import java.util.List; -@DS("ori") +@DS("ora") public interface StationSampleDataMapper extends BaseMapper { List findSampleDataList(@Param("detectorIds") List detectorIds, @Param("startDate") String startDate); diff --git a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/StationSohDataMapper.java b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/StationSohDataMapper.java index 2e1414ea..fb4e447a 100644 --- a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/StationSohDataMapper.java +++ b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/StationSohDataMapper.java @@ -7,7 +7,7 @@ import org.jeecg.modules.base.entity.GardsSohData; import java.util.List; -@DS("ori") +@DS("ora") public interface StationSohDataMapper extends BaseMapper { List findSohDataList(@Param("stationId") String stationId, @Param("detectorIds") List detectorIds, @Param("startDate") String startDate); diff --git a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/SysUserMapper.java b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/SysUserMapper.java deleted file mode 100644 index 9c11087e..00000000 --- a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/mapper/SysUserMapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.jeecg.modules.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.jeecg.modules.entity.SysUser; - -public interface SysUserMapper extends BaseMapper { -} diff --git a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/service/ICacheTimeService.java b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/service/ICacheTimeService.java index 5913222d..58b82fb3 100644 --- a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/service/ICacheTimeService.java +++ b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/service/ICacheTimeService.java @@ -1,5 +1,6 @@ package org.jeecg.modules.service; +import org.jeecg.modules.entity.SysUser; import org.jeecg.modules.system.entity.GardsDetectors; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.stereotype.Component; @@ -19,4 +20,7 @@ public interface ICacheTimeService { @RequestMapping("/gardsDetectors/findStationDetectors") Map> findStationDetectors(@RequestBody List stationIds); + @RequestMapping("/sys/user/findUserByName") + SysUser findUserByName(String userName); + } diff --git a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/service/impl/SysUserFocusStationServiceImpl.java b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/service/impl/SysUserFocusStationServiceImpl.java index 0327a8e5..4aea155c 100644 --- a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/service/impl/SysUserFocusStationServiceImpl.java +++ b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/service/impl/SysUserFocusStationServiceImpl.java @@ -17,7 +17,6 @@ import org.jeecg.modules.entity.SysUserFocusStation; import org.jeecg.modules.entity.UserFocusStation; import org.jeecg.modules.mapper.StationReceivingConfigMapper; import org.jeecg.modules.mapper.SysUserFocusStationMapper; -import org.jeecg.modules.mapper.SysUserMapper; import org.jeecg.modules.service.ICacheTimeService; import org.jeecg.modules.service.ISysUserFocusStationService; import org.jeecg.modules.system.entity.GardsStations; @@ -28,7 +27,6 @@ import org.springframework.transaction.annotation.Transactional; import javax.servlet.http.HttpServletRequest; import java.time.LocalDateTime; import java.util.*; -import java.util.stream.Collectors; @Service("sysUserFocusStationService") public class SysUserFocusStationServiceImpl extends ServiceImpl implements ISysUserFocusStationService { @@ -36,8 +34,6 @@ public class SysUserFocusStationServiceImpl extends ServiceImpl userQueryWrapper = new LambdaQueryWrapper<>(); - userQueryWrapper.eq(SysUser::getUsername, username); - SysUser sysUser = sysUserMapper.selectOne(userQueryWrapper); + SysUser sysUser = cacheTimeService.findUserByName(username); if (Objects.isNull(sysUser)){ result.error500("当前用户不存在!"); return result; @@ -141,9 +135,7 @@ public class SysUserFocusStationServiceImpl extends ServiceImpl userQueryWrapper = new LambdaQueryWrapper<>(); - userQueryWrapper.eq(SysUser::getUsername, username); - SysUser sysUser = sysUserMapper.selectOne(userQueryWrapper); + SysUser sysUser = cacheTimeService.findUserByName(username); if (Objects.isNull(sysUser)){ result.error500("当前用户不存在!"); return result; diff --git a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/system/entity/GardsDetectors.java b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/system/entity/GardsDetectors.java index c6e2e0a0..a7c2f026 100644 --- a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/system/entity/GardsDetectors.java +++ b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/system/entity/GardsDetectors.java @@ -14,7 +14,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName("GARDS_DETECTORS") +@TableName("CONFIGURATION.GARDS_DETECTORS") public class GardsDetectors implements Serializable { @TableField(value = "DETECTOR_ID") diff --git a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/system/entity/GardsNuclearfacility.java b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/system/entity/GardsNuclearfacility.java index 65ab2de4..6399d705 100644 --- a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/system/entity/GardsNuclearfacility.java +++ b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/system/entity/GardsNuclearfacility.java @@ -10,7 +10,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName("GARDS_NUCLEARFACILITY") +@TableName("CONFIGURATION.GARDS_NUCLEARFACILITY") public class GardsNuclearfacility implements Serializable { @TableField(value = "FACILITY_ID") diff --git a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/system/entity/GardsStations.java b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/system/entity/GardsStations.java index 8966904d..596d21f8 100644 --- a/jeecg-module-station-operation/src/main/java/org/jeecg/modules/system/entity/GardsStations.java +++ b/jeecg-module-station-operation/src/main/java/org/jeecg/modules/system/entity/GardsStations.java @@ -10,7 +10,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName(value = "GARDS_STATIONS") +@TableName(value = "CONFIGURATION.GARDS_STATIONS") public class GardsStations implements Serializable { @TableField(value = "STATION_ID") diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysDictController.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysDictController.java index c2ef4f29..53dc2b14 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysDictController.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysDictController.java @@ -20,6 +20,7 @@ import org.jeecg.common.system.vo.DictQuery; import org.jeecg.common.system.vo.LoginUser; import org.jeecg.common.util.*; import org.jeecg.config.mybatis.MybatisPlusSaasConfig; +import org.jeecg.modules.system.entity.GardsStations; import org.jeecg.modules.system.entity.SysDict; import org.jeecg.modules.system.entity.SysDictItem; import org.jeecg.modules.system.model.SysDictTree; @@ -698,4 +699,10 @@ public class SysDictController { sysDictService.editDictByLowAppId(sysDictVo); return Result.ok("编辑成功"); } + + @RequestMapping("/findStationListByMenuName") + public List findStationListByMenuName(String menuName){ + return sysDictService.findStationListByMenuName(menuName); + } + } diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java index 7111f314..cdd4373f 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java @@ -1766,4 +1766,9 @@ public class SysUserController { return sysUserService.findUserMap(); } + @GetMapping("findUserByName") + public SysUser findUserByName(String userName){ + return sysUserService.getUserByName(userName); + } + } diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/GardsDetectors.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/GardsDetectors.java index 74fbf875..9a678118 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/GardsDetectors.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/GardsDetectors.java @@ -14,7 +14,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName("GARDS_DETECTORS") +@TableName("CONFIGURATION.GARDS_DETECTORS") public class GardsDetectors implements Serializable { /** diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/GardsNuclearfacility.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/GardsNuclearfacility.java index 04ca335e..fb29cb42 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/GardsNuclearfacility.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/GardsNuclearfacility.java @@ -14,7 +14,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName("GARDS_NUCLEARFACILITY") +@TableName("CONFIGURATION.GARDS_NUCLEARFACILITY") public class GardsNuclearfacility implements Serializable { /** diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/GardsStations.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/GardsStations.java index eb654a06..6b41c741 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/GardsStations.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/GardsStations.java @@ -17,7 +17,7 @@ import java.sql.Timestamp; import java.util.Date; @Data -@TableName(value = "GARDS_STATIONS") +@TableName(value = "CONFIGURATION.GARDS_STATIONS") public class GardsStations implements Serializable { /** diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/GardsDetectorsMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/GardsDetectorsMapper.xml index d3a4cc52..905e33e8 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/GardsDetectorsMapper.xml +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/GardsDetectorsMapper.xml @@ -20,7 +20,7 @@ MODDATE, STATION_ID FROM - GARDS_DETECTORS + CONFIGURATION.GARDS_DETECTORS and DETECTOR_CODE like CONCAT('%',#{gardsDetectors.detectorCode},'%') @@ -36,7 +36,7 @@ \ No newline at end of file diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/GardsNuclearfacilityMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/GardsNuclearfacilityMapper.xml index 8750836d..d0df9359 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/GardsNuclearfacilityMapper.xml +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/GardsNuclearfacilityMapper.xml @@ -3,11 +3,11 @@ \ No newline at end of file diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/GardsStationsMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/GardsStationsMapper.xml index 2c8941f1..99c68390 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/GardsStationsMapper.xml +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/GardsStationsMapper.xml @@ -3,11 +3,11 @@ \ No newline at end of file diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/ISysDictService.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/ISysDictService.java index bf573e79..b66933b3 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/ISysDictService.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/ISysDictService.java @@ -3,6 +3,7 @@ package org.jeecg.modules.system.service; import com.baomidou.mybatisplus.extension.service.IService; import org.jeecg.common.system.vo.DictModel; import org.jeecg.common.system.vo.DictQuery; +import org.jeecg.modules.system.entity.GardsStations; import org.jeecg.modules.system.entity.SysDict; import org.jeecg.modules.system.entity.SysDictItem; import org.jeecg.modules.system.model.TreeSelectModel; @@ -274,4 +275,7 @@ public interface ISysDictService extends IService { * @param sysDictVo */ void editDictByLowAppId(SysDictVo sysDictVo); + + List findStationListByMenuName(String menuName); + } diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/GardsSampleDataServiceImpl.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/GardsSampleDataServiceImpl.java index d62f75fd..245b42c8 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/GardsSampleDataServiceImpl.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/GardsSampleDataServiceImpl.java @@ -26,7 +26,7 @@ import java.util.List; import java.util.Objects; @Service("gardsSampleDataService") -@DS("ori") +@DS("ora") public class GardsSampleDataServiceImpl extends ServiceImpl implements IGardsSampleDataService { @Autowired private RedisUtil redisUtil; diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDictServiceImpl.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDictServiceImpl.java index 78d627e6..35578a47 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDictServiceImpl.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDictServiceImpl.java @@ -3,9 +3,11 @@ package org.jeecg.modules.system.service.impl; import cn.hutool.core.util.RandomUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.jeecg.common.config.TenantContext; import org.jeecg.common.constant.CacheConstant; import org.jeecg.common.constant.CommonConstant; @@ -18,9 +20,11 @@ import org.jeecg.common.system.util.ResourceUtil; import org.jeecg.common.system.vo.DictModel; import org.jeecg.common.system.vo.DictModelMany; import org.jeecg.common.system.vo.DictQuery; +import org.jeecg.common.util.RedisUtil; import org.jeecg.common.util.SqlInjectionUtil; import org.jeecg.common.util.oConvertUtils; import org.jeecg.config.mybatis.MybatisPlusSaasConfig; +import org.jeecg.modules.system.entity.GardsStations; import org.jeecg.modules.system.entity.SysDict; import org.jeecg.modules.system.entity.SysDictItem; import org.jeecg.modules.system.mapper.SysDictItemMapper; @@ -53,6 +57,8 @@ public class SysDictServiceImpl extends ServiceImpl impl private SysDictMapper sysDictMapper; @Autowired private SysDictItemMapper sysDictItemMapper; + @Autowired + private RedisUtil redisUtil; /** * 通过查询指定code 获取字典 @@ -531,6 +537,39 @@ public class SysDictServiceImpl extends ServiceImpl impl this.updateDictItem(id,sysDictVo.getDictItemsList()); } + @Override + public List findStationListByMenuName(String menuName) { + List gardsStationsList = new LinkedList<>(); + //获取台站信息 + HashMap stationInfoMap = (HashMap) redisUtil.get("stationInfoMap"); + List stationsList = stationInfoMap.values().stream().sorted(Comparator.comparing(GardsStations::getStationId)).collect(Collectors.toList()); + //如果传递的菜单名称不为空 则需要过滤出所需的台站信息 + if (StringUtils.isNotBlank(menuName)){ + //根据菜单名称查询出数据字典中对应的内容 + LambdaQueryWrapper dictQueryWrapper = new LambdaQueryWrapper<>(); + dictQueryWrapper.eq(SysDict::getDictCode, menuName); + SysDict sysDict = sysDictMapper.selectOne(dictQueryWrapper); + //如果字典内容不为空 + if (Objects.nonNull(sysDict)){ + LambdaQueryWrapper dictItemQueryWrapper = new LambdaQueryWrapper<>(); + dictItemQueryWrapper.eq(SysDictItem::getDictId, sysDict.getId()); + List dictItems = sysDictItemMapper.selectList(dictItemQueryWrapper); + List types = dictItems.stream().map(SysDictItem::getItemValue).collect(Collectors.toList()); + if (CollectionUtils.isNotEmpty(types)){ + //遍历过滤出和类型匹配的台站信息 存入新的数据集合中 + for (String type:types) { + gardsStationsList.addAll(stationsList.stream().filter(item-> StringUtils.isNotBlank(item.getType()) && item.getType().equals(type)).collect(Collectors.toList())); + } + } + }else { + gardsStationsList.addAll(stationsList); + } + }else { + gardsStationsList.addAll(stationsList); + } + return gardsStationsList; + } + /** * 添加字典 * @param dictName diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/controller/WebStatisticsController.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/controller/WebStatisticsController.java index 02368e50..bfd2b99d 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/controller/WebStatisticsController.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/controller/WebStatisticsController.java @@ -5,6 +5,7 @@ import io.swagger.annotations.ApiOperation; import org.jeecg.common.api.QueryRequest; import org.jeecg.common.api.vo.Result; import org.jeecg.modules.service.*; +import org.jeecg.modules.system.entity.GardsStations; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.web.bind.annotation.GetMapping; @@ -12,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.Date; +import java.util.List; @RestController @RequestMapping("webStatistics") @@ -19,13 +21,13 @@ import java.util.Date; public class WebStatisticsController { @Autowired - private IGardsSampleDataService gardsSampleDataService; + private IGardsSampleDataWebService gardsSampleDataWebService; @Autowired private IGardsMetDataService gardsMetDataService; @Autowired private IGardsSohDataService gardsSohDataService; @Autowired - private ISysDictService sysDictService; + private IMenuNameService menuNameService; @Autowired private IGardsSampleCertService gardsSampleCertService; @@ -33,14 +35,18 @@ public class WebStatisticsController { @GetMapping("findStationList") @ApiOperation(value = "根据菜单名称查询对应的台站信息", notes = "根据菜单名称查询对应的台站信息") public Result findStationList(String menuName){ - return sysDictService.findList(menuName); + Result result = new Result(); + List gardsStations = menuNameService.findStationListByMenuName(menuName); + result.setSuccess(true); + result.setResult(gardsStations); + return result; } @GetMapping("findParticulatePage") @ApiOperation(value = "气溶胶分页查询", notes = "气溶胶分页查询") public Result findParticulatePage(QueryRequest queryRequest, Integer[] stationIds, String dataType, String spectralQualifie, @DateTimeFormat(pattern = "yyyy-MM-dd") Date startTime,@DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime){ - return gardsSampleDataService.findParticulatePage(queryRequest, stationIds, dataType, spectralQualifie, startTime, endTime); + return gardsSampleDataWebService.findParticulatePage(queryRequest, stationIds, dataType, spectralQualifie, startTime, endTime); } @GetMapping("findMetPage") @@ -58,7 +64,7 @@ public class WebStatisticsController { @GetMapping("findGeneratedReport") @ApiOperation(value = "查询报告详情页面", notes = "查询报告详情页面") public Result findGeneratedReport(Integer sampleId){ - return gardsSampleDataService.findGeneratedReport(sampleId); + return gardsSampleDataWebService.findGeneratedReport(sampleId); } } diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsAnalysesAuto.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsAnalysesAuto.java new file mode 100644 index 00000000..c4ba6714 --- /dev/null +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsAnalysesAuto.java @@ -0,0 +1,175 @@ +package org.jeecg.modules.entity; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; +import java.util.Date; + +@Data +@TableName(value = "RNAUTO.GARDS_ANALYSES") +public class GardsAnalysesAuto implements Serializable { + + /** + * 分析ID号 + */ + @TableField(value = "IDANALYSIS") + private Integer idAnalysis; + + /** + * 样品id + */ + @TableField(value = "SAMPLE_ID") + private Integer sampleId; + + /** + * 分析开始时间 + */ + @TableField(value = "ANALYSISBEGIN") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private Date analysisBegin; + + /** + * 分析结束时间 + */ + @TableField(value = "ANALYSISEND") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private Date analysisEnd; + + /** + * Reviewed:交互; + */ + @TableField(value = "TYPE") + private String type; + + /** + * 使用的软件名称 + */ + @TableField(value = "SOFTWARE") + private String software; + + /** + * 软件版本号 + */ + @TableField(value = "SWVERSION") + private String swVersion; + + /** + * 分析员名称 + */ + @TableField(value = "ANALYST") + private String analyst; + + /** + * 基线计数方法描述 + */ + @TableField(value = "BASELINEMETHOD") + private String baseLineMethod; + + /** + * 寻峰方法描述 + */ + @TableField(value = "PEAKSMETHOD") + private String peaksMethod; + + /** + * 核素识别方法描述 + */ + @TableField(value = "NUCLIDEMETHOD") + private String nuclideMethod; + + /** + * 不确定度计算描述 + */ + @TableField(value = "UNCCALCMETHOD") + private String unccalcMethod; + + /** + * Lc计算方法描述 + */ + @TableField(value = "LCMETHOD") + private String lcMethod; + + /** + * 寻峰起始道 + */ + @TableField(value = "SEARCHSTARTCHANNEL") + private Integer searchStartChannel; + + /** + * 寻峰结束道 + */ + @TableField(value = "SEARCHENDCHANNEL") + private Integer searchEndChannel; + + /** + * 寻峰阈值(能窗宽度) + */ + @TableField(value = "SEARCHTHRESHOLD") + private Double searchThreshold; + + /** + * 峰数目 + */ + @TableField(value = "NUMBEROFPEAKS") + private Integer numberOfPeaks; + + /** + * 总计数 + */ + @TableField(value = "TOTALCOUNTS") + private Double totalCounts; + + /** + * 分级结果 + */ + @TableField(value = "CATEGORY") + private Integer cateGory; + + /** + * 注释 + */ + @TableField(value = "COMMENTS") + private String comments; + + /** + * 操作时间 + */ + @TableField(value = "MODDATE") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date moddate; + + @TableField(value = "USEDGASPHD") + private String usedGasPhd; + + @TableField(value = "USEDDETPHD") + private String usedDetPhd; + + @TableField(value = "USEDGASPHD_ID") + private Integer usedGasPhdId; + + @TableField(value = "USEDDETPHD_ID") + private Integer usedDetPhdId; + + @TableField(value = "BASELINE_PATH") + private String baseLinePath; + + @TableField(value = "LC_PATH") + private String lcPath; + + @TableField(value = "SCAC_PATH") + private String scacPath; + + @TableField(value = "LOG_PATH") + private String logPath; + + @TableField(value = "REPORT_PAHT") + private String reportPath; + +} diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsAnalyses.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsAnalysesMan.java similarity index 97% rename from jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsAnalyses.java rename to jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsAnalysesMan.java index 18725a39..cac28c17 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsAnalyses.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsAnalysesMan.java @@ -10,8 +10,8 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName(value = "gards_analyses") -public class GardsAnalyses implements Serializable { +@TableName(value = "RNMAN.GARDS_ANALYSES") +public class GardsAnalysesMan implements Serializable { /** * 分析ID号 diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsBgEfficiencyPairs.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsBgEfficiencyPairs.java index 8f2ba333..cd1b0baa 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsBgEfficiencyPairs.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsBgEfficiencyPairs.java @@ -10,7 +10,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName(value = "GARDS_BG_EFFICIENCY_PAIRS") +@TableName(value = "ORIGINAL.GARDS_BG_EFFICIENCY_PAIRS") public class GardsBgEfficiencyPairs implements Serializable { @TableField(value = "SAMPLE_ID") diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsCalibrationPairsOrig.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsCalibrationPairsOrig.java index 5bc6877d..e737cb35 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsCalibrationPairsOrig.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsCalibrationPairsOrig.java @@ -7,7 +7,7 @@ import lombok.Data; import java.io.Serializable; @Data -@TableName(value = "gards_calibration_pairs_orig") +@TableName(value = "ORIGINAL.GARDS_CALIBRATION_PAIRS_ORIG") public class GardsCalibrationPairsOrig implements Serializable { /** diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsHistogram.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsHistogram.java index acd4caac..8bef0319 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsHistogram.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsHistogram.java @@ -10,7 +10,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName(value = "GARDS_HISTOGRAM") +@TableName(value = "ORIGINAL.GARDS_HISTOGRAM") public class GardsHistogram implements Serializable { @TableField(value = "SAMPLE_ID") diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsRoiLimits.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsRoiLimits.java index 9dd92609..36fa67d3 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsRoiLimits.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsRoiLimits.java @@ -10,7 +10,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName(value = "GARDS_ROI_LIMITS") +@TableName(value = "ORIGINAL.GARDS_ROI_LIMITS") public class GardsRoiLimits implements Serializable { @TableField(value = "SAMPLE_ID") diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleAux.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleAux.java index cf4b5018..d4e2699a 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleAux.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleAux.java @@ -10,7 +10,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName(value = "gards_sample_aux") +@TableName(value = "ORIGINAL.GARDS_SAMPLE_AUX") public class GardsSampleAux implements Serializable { /** diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleCert.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleCert.java index 2d8ff38b..84e2193c 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleCert.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleCert.java @@ -10,7 +10,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName(value = "gards_sample_cert") +@TableName(value = "ORIGINAL.GARDS_SAMPLE_CERT") public class GardsSampleCert implements Serializable { /** diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleCertLine.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleCertLine.java index 800b22a0..e4d5de1c 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleCertLine.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleCertLine.java @@ -7,7 +7,7 @@ import lombok.Data; import java.io.Serializable; @Data -@TableName(value = "gards_sample_cert_line") +@TableName(value = "ORIGINAL.GARDS_SAMPLE_CERT_LINE") public class GardsSampleCertLine implements Serializable { /** diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleDescription.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleDescription.java index e0a7551c..01bf4858 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleDescription.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleDescription.java @@ -7,7 +7,7 @@ import lombok.Data; import java.io.Serializable; @Data -@TableName(value = "gards_sample_description") +@TableName(value = "ORIGINAL.GARDS_SAMPLE_DESCRIPTION") public class GardsSampleDescription implements Serializable { @TableField(value = "SAMPLE_ID") diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleRatios.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleRatios.java index 8a0ff1c3..3d3cfd2c 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleRatios.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSampleRatios.java @@ -10,7 +10,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName(value = "GARDS_SAMPLE_RATIOS") +@TableName(value = "ORIGINAL.GARDS_SAMPLE_RATIOS") public class GardsSampleRatios implements Serializable { @TableField(value = "SAMPLE_ID") diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSpectrum.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSpectrum.java index ba2226d7..02d86a26 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSpectrum.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/entity/GardsSpectrum.java @@ -10,7 +10,7 @@ import java.io.Serializable; import java.util.Date; @Data -@TableName(value = "GARDS_SPECTRUM") +@TableName(value = "ORIGINAL.GARDS_SPECTRUM") public class GardsSpectrum implements Serializable { @TableField(value = "SAMPLE_ID") diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsAnalysesAutoMapper.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsAnalysesAutoMapper.java new file mode 100644 index 00000000..2ae15ffa --- /dev/null +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsAnalysesAutoMapper.java @@ -0,0 +1,7 @@ +package org.jeecg.modules.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.jeecg.modules.entity.GardsAnalysesAuto; + +public interface GardsAnalysesAutoMapper extends BaseMapper { +} diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsAnalysesManMapper.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsAnalysesManMapper.java new file mode 100644 index 00000000..fbcff385 --- /dev/null +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsAnalysesManMapper.java @@ -0,0 +1,7 @@ +package org.jeecg.modules.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.jeecg.modules.entity.GardsAnalysesMan; + +public interface GardsAnalysesManMapper extends BaseMapper { +} diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsAnalysesMapper.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsAnalysesMapper.java deleted file mode 100644 index b878d5c2..00000000 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsAnalysesMapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.jeecg.modules.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.jeecg.modules.entity.GardsAnalyses; - -public interface GardsAnalysesMapper extends BaseMapper { -} diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsSampleDataMapper.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsSampleDataWebMapper.java similarity index 64% rename from jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsSampleDataMapper.java rename to jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsSampleDataWebMapper.java index 35071cf0..2eef8b87 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsSampleDataMapper.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/mapper/GardsSampleDataWebMapper.java @@ -3,5 +3,5 @@ package org.jeecg.modules.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.jeecg.modules.base.entity.GardsSampleData; -public interface GardsSampleDataMapper extends BaseMapper { +public interface GardsSampleDataWebMapper extends BaseMapper { } diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IAutoService.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IAutoService.java index 3a103774..a47c80fb 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IAutoService.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IAutoService.java @@ -3,11 +3,11 @@ package org.jeecg.modules.service; import com.baomidou.mybatisplus.extension.service.IService; import org.jeecg.common.api.QueryRequest; import org.jeecg.common.api.vo.Result; -import org.jeecg.modules.entity.GardsAnalyses; +import org.jeecg.modules.entity.GardsAnalysesAuto; import java.util.Date; -public interface IAutoService extends IService { +public interface IAutoService extends IService { Result findAutoPage(QueryRequest queryRequest, Integer[] stationIds, Date startTime, Date endTime); diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IGardsSampleDataService.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IGardsSampleDataWebService.java similarity index 92% rename from jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IGardsSampleDataService.java rename to jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IGardsSampleDataWebService.java index 97eb326a..a9bc4c77 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IGardsSampleDataService.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IGardsSampleDataWebService.java @@ -9,7 +9,7 @@ import java.util.Date; import java.util.List; -public interface IGardsSampleDataService extends IService { +public interface IGardsSampleDataWebService extends IService { /** * 分页查询气溶胶相关数据 diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IMenuNameService.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IMenuNameService.java new file mode 100644 index 00000000..2e4bfde1 --- /dev/null +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IMenuNameService.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.service; + +import org.jeecg.modules.system.entity.GardsStations; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.stereotype.Component; +import org.springframework.web.bind.annotation.RequestMapping; + +import java.util.List; + +@Component +@FeignClient("jeecg-system") +public interface IMenuNameService { + + @RequestMapping("/sys/dict/findStationListByMenuName") + List findStationListByMenuName(String menuName); + +} diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IReviewedService.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IReviewedService.java index dcb3575e..d64d9b1c 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IReviewedService.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/IReviewedService.java @@ -3,11 +3,11 @@ package org.jeecg.modules.service; import com.baomidou.mybatisplus.extension.service.IService; import org.jeecg.common.api.QueryRequest; import org.jeecg.common.api.vo.Result; -import org.jeecg.modules.entity.GardsAnalyses; +import org.jeecg.modules.entity.GardsAnalysesMan; import java.util.Date; -public interface IReviewedService extends IService { +public interface IReviewedService extends IService { Result findReviewedPage(QueryRequest queryRequest, Integer[] stationIds, Date startTime, Date endTime); diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/ISysDictService.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/ISysDictService.java deleted file mode 100644 index e4b799b9..00000000 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/ISysDictService.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.jeecg.modules.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import org.jeecg.common.api.vo.Result; -import org.jeecg.modules.entity.SysDict; - -public interface ISysDictService extends IService { - - /** - * 根据系统类型查询对应的台站信息 - * @param menuName - * @return - */ - Result findList(String menuName); - -} diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/AutoServiceImpl.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/AutoServiceImpl.java index bf98c278..649f6294 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/AutoServiceImpl.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/AutoServiceImpl.java @@ -6,10 +6,10 @@ import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.jeecg.common.api.QueryRequest; import org.jeecg.common.api.vo.Result; -import org.jeecg.modules.entity.GardsAnalyses; -import org.jeecg.modules.mapper.GardsAnalysesMapper; +import org.jeecg.modules.entity.GardsAnalysesAuto; +import org.jeecg.modules.mapper.GardsAnalysesAutoMapper; import org.jeecg.modules.service.IAutoService; -import org.jeecg.modules.service.IGardsSampleDataService; +import org.jeecg.modules.service.IGardsSampleDataWebService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -18,20 +18,20 @@ import java.util.List; import java.util.stream.Collectors; @Service("autoService") -@DS("auo") -public class AutoServiceImpl extends ServiceImpl implements IAutoService { +@DS("ora") +public class AutoServiceImpl extends ServiceImpl implements IAutoService { @Autowired - private IGardsSampleDataService gardsSampleDataService; + private IGardsSampleDataWebService gardsSampleDataService; @Override public Result findAutoPage(QueryRequest queryRequest, Integer[] stationIds, Date startTime, Date endTime) { //查询自动处理后的 - LambdaQueryWrapper analysesQueryWrapper = new LambdaQueryWrapper<>(); - List gardsAnalyses = this.baseMapper.selectList(analysesQueryWrapper); + LambdaQueryWrapper analysesQueryWrapper = new LambdaQueryWrapper<>(); + List gardsAnalyses = this.baseMapper.selectList(analysesQueryWrapper); if (CollectionUtils.isNotEmpty(gardsAnalyses)){ //获取全部样品id - List sampleIds = gardsAnalyses.stream().map(GardsAnalyses::getSampleId).collect(Collectors.toList()); + List sampleIds = gardsAnalyses.stream().map(GardsAnalysesAuto::getSampleId).collect(Collectors.toList()); //查询全部样品基础数据 Result result = gardsSampleDataService.findPageBySampleIds(queryRequest, stationIds, startTime, endTime, sampleIds); return result; diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsMetDataServiceImpl.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsMetDataServiceImpl.java index 5cbdebfa..d8b264a8 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsMetDataServiceImpl.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsMetDataServiceImpl.java @@ -18,7 +18,7 @@ import java.util.Date; import java.util.Objects; @Service("gardsMetDataService") -@DS("ori") +@DS("ora") public class GardsMetDataServiceImpl extends ServiceImpl implements IGardsMetDataService { @Override diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSampleCertServiceImpl.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSampleCertServiceImpl.java index 27414116..1c3814b9 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSampleCertServiceImpl.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSampleCertServiceImpl.java @@ -19,7 +19,7 @@ import java.util.Map; import java.util.Objects; @Service("gardsSampleCertService") -@DS("ori") +@DS("ora") public class GardsSampleCertServiceImpl extends ServiceImpl implements IGardsSampleCertService { @Autowired diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSampleDataServiceImpl.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSampleDataWebServiceImpl.java similarity index 99% rename from jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSampleDataServiceImpl.java rename to jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSampleDataWebServiceImpl.java index cbd07463..17bcd491 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSampleDataServiceImpl.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSampleDataWebServiceImpl.java @@ -16,7 +16,7 @@ import org.jeecg.modules.base.entity.GardsSampleData; import org.jeecg.modules.entity.*; import org.jeecg.modules.entity.data.*; import org.jeecg.modules.mapper.*; -import org.jeecg.modules.service.IGardsSampleDataService; +import org.jeecg.modules.service.IGardsSampleDataWebService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; @@ -26,9 +26,9 @@ import java.text.ParseException; import java.util.*; import java.util.stream.Collectors; -@Service("gardsSampleDataService") -@DS("ori") -public class GardsSampleDataServiceImpl extends ServiceImpl implements IGardsSampleDataService { +@Service("gardsSampleDataWebService") +@DS("ora") +public class GardsSampleDataWebServiceImpl extends ServiceImpl implements IGardsSampleDataWebService { @Autowired private RedisUtil redisUtil; diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSohDataServiceImpl.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSohDataServiceImpl.java index ec159164..cb361fa0 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSohDataServiceImpl.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/GardsSohDataServiceImpl.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Objects; @Service("gardsSohDataService") -@DS("ori") +@DS("ora") public class GardsSohDataServiceImpl extends ServiceImpl implements IGardsSohDataService { @Autowired diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/ReviewedServiceImpl.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/ReviewedServiceImpl.java index a65066c7..d309f9aa 100644 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/ReviewedServiceImpl.java +++ b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/ReviewedServiceImpl.java @@ -6,9 +6,9 @@ import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.jeecg.common.api.QueryRequest; import org.jeecg.common.api.vo.Result; -import org.jeecg.modules.entity.GardsAnalyses; -import org.jeecg.modules.mapper.GardsAnalysesMapper; -import org.jeecg.modules.service.IGardsSampleDataService; +import org.jeecg.modules.entity.GardsAnalysesMan; +import org.jeecg.modules.mapper.GardsAnalysesManMapper; +import org.jeecg.modules.service.IGardsSampleDataWebService; import org.jeecg.modules.service.IReviewedService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -18,20 +18,20 @@ import java.util.List; import java.util.stream.Collectors; @Service("reviewedService") -@DS("man") -public class ReviewedServiceImpl extends ServiceImpl implements IReviewedService { +@DS("ora") +public class ReviewedServiceImpl extends ServiceImpl implements IReviewedService { @Autowired - private IGardsSampleDataService gardsSampleDataService; + private IGardsSampleDataWebService gardsSampleDataService; @Override public Result findReviewedPage(QueryRequest queryRequest, Integer[] stationIds, Date startTime, Date endTime) { //查询自动处理后的 - LambdaQueryWrapper analysesQueryWrapper = new LambdaQueryWrapper<>(); - List gardsAnalyses = this.baseMapper.selectList(analysesQueryWrapper); + LambdaQueryWrapper analysesQueryWrapper = new LambdaQueryWrapper<>(); + List gardsAnalyses = this.baseMapper.selectList(analysesQueryWrapper); if (CollectionUtils.isNotEmpty(gardsAnalyses)){ //获取全部样品id - List sampleIds = gardsAnalyses.stream().map(GardsAnalyses::getSampleId).collect(Collectors.toList()); + List sampleIds = gardsAnalyses.stream().map(GardsAnalysesMan::getSampleId).collect(Collectors.toList()); //查询全部样品基础数据 Result result = gardsSampleDataService.findPageBySampleIds(queryRequest, stationIds, startTime, endTime, sampleIds); return result; diff --git a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/SysDictServiceImpl.java b/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/SysDictServiceImpl.java deleted file mode 100644 index 626d1071..00000000 --- a/jeecg-module-web-statistics/src/main/java/org/jeecg/modules/service/impl/SysDictServiceImpl.java +++ /dev/null @@ -1,67 +0,0 @@ -package org.jeecg.modules.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.apache.commons.lang3.StringUtils; -import org.jeecg.common.api.vo.Result; -import org.jeecg.common.util.RedisUtil; -import org.jeecg.modules.entity.SysDict; -import org.jeecg.modules.entity.SysDictItem; -import org.jeecg.modules.mapper.SysDictItemMapper; -import org.jeecg.modules.mapper.SysDictMapper; -import org.jeecg.modules.service.ISysDictService; -import org.jeecg.modules.system.entity.GardsStations; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.*; -import java.util.stream.Collectors; - -@Service("sysDictService") -public class SysDictServiceImpl extends ServiceImpl implements ISysDictService { - - @Autowired - private RedisUtil redisUtil; - @Autowired - private SysDictMapper sysDictMapper; - @Autowired - private SysDictItemMapper sysDictItemMapper; - - @Override - public Result findList(String menuName) { - Result result = new Result(); - List gardsStationsList = new LinkedList<>(); - //获取台站信息 - HashMap stationInfoMap = (HashMap) redisUtil.get("stationInfoMap"); - List stationsList = stationInfoMap.values().stream().sorted(Comparator.comparing(GardsStations::getStationId)).collect(Collectors.toList()); - //如果传递的菜单名称不为空 则需要过滤出所需的台站信息 - if (StringUtils.isNotBlank(menuName)){ - //根据菜单名称查询出数据字典中对应的内容 - LambdaQueryWrapper dictQueryWrapper = new LambdaQueryWrapper<>(); - dictQueryWrapper.eq(SysDict::getDictCode, menuName); - SysDict sysDict = sysDictMapper.selectOne(dictQueryWrapper); - //如果字典内容不为空 - if (Objects.nonNull(sysDict)){ - LambdaQueryWrapper dictItemQueryWrapper = new LambdaQueryWrapper<>(); - dictItemQueryWrapper.eq(SysDictItem::getDictId, sysDict.getId()); - List dictItems = sysDictItemMapper.selectList(dictItemQueryWrapper); - List types = dictItems.stream().map(SysDictItem::getItemValue).collect(Collectors.toList()); - if (CollectionUtils.isNotEmpty(types)){ - //遍历过滤出和类型匹配的台站信息 存入新的数据集合中 - for (String type:types) { - gardsStationsList.addAll(stationsList.stream().filter(item-> StringUtils.isNotBlank(item.getType()) && item.getType().equals(type)).collect(Collectors.toList())); - } - } - }else { - gardsStationsList.addAll(stationsList); - } - }else { - gardsStationsList.addAll(stationsList); - } - result.setSuccess(true); - result.setResult(gardsStationsList); - return result; - } - -} diff --git a/jeecg-server-cloud/jeecg-auto-process-start/src/main/resources/application.yml b/jeecg-server-cloud/jeecg-auto-process-start/src/main/resources/application.yml index 9eb26427..c74f45bc 100644 --- a/jeecg-server-cloud/jeecg-auto-process-start/src/main/resources/application.yml +++ b/jeecg-server-cloud/jeecg-auto-process-start/src/main/resources/application.yml @@ -15,5 +15,5 @@ spring: config: import: - optional:nacos:jeecg.yaml - - optional:nacos:jeecg-auto-process-@profile.name@.yaml + - optional:nacos:jeecg-@profile.name@.yaml