Browse Source

兴业银行新模板

master
583641232@qq.com 1 year ago
parent
commit
e82abf2a3a
  1. 20
      cas-system/src/main/java/com/inscloudtech/bankStatementAnalysis/domain/entity/CIBStatementEntity.java
  2. 10
      cas-system/src/main/java/com/inscloudtech/bankStatementAnalysis/helper/CCBDataAnalysisHelper.java
  3. 6
      cas-system/src/main/java/com/inscloudtech/bankStatementAnalysis/helper/ICBCDataAnalysisHelper.java

20
cas-system/src/main/java/com/inscloudtech/bankStatementAnalysis/domain/entity/CIBStatementEntity.java

@ -19,20 +19,23 @@ import org.dromara.easyes.annotation.rely.IdType;
public class CIBStatementEntity { public class CIBStatementEntity {
@IndexId(type = IdType.CUSTOMIZE) @IndexId(type = IdType.CUSTOMIZE)
@ExcelIgnore
private String id; private String id;
/** /**
* 客户名称 * 客户名称
*/ */
@ExcelProperty("客户名称") @ExcelProperty("客户名称")
@IndexField(fieldType = FieldType.KEYWORD)
private String cardHolderName; private String cardHolderName;
// 卡号 // 卡号
@ExcelProperty("账户代号")
@IndexField(fieldType = FieldType.KEYWORD)
@ExcelProperty({"账号","账户代号"})
private String cardNumber; private String cardNumber;
// 卡号
@ExcelProperty("账号")
private String cardNumber2;
// 交易日期 // 交易日期
@ExcelProperty("交易日期") @ExcelProperty("交易日期")
private String transDate; private String transDate;
@ -43,7 +46,7 @@ public class CIBStatementEntity {
/** /**
* 1为+0为- * 1为+0为-
*/ */
@ExcelProperty("借贷标记")
@ExcelProperty({"借贷标记","借贷标志"})
private String loanFlag; private String loanFlag;
// 收入金额 // 收入金额
@ -55,21 +58,22 @@ public class CIBStatementEntity {
private String balance; private String balance;
// 对方账号 // 对方账号
@ExcelProperty("对方账户代号")
@ExcelProperty({"对方账户代号","对手账号"})
private String counterpartyAccount; private String counterpartyAccount;
@ExcelProperty("对方客户名称")
@ExcelProperty({"对方客户名称","对手户名"})
private String counterpartyName; private String counterpartyName;
@ExcelProperty("对方行名")
@ExcelProperty({"对方行名","对手开户行"})
private String counterpartyBankName; private String counterpartyBankName;
@ExcelProperty("摘要说明")
@ExcelProperty({"摘要说明","摘要描述"})
private String summary; private String summary;
@ExcelProperty("用途") @ExcelProperty("用途")
private String transRemark; private String transRemark;
@ExcelIgnore
private String caseId; private String caseId;
@ExcelIgnore @ExcelIgnore

10
cas-system/src/main/java/com/inscloudtech/bankStatementAnalysis/helper/CCBDataAnalysisHelper.java

@ -649,8 +649,11 @@ public class CCBDataAnalysisHelper {
Cells cells = ws.getCells(); Cells cells = ws.getCells();
String ssss = sourceFile + BankStatementConstants.NAME_WITH_SHEET_NAME + sheetName; String ssss = sourceFile + BankStatementConstants.NAME_WITH_SHEET_NAME + sheetName;
try { try {
if (AsposeUtil.getCell(cells, "个人账户信息") != null) {
if (AsposeUtil.getCell(cells, "有无查询结果") != null) {
continue;
}else if (AsposeUtil.getCell(cells, "查询无数据") != null) {
continue;
} else if (AsposeUtil.getCell(cells, "个人账户信息") != null) {
// 读取账户信息 // 读取账户信息
readAccountInfo(excelFile, cells, sheetNo, ssss); readAccountInfo(excelFile, cells, sheetNo, ssss);
} else if (AsposeUtil.getCell(cells, "个人活期明细信息") != null) { } else if (AsposeUtil.getCell(cells, "个人活期明细信息") != null) {
@ -680,11 +683,10 @@ public class CCBDataAnalysisHelper {
} }
} else if (AsposeUtil.getCell(cells, "错误原因") != null) { } else if (AsposeUtil.getCell(cells, "错误原因") != null) {
continue; continue;
}else if (AsposeUtil.getCell(cells, "有无查询结果") != null) {
continue;
}else { }else {
throw new TemplateNotFindException(ssss); throw new TemplateNotFindException(ssss);
} }
} catch (Exception e) { } catch (Exception e) {
importResultService.record(caseId, BANK_NAME, e,ssss); importResultService.record(caseId, BANK_NAME, e,ssss);
} }

6
cas-system/src/main/java/com/inscloudtech/bankStatementAnalysis/helper/ICBCDataAnalysisHelper.java

@ -152,9 +152,9 @@ public class ICBCDataAnalysisHelper {
if(stringValue.equals("入帐日期")){ if(stringValue.equals("入帐日期")){
int startRow = dateCell.getRow(); int startRow = dateCell.getRow();
Cell cardHolderNameCell = cells.get(startRow - 1, 1); Cell cardHolderNameCell = cells.get(startRow - 1, 1);
if(null == cardHolderNameCell || StrUtil.isEmpty(cardHolderNameCell.getStringValue())){
throw new ImportDataFailedException("读取持卡人信息异常", sourceFile);
}
// if(null == cardHolderNameCell || StrUtil.isEmpty(cardHolderNameCell.getStringValue())){
// throw new ImportDataFailedException("读取持卡人信息异常", sourceFile);
// }
String cardHolderName = cardHolderNameCell.getStringValue().trim(); String cardHolderName = cardHolderNameCell.getStringValue().trim();
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.putOnce("startRow",i); jsonObject.putOnce("startRow",i);

Loading…
Cancel
Save