|
|
@ -129,14 +129,12 @@ public class A8kOptVerification { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static class OptScanReport { |
|
|
|
public A8kOptType optType; |
|
|
|
public A8kScanCurve optScanCurve; |
|
|
|
public OptScanResult optScanResult; |
|
|
|
public ProjBuildinInfo projInfo; |
|
|
|
public Integer subProjIndex; |
|
|
|
public Integer subProjIndex; |
|
|
|
} |
|
|
|
|
|
|
|
List<OptScanReport> optScanReports = new ArrayList<>(); |
|
|
@ -170,7 +168,7 @@ public class A8kOptVerification { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String doOptScan() throws AppException, IOException { |
|
|
|
public String doOptScan(Boolean autoAmpl) throws AppException, IOException { |
|
|
|
// fileMgrService.clearOptReport(); |
|
|
|
optScanReports.clear(); |
|
|
|
var projInfo = projInfoMgrService.getProjBuildInInfoByMountedCard(); |
|
|
@ -180,7 +178,7 @@ public class A8kOptVerification { |
|
|
|
for (int i = 0; i < projInfo.optcfg.size(); i++) { |
|
|
|
OptScanResult scanResult = getOptScanResult(projInfo.optcfg.get(i).optType); |
|
|
|
if (scanResult == null) { |
|
|
|
scanResult = optScanModuleCtrlService.optScan(projInfo, i); |
|
|
|
scanResult = optScanModuleCtrlService.optScan(projInfo, i, autoAmpl); |
|
|
|
} |
|
|
|
generateOptReport(projInfo, i, scanResult); |
|
|
|
} |
|
|
@ -245,7 +243,7 @@ public class A8kOptVerification { |
|
|
|
public FileToBeDownload getTOptReport() throws AppException, IOException { |
|
|
|
for (var report : optScanReports) { |
|
|
|
if (report.optType.equals(A8kOptType.TOPT)) { |
|
|
|
return new FileToBeDownload(fileMgrService.storageOptReport(report.projInfo.projName, report.projInfo.projId, report.optScanResult)); |
|
|
|
return new FileToBeDownload(fileMgrService.storageOptReport(report.projInfo.projName, report.projInfo.projId, report.optScanResult)); |
|
|
|
} |
|
|
|
} |
|
|
|
throw AppException.ofSimplePrompt("当前项目没有T光学报告"); |
|
|
@ -254,7 +252,7 @@ public class A8kOptVerification { |
|
|
|
public FileToBeDownload getFOptReport() throws AppException, IOException { |
|
|
|
for (var report : optScanReports) { |
|
|
|
if (report.optType.equals(A8kOptType.FOPT)) { |
|
|
|
return new FileToBeDownload(fileMgrService.storageOptReport(report.projInfo.projName, report.projInfo.projId, report.optScanResult)); |
|
|
|
return new FileToBeDownload(fileMgrService.storageOptReport(report.projInfo.projName, report.projInfo.projId, report.optScanResult)); |
|
|
|
} |
|
|
|
} |
|
|
|
throw AppException.ofSimplePrompt("当前项目没有F光学报告"); |
|
|
|