Commit 1dd21582 by MMF

MMF 2026-03-26 新增现场抽取情况查看、导出模块

parent db396a76
...@@ -381,12 +381,6 @@ public class ZqczXmRyLsjlServiceImpl implements ZqczXmRyLsjlService { ...@@ -381,12 +381,6 @@ public class ZqczXmRyLsjlServiceImpl implements ZqczXmRyLsjlService {
Row tableHeaderRow = sheet.createRow(2); // 创建第三行 Row tableHeaderRow = sheet.createRow(2); // 创建第三行
tableHeaderRow.setHeightInPoints(43); // 设置行高 tableHeaderRow.setHeightInPoints(43); // 设置行高
CellStyle redStyle = workbook.createCellStyle();
redStyle.cloneStyleFrom(tableHeaderStyle);
redStyle.setAlignment(HorizontalAlignment.CENTER);
redStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);
redStyle.setFillForegroundColor(IndexedColors.RED1.getIndex());
// 循环创建每一列表头 // 循环创建每一列表头
for (int i = 0; i < tableTitle.size(); i++) { for (int i = 0; i < tableTitle.size(); i++) {
// 在当前行创建第 i 列(i 从 0 开始) // 在当前行创建第 i 列(i 从 0 开始)
...@@ -396,7 +390,7 @@ public class ZqczXmRyLsjlServiceImpl implements ZqczXmRyLsjlService { ...@@ -396,7 +390,7 @@ public class ZqczXmRyLsjlServiceImpl implements ZqczXmRyLsjlService {
cell.setCellValue(tableTitle.get(i)); cell.setCellValue(tableTitle.get(i));
// 将表头样式应用到该单元格 // 将表头样式应用到该单元格
cell.setCellStyle(i == 0 ? redStyle : tableHeaderStyle); cell.setCellStyle(tableHeaderStyle);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment