huangtf 2 năm trước cách đây
mục cha
commit
4e05b8bcaa

+ 9 - 2
blade-service/blade-archive/src/main/java/org/springblade/archive/service/impl/ArchiveAutoPdfServiceImpl.java

@@ -100,11 +100,11 @@ public class ArchiveAutoPdfServiceImpl implements IArchiveAutoPdfService {
 
         DataVO dataVO = FormulaUtil.convertCellToIndex("C2");
         String key =  "1__"+ dataVO.getY() + "_" + dataVO.getX();
-        DataInfo.put(key,"档号123456");
+        DataInfo.put(key,"档号12345688888888888888888888888888888888888888888888888888888888888");
 
         DataVO dataVO1 = FormulaUtil.convertCellToIndex("A9");
         String key1 =  "2__"+ dataVO1.getY() + "_" + dataVO1.getX();
-        DataInfo.put(key1,"hahahahaa");
+        DataInfo.put(key1,"hahahahaa9999999999999999999999999999999999999999999999999999999999999");
         try {
             String url = getBussPdfInfo(pkeyId.toString(),DataInfo,excelUrl,file_path,null,null);
         } catch (Exception e) {
@@ -565,6 +565,13 @@ public class ArchiveAutoPdfServiceImpl implements IArchiveAutoPdfService {
                         if (row != null) {
                             Cell cell = row.getCell(x1 );
                             if (cell != null || ObjectUtils.isNotEmpty(cell)) {
+//                                boolean bflag = true;
+//                                if (bflag) {
+//                                    CellStyle newStyle = workbook.createCellStyle();//创建单元格样式
+//                                    newStyle.cloneStyleFrom(cell.getCellStyle());
+//                                    newStyle.setWrapText(true);
+//                                    cell.setCellStyle(newStyle);
+//                                }
                                 cell.setCellValue(myData);
                             }
                         }