Commit 95710ec2 by zhouhaibao

feat(excel): 添加合并单元格值填充功能

- 在单店模式处理中添加合并单元格值填充
- 在导入服务开始时清除合并单元格处理器状态
- 确保Excel导入过程中合并单元格数据正确处理
1 parent 618ac34a
......@@ -186,6 +186,7 @@ public class CreateBusinessApproveExcelListener extends AnalysisEventListener<Ob
private void processSingleStoreMode(SingleStoreExcelDTO data, Integer rowIndex) {
try {
mergedCellHandler.fillMergedCellValues(data);
StoreWithProductsDTO storeDTO = storeMap.get(merchantName);
if (storeDTO == null) {
......
......@@ -151,6 +151,7 @@ public class StoreApproveService {
CreateBusinessApproveImportExcelContext context = new CreateBusinessApproveImportExcelContext();
try (InputStream inputStream = new ByteArrayInputStream(file.getContent())) {
mergedCellHandler.clear();
CreateBusinessApproveExcelListener listener;
if (isSingleStoreMode) {
listener = new CreateBusinessApproveExcelListener(context, isSingleStoreMode,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!