人工交互模块初始化数据接口改为无返回值
This commit is contained in:
parent
fdd3838e9b
commit
cdd9ef1a30
|
@ -29,8 +29,8 @@ public class GammaController {
|
|||
|
||||
@GetMapping("initValue")
|
||||
@ApiOperation(value = "初始化gamma数据", notes = "初始化gamma数据")
|
||||
public Result initValue(Integer sampleId, String dbName, String analyst, String fileName, HttpServletRequest request) {
|
||||
return gammaService.initValue(sampleId, dbName, analyst, fileName, request);
|
||||
public void initValue(Integer sampleId, String dbName, String analyst, String fileName, HttpServletRequest request) {
|
||||
gammaService.initValue(sampleId, dbName, analyst, fileName, request);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@ public class SpectrumAnalysesController {
|
|||
|
||||
@GetMapping("initValue")
|
||||
@ApiOperation(value = "初始化数据", notes = "初始化数据")
|
||||
public Result initValue(String dbName, Integer sampleId, String analyst, String sampleFileName, String gasFileName, String detFileName, String qcFileName, HttpServletRequest request) {
|
||||
return spectrumAnalysisService.initValue(dbName, sampleId, analyst, sampleFileName, gasFileName, detFileName, qcFileName, request);
|
||||
public void initValue(String dbName, Integer sampleId, String analyst, String sampleFileName, String gasFileName, String detFileName, String qcFileName, HttpServletRequest request) {
|
||||
spectrumAnalysisService.initValue(dbName, sampleId, analyst, sampleFileName, gasFileName, detFileName, qcFileName, request);
|
||||
}
|
||||
|
||||
@GetMapping("getDBSearchList")
|
||||
|
|
|
@ -15,7 +15,7 @@ import java.util.List;
|
|||
|
||||
public interface IGammaService{
|
||||
|
||||
Result initValue(Integer sampleId, String dbName, String analyst, String fileName, HttpServletRequest request);
|
||||
void initValue(Integer sampleId, String dbName, String analyst, String fileName, HttpServletRequest request);
|
||||
|
||||
Result testFun(String fileName, HttpServletRequest request);
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ import java.util.List;
|
|||
|
||||
public interface ISpectrumAnalysisService {
|
||||
|
||||
Result initValue(String dbName, Integer sampleId, String analyst, String sampleFileName, String gasFileName, String detFileName, String qcFileName, HttpServletRequest request);
|
||||
void initValue(String dbName, Integer sampleId, String analyst, String sampleFileName, String gasFileName, String detFileName, String qcFileName, HttpServletRequest request);
|
||||
|
||||
Result getDBSearchList(HttpServletRequest request, boolean AllUsers, String sampleType);
|
||||
|
||||
|
|
|
@ -156,14 +156,12 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
|
|||
private IDataService dataService;
|
||||
|
||||
@Override
|
||||
public Result initValue(Integer sampleId, String dbName, String analyst, String samfileName, HttpServletRequest request) {
|
||||
Result result = new Result();
|
||||
public void initValue(Integer sampleId, String dbName, String analyst, String samfileName, HttpServletRequest request) {
|
||||
if (Objects.nonNull(sampleId) && StringUtils.isNotBlank(dbName)) {
|
||||
result = this.gammaByDB(dbName, sampleId, analyst, request);
|
||||
gammaByDB(dbName, sampleId, analyst, request);
|
||||
} else {
|
||||
result = this.gammaByFile(samfileName, request);
|
||||
gammaByFile(samfileName, request);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -125,11 +125,11 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
|
|||
|
||||
|
||||
@Override
|
||||
public Result initValue(String dbName, Integer sampleId, String analyst, String sampleFileName, String gasFileName, String detFileName, String qcFileName, HttpServletRequest request) {
|
||||
public void initValue(String dbName, Integer sampleId, String analyst, String sampleFileName, String gasFileName, String detFileName, String qcFileName, HttpServletRequest request) {
|
||||
if (StringUtils.isNotBlank(dbName) && Objects.nonNull(sampleId)) {
|
||||
return getDBSpectrumChart(dbName, sampleId, analyst, request);
|
||||
getDBSpectrumChart(dbName, sampleId, analyst, request);
|
||||
} else {
|
||||
return getFileSpectrumChart(sampleFileName, gasFileName, detFileName, qcFileName, request);
|
||||
getFileSpectrumChart(sampleFileName, gasFileName, detFileName, qcFileName, request);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user