@@ -122,7 +122,7 @@ public class ExcelTabClientImpl implements ExcelTabClient {
if (isBatchSave == 0) {
//------单表PDF保存------
Integer type1 = Integer.parseInt(table.getString("type"));
- TableInfo tableInfo = tableInfoList.stream().findAny().orElse(null);
+ TableInfo tableInfo = tableInfoList.stream().filter(t -> t.getPkeyId().equals(tabIds)).findAny().orElse(null);
if (tableInfo != null && tabIds.contains(tableInfo.getPkeyId())) {
String bussPDFTrial = excelTabService.getBussPDFTrial(Long.valueOf(tableInfo.getPkeyId()), contractId, id, 0, 0, dto);
if (StringUtils.isNotEmpty(bussPDFTrial)) {