Przeglądaj źródła

王耀栋 工作模块 导出pdf

zhaoyan 3 lat temu
rodzic
commit
79dca69bf9

+ 4 - 3
simulation-resource-server/src/main/java/com/css/simulation/resource/project/impl/SimulationProjectServiceImpl.java

@@ -2143,9 +2143,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
                     if(contains){
                         continue;
                     }
-
                     PdfPCell pdfPCell = new PdfPCell(new Paragraph(strings[j],defaultFont(font)));
-                    pdfPCell.setRowspan(num);
                     //是否要合并
                     for(CombineCoordVo v : combineCoordList){
                         if(coord.equals(v.getCoord())){
@@ -2155,9 +2153,12 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
                         }
                     }
                     if(b){
-                        pdfPTable2.addCell(pdfPCell);
+                        pdfPCell.setRowspan(num);
                     }
 
+                    pdfPTable2.addCell(pdfPCell);
+
+
                 }
             }