Commit d0011d37 by zhouhaibao

fix(excel): 修复Excel导入服务中的日志记录问题

- 在清除旧数据行过程中添加详细的行号日志记录
- 修复步骤3/5中缺少的日志信息显示
- 确保清除旧数据行样式时的日志输出正确
- 优化日志信息以提高调试过程的可追踪性
1 parent c6f021b5
......@@ -1577,7 +1577,10 @@ public class StoreExcelImportService {
log.info("[步骤3/5] 清除旧数据行:从第{}行到第{}行", dataStartRow, lastRowNumBefore);
for (int i = lastRowNumBefore; i >= dataStartRow; i--) {
Row rowToRemove = sheet.getRow(i);
log.info("[步骤3/5] 清除旧数据行:第{}行", i);
if(i==dataStartRow){
log.info("[步骤3/5] 清除旧数据行样式:第{}行", i);
// 1. 清除该行所有单元格的样式
// 注意:getLastCellNum() 返回的是列数索引+1,所以循环条件要注意
int lastCellNum = rowToRemove.getLastCellNum();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!