|
@@ -54,8 +54,7 @@ public class TrialCyAccessoriesServiceImpl extends ServiceImpl<TrialCyAccessorie
|
|
|
|
|
|
baseMapper.clearTrialAssociation(nodeId, recordId);
|
|
|
//重新生成pdf
|
|
|
- List<String> listOne = baseMapper.selectFilePdfList(nodeId, 11);
|
|
|
- List<String> listTwo = baseMapper.selectFilePdfList(nodeId, 11, 12);
|
|
|
+ List<Long> listOne = baseMapper.selectFilePdfList(nodeId, 11,12,13);
|
|
|
|
|
|
InformationQuery informationQuery = informationQueryService.getBaseMapper().selectList(Wrappers.<InformationQuery>lambdaQuery()
|
|
|
.eq(InformationQuery::getWbsId, nodeId)
|
|
@@ -66,25 +65,10 @@ public class TrialCyAccessoriesServiceImpl extends ServiceImpl<TrialCyAccessorie
|
|
|
List<String> pdfList = new ArrayList<>();
|
|
|
//成渝自检
|
|
|
if (CollectionUtil.isNotEmpty(listOne)) {
|
|
|
- List<TrialCyFinishTestReport> trialCyFinishTestReports = trialCyFinishTestReportService.getBaseMapper().selectList(Wrappers.<TrialCyFinishTestReport>lambdaQuery()
|
|
|
- .in(TrialCyFinishTestReport::getTaskId, listOne));
|
|
|
- trialCyFinishTestReports.forEach(f -> {
|
|
|
- if (StringUtils.isNotBlank(f.getAssembleFile())) {
|
|
|
- pdfList.add(f.getAssembleFile());
|
|
|
- }
|
|
|
- });
|
|
|
+ List<String> pdfFiles = trialCyFinishTestReportService.selectViewPdfList(listOne);
|
|
|
+ pdfList.addAll(pdfFiles);
|
|
|
}
|
|
|
|
|
|
- //外委-第三方
|
|
|
- if (CollectionUtil.isNotEmpty(listOne)) {
|
|
|
- List<TrialCyThirdReport> trialCyThirdReports = trialCyThirdReportService.getBaseMapper().selectList(Wrappers.<TrialCyThirdReport>lambdaQuery()
|
|
|
- .in(TrialCyThirdReport::getId, listTwo));
|
|
|
- trialCyThirdReports.forEach(f -> {
|
|
|
- if (StringUtils.isNotBlank(f.getAssembleFile())) {
|
|
|
- pdfList.add(f.getAssembleFile());
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
|
|
|
String pdfTrialUrl = informationQuery.getPdfTrialUrl();
|
|
|
//删除之前的文件
|