diff --git a/src/main/java/com/gxwebsoft/credit/controller/CreditBankruptcyController.java b/src/main/java/com/gxwebsoft/credit/controller/CreditBankruptcyController.java index 6a243fe..a1f38c7 100644 --- a/src/main/java/com/gxwebsoft/credit/controller/CreditBankruptcyController.java +++ b/src/main/java/com/gxwebsoft/credit/controller/CreditBankruptcyController.java @@ -195,8 +195,16 @@ public class CreditBankruptcyController extends BaseController { Set touchedCompanyIds = new HashSet<>(); try { - ExcelImportSupport.ImportResult importResult = ExcelImportSupport.readAnySheet( - file, CreditBankruptcyImportParam.class, this::isEmptyImportRow); + // Prefer importing from the explicit tab name "破产重整" when present. + // This avoids accidentally importing from other sheets (e.g. "历史破产重整") in multi-sheet workbooks. + int sheetIndex = ExcelImportSupport.findSheetIndex(file, "破产重整"); + ExcelImportSupport.ImportResult importResult; + if (sheetIndex >= 0) { + importResult = ExcelImportSupport.read(file, CreditBankruptcyImportParam.class, this::isEmptyImportRow, sheetIndex); + } else { + // Backward compatible: try any sheet for older templates without the expected tab name. + importResult = ExcelImportSupport.readAnySheet(file, CreditBankruptcyImportParam.class, this::isEmptyImportRow); + } List list = importResult.getData(); int usedTitleRows = importResult.getTitleRows(); int usedHeadRows = importResult.getHeadRows(); diff --git a/websoft-modules.log.2026-03-02.0.gz b/websoft-modules.log.2026-03-02.0.gz new file mode 100644 index 0000000..c12dc03 Binary files /dev/null and b/websoft-modules.log.2026-03-02.0.gz differ