diff --git a/main/java/shkd/repc/recos/formplugin/RecosMeasurecosFormPlugin.java b/main/java/shkd/repc/recos/formplugin/RecosMeasurecosFormPlugin.java index 45dfe68..3f517f1 100644 --- a/main/java/shkd/repc/recos/formplugin/RecosMeasurecosFormPlugin.java +++ b/main/java/shkd/repc/recos/formplugin/RecosMeasurecosFormPlugin.java @@ -236,7 +236,7 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl headRow1.setRowStyle(titleStyle1); XSSFCell headCell1 = headRow1.createCell(0); headCell1.setCellValue("项目名称:"); - CellRangeAddress titleCellAddresses1 = new CellRangeAddress(1, 1, 1,6); + CellRangeAddress titleCellAddresses1 = new CellRangeAddress(1, 1, 1,6);//合并单元格 sheet.addMergedRegion(titleCellAddresses1); XSSFCell headCell2 = headRow1.createCell(7); @@ -745,6 +745,8 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl } } } + //设置合并 + sheet.protectSheet("password"); }