核素信息接口添加筛选条件
This commit is contained in:
parent
98a5d1d78d
commit
b1d3a0a09d
|
|
@ -135,7 +135,7 @@ public class DataAnalysisController {
|
||||||
public Result findStationList(String systemType) {
|
public Result findStationList(String systemType) {
|
||||||
Result result = new Result();
|
Result result = new Result();
|
||||||
try {
|
try {
|
||||||
List<GardsStations> gardsStations = sampleStatAnalysisService.findStationListByMenuName();
|
List<GardsStations> gardsStations = sampleStatAnalysisService.findStationListByMenuName(systemType);
|
||||||
result.setCode(200);
|
result.setCode(200);
|
||||||
result.setSuccess(true);
|
result.setSuccess(true);
|
||||||
result.setResult(gardsStations);
|
result.setResult(gardsStations);
|
||||||
|
|
@ -149,7 +149,7 @@ public class DataAnalysisController {
|
||||||
public Result findNuclideList(String systemType) {
|
public Result findNuclideList(String systemType) {
|
||||||
Result result = new Result();
|
Result result = new Result();
|
||||||
try {
|
try {
|
||||||
List<SysDefaultNuclide> defaultNuclides = sampleStatAnalysisService.findNuclideList();
|
List<SysDefaultNuclide> defaultNuclides = sampleStatAnalysisService.findNuclideList(systemType);
|
||||||
result.setCode(200);
|
result.setCode(200);
|
||||||
result.setSuccess(true);
|
result.setSuccess(true);
|
||||||
result.setResult(defaultNuclides);
|
result.setResult(defaultNuclides);
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
package org.jeecg.entity;
|
||||||
|
|
||||||
|
public enum SystemType {
|
||||||
|
/**
|
||||||
|
* 颗粒物
|
||||||
|
*/
|
||||||
|
PARTICULATE("P"),
|
||||||
|
/**
|
||||||
|
* β-γ
|
||||||
|
*/
|
||||||
|
BETA("B"),
|
||||||
|
/**
|
||||||
|
* γ
|
||||||
|
*/
|
||||||
|
GAMMA("G");
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
SystemType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType(){
|
||||||
|
return this.type;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -27,7 +27,7 @@ public interface ISampleStatAnalysisService extends IService<GardsSampleData> {
|
||||||
Result getNuclideActivityConcAnalyze(String sampleType, Integer[] stationIds, String nuclideName, Integer dataSource, Date startDate, Date endDate);
|
Result getNuclideActivityConcAnalyze(String sampleType, Integer[] stationIds, String nuclideName, Integer dataSource, Date startDate, Date endDate);
|
||||||
|
|
||||||
|
|
||||||
List<GardsStations> findStationListByMenuName();
|
List<GardsStations> findStationListByMenuName(String systemType);
|
||||||
List<SysDefaultNuclide> findNuclideList();
|
List<SysDefaultNuclide> findNuclideList(String systemType);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -436,7 +436,7 @@ public class SampleStatAnalysisService extends ServiceImpl<GardsSampleStatAnalys
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<GardsStations> findStationListByMenuName() {
|
public List<GardsStations> findStationListByMenuName(String systemType) {
|
||||||
List<GardsStations> gardsStations = new LinkedList<>();
|
List<GardsStations> gardsStations = new LinkedList<>();
|
||||||
//获取台站信息
|
//获取台站信息
|
||||||
gardsStations = this.baseMapper.findStationListByMenuName();
|
gardsStations = this.baseMapper.findStationListByMenuName();
|
||||||
|
|
@ -445,10 +445,17 @@ public class SampleStatAnalysisService extends ServiceImpl<GardsSampleStatAnalys
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@DS("master")
|
@DS("master")
|
||||||
public List<SysDefaultNuclide> findNuclideList() {
|
public List<SysDefaultNuclide> findNuclideList(String systemType) {
|
||||||
|
|
||||||
LambdaQueryWrapper<SysDefaultNuclide> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<SysDefaultNuclide> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
queryWrapper.eq(SysDefaultNuclide::getUseType, 4);
|
queryWrapper.eq(SysDefaultNuclide::getUseType, 4);
|
||||||
|
if (systemType.equals("B")) {
|
||||||
|
queryWrapper.eq(SysDefaultNuclide::getNuclideType, SystemType.BETA.getType());
|
||||||
|
} else if (systemType.equals("G")) {
|
||||||
|
queryWrapper.eq(SysDefaultNuclide::getNuclideType, SystemType.GAMMA.getType());
|
||||||
|
} else if (systemType.equals("P")) {
|
||||||
|
queryWrapper.eq(SysDefaultNuclide::getNuclideType, SystemType.PARTICULATE.getType());
|
||||||
|
}
|
||||||
List<SysDefaultNuclide> defaultNuclides = defaultNuclideMapper.selectList(queryWrapper);
|
List<SysDefaultNuclide> defaultNuclides = defaultNuclideMapper.selectList(queryWrapper);
|
||||||
return defaultNuclides;
|
return defaultNuclides;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user