人工交互模块初始化数据接口改为无返回值

This commit is contained in:
qiaoqinzheng 2024-03-11 09:16:38 +08:00
parent fdd3838e9b
commit cdd9ef1a30
6 changed files with 12 additions and 14 deletions

View File

@ -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);
}

View File

@ -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")

View File

@ -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);

View File

@ -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);

View File

@ -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

View File

@ -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);
}
}