|
@@ -51,22 +51,26 @@ public class PDAnnuallyReportParser extends PDQuarterlyReportParser<AnnuallyRepo
|
|
this.fundInfoTables.add(table);
|
|
this.fundInfoTables.add(table);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+ // 用表格的第一列的数据判断是否主要财务指标数据
|
|
|
|
+ List<String> texts = this.getTableColTexts(table, 0);
|
|
|
|
+ if (CollUtil.containsAny(texts, FINANCIAL_INDICATORS_COLUMN_NAMES)) {
|
|
|
|
+ this.financialIndicatorsTables.add(table);
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
int colCount = table.getColCount();
|
|
int colCount = table.getColCount();
|
|
if (colCount == 2) {
|
|
if (colCount == 2) {
|
|
// 用表格的第一列的数据判断是否份额变动记录
|
|
// 用表格的第一列的数据判断是否份额变动记录
|
|
- List<String> texts = this.getTableColTexts(table, 0);
|
|
|
|
if (CollUtil.containsAny(texts, SHARE_CHANGE_COLUMN_NAMES)) {
|
|
if (CollUtil.containsAny(texts, SHARE_CHANGE_COLUMN_NAMES)) {
|
|
this.shareChangeTables.add(table);
|
|
this.shareChangeTables.add(table);
|
|
}
|
|
}
|
|
} else if (colCount == 4) {
|
|
} else if (colCount == 4) {
|
|
// 用表格的第二列的数据判断是否行业配置数据(内地)
|
|
// 用表格的第二列的数据判断是否行业配置数据(内地)
|
|
- List<String> texts = this.getTableColTexts(table, 1);
|
|
|
|
|
|
+ texts = this.getTableColTexts(table, 1);
|
|
if (CollUtil.containsAny(texts, INDUSTRY_COLUMN_NAMES)) {
|
|
if (CollUtil.containsAny(texts, INDUSTRY_COLUMN_NAMES)) {
|
|
this.investmentIndustryTables.add(table);
|
|
this.investmentIndustryTables.add(table);
|
|
}
|
|
}
|
|
} else if (colCount == 3) {
|
|
} else if (colCount == 3) {
|
|
// 用表格的第一列的数据判断是否行业配置数据(港股通)
|
|
// 用表格的第一列的数据判断是否行业配置数据(港股通)
|
|
- List<String> texts = this.getTableColTexts(table, 0);
|
|
|
|
if (CollUtil.containsAny(texts, INDUSTRY_COLUMN_NAMES)) {
|
|
if (CollUtil.containsAny(texts, INDUSTRY_COLUMN_NAMES)) {
|
|
this.investmentIndustryTables.add(table);
|
|
this.investmentIndustryTables.add(table);
|
|
continue;
|
|
continue;
|
|
@@ -76,12 +80,6 @@ public class PDAnnuallyReportParser extends PDQuarterlyReportParser<AnnuallyRepo
|
|
if (CollUtil.containsAny(texts, ListUtil.of("股权投资", "股票投资", "债券投资", "另类投资", "其他资产", "其他融资总额"))) {
|
|
if (CollUtil.containsAny(texts, ListUtil.of("股权投资", "股票投资", "债券投资", "另类投资", "其他资产", "其他融资总额"))) {
|
|
this.assetAllocationTables.add(table);
|
|
this.assetAllocationTables.add(table);
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- // 用表格的第一列的数据判断是否主要财务指标数据
|
|
|
|
- List<String> texts = this.getTableColTexts(table, 0);
|
|
|
|
- if (CollUtil.containsAny(texts, ListUtil.of("期间数据和指标", "期末数据和指标", "累计期末指标"))) {
|
|
|
|
- this.financialIndicatorsTables.add(table);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|