|
@@ -1895,11 +1895,16 @@ public class TrialSelfInspectionRecordServiceImpl extends BaseServiceImpl<TrialS
|
|
|
|
|
|
//自检pdf
|
|
|
List<TrialSelfInspectionRecord> trialSelfInspectionRecords = baseMapper.selectList(Wrappers.<TrialSelfInspectionRecord>lambdaQuery()
|
|
|
- .select(TrialSelfInspectionRecord::getPdfUrl)
|
|
|
+ .select(TrialSelfInspectionRecord::getPdfUrl,TrialSelfInspectionRecord::getContractId,TrialSelfInspectionRecord::getId,TrialSelfInspectionRecord::getType)
|
|
|
.in(TrialSelfInspectionRecord::getId, Func.toLongList(dto.getIds())));
|
|
|
- List<String> pdfURLs = trialSelfInspectionRecords.stream().map(TrialSelfInspectionRecord::getPdfUrl).collect(Collectors.toList());
|
|
|
- pdfList.addAll(pdfURLs);
|
|
|
-
|
|
|
+ if(trialSelfInspectionRecords.size()>0){
|
|
|
+ for (TrialSelfInspectionRecord record : trialSelfInspectionRecords) {
|
|
|
+ String pdf = this.getMergePdfToTrialNew(record.getContractId(), record.getId(), record.getType());
|
|
|
+ pdfList.add(pdf);
|
|
|
+ }
|
|
|
+ }
|
|
|
+// List<String> pdfURLs = trialSelfInspectionRecords.stream().map(TrialSelfInspectionRecord::getPdfUrl).collect(Collectors.toList());
|
|
|
+// pdfList.addAll(pdfURLs);
|
|
|
//------第三方、外委------
|
|
|
} else if (dto.getType().equals(2) || dto.getType().equals(3)) {
|
|
|
if (informationQuery.getPdfTrialUrl() != null) {
|