feat: 优化失信记录实体和导入功能
- 调整CreditBreachOfTrust实体中url字段的位置 - 为法院公告导入增加多sheet文件兼容性支持 - 为开庭公告导入增加多sheet文件兼容性支持 - 导入时优先查找指定名称的sheet,如"法院公告"或"开庭公告" - 当指定sheet不存在时,默认使用第0个sheet进行导入
This commit is contained in:
@@ -145,8 +145,10 @@ public class CreditCourtAnnouncementController extends BaseController {
|
||||
int successCount = 0;
|
||||
|
||||
try {
|
||||
// 兼容多 sheet 文件:优先定位“法院公告”sheet,否则默认第 0 个。
|
||||
int sheetIndex = ExcelImportSupport.findSheetIndex(file, "法院公告", 0);
|
||||
ExcelImportSupport.ImportResult<CreditCourtAnnouncementImportParam> importResult = ExcelImportSupport.read(
|
||||
file, CreditCourtAnnouncementImportParam.class, this::isEmptyImportRow);
|
||||
file, CreditCourtAnnouncementImportParam.class, this::isEmptyImportRow, sheetIndex);
|
||||
List<CreditCourtAnnouncementImportParam> list = importResult.getData();
|
||||
int usedTitleRows = importResult.getTitleRows();
|
||||
int usedHeadRows = importResult.getHeadRows();
|
||||
|
||||
@@ -145,8 +145,10 @@ public class CreditCourtSessionController extends BaseController {
|
||||
int successCount = 0;
|
||||
|
||||
try {
|
||||
// 兼容多 sheet 文件:优先定位“开庭公告”sheet,否则默认第 0 个。
|
||||
int sheetIndex = ExcelImportSupport.findSheetIndex(file, "开庭公告", 0);
|
||||
ExcelImportSupport.ImportResult<CreditCourtSessionImportParam> importResult = ExcelImportSupport.read(
|
||||
file, CreditCourtSessionImportParam.class, this::isEmptyImportRow);
|
||||
file, CreditCourtSessionImportParam.class, this::isEmptyImportRow, sheetIndex);
|
||||
List<CreditCourtSessionImportParam> list = importResult.getData();
|
||||
int usedTitleRows = importResult.getTitleRows();
|
||||
int usedHeadRows = importResult.getHeadRows();
|
||||
|
||||
@@ -33,9 +33,6 @@ public class CreditBreachOfTrust implements Serializable {
|
||||
@Schema(description = "案号")
|
||||
private String caseNumber;
|
||||
|
||||
@Schema(description = "链接地址")
|
||||
private String url;
|
||||
|
||||
@Schema(description = "失信被执行人")
|
||||
private String plaintiffAppellant;
|
||||
|
||||
@@ -58,6 +55,9 @@ public class CreditBreachOfTrust implements Serializable {
|
||||
@Schema(description = "数据类型")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "链接地址")
|
||||
private String url;
|
||||
|
||||
@Schema(description = "其他当事人/第三人")
|
||||
private String otherPartiesThirdParty;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user