ZeroLiYi преди 1 година
родител
ревизия
6594d83805

+ 1 - 1
src/main/java/com/chinaitop/depot/storage/mapper/GrainSituationCardMapper.xml

@@ -470,7 +470,7 @@
470 470
   <select id="selectByGrainsituationId"  resultMap="BaseResultMap1">
471 471
     SELECT
472 472
       cc.id,
473
-           cc.createdate,
473
+      cc.createdate,
474 474
       cc.updatedate,
475 475
       cc.fill_org_id,
476 476
       cc.keep_org_id,

+ 2 - 12
src/main/java/com/chinaitop/depot/storage/utils/ExcelExporter.java

@@ -27,10 +27,7 @@ public class ExcelExporter {
27 27
             int rowIndex;
28 28
             rowIndex= 1;
29 29
             // 设置主标题并居中
30
-            Row titleRow = sheet.createRow(rowIndex++);
31
-            Cell titleCell = titleRow.createCell(0);
32
-            titleCell.setCellValue("专卡信息");
33
-            titleCell.setCellStyle(createCenteredCellStyle(workbook));
30
+
34 31
             Row headerRow = sheet.createRow(0);
35 32
             CellStyle headerCellStyle = workbook.createCellStyle();
36 33
             headerCellStyle.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());
@@ -106,10 +103,6 @@ public class ExcelExporter {
106 103
                 }
107 104
             }
108 105
 
109
-            rowIndex++; // 新增一行用于标题
110
-            titleCell = sheet.createRow(rowIndex).createCell(0);
111
-            titleCell.setCellValue("货位变更记录");
112
-            titleCell.setCellStyle(createCenteredCellStyle(workbook)); // 同样应用居中样式
113 106
             // 处理 GrainSituationCardWarehouseRecord 数据之前的表头
114 107
             rowIndex++; // 新增一行作为记录变更的表头行
115 108
             columnIndex = 0; // 重置列索引
@@ -140,10 +133,7 @@ public class ExcelExporter {
140 133
                     // 根据需要继续添加其它字段的处理逻辑
141 134
                 }
142 135
             }
143
-            rowIndex++; // 新增一行用于标题
144
-            titleCell = sheet.createRow(rowIndex).createCell(0);
145
-            titleCell.setCellValue("质量检验信息");
146
-            titleCell.setCellStyle(createCenteredCellStyle(workbook)); // 居中样式应用于质量检验标题
136
+
147 137
 
148 138
 
149 139
             rowIndex++; // 新增一行作为质量检验的表头行