Commit 833956cc authored by huyuchen's avatar huyuchen

huych-工行卡号无需封装行名行号逻辑新增

parent 512f413e
...@@ -552,6 +552,7 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn ...@@ -552,6 +552,7 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
if (Common.isEmpty(excelVo.getFdRecipientBankCode())) { if (Common.isEmpty(excelVo.getFdRecipientBankCode())) {
//工行的卡号通过bin来判断,如果是工行的卡号,则不需要行名行号 //工行的卡号通过bin来判断,如果是工行的卡号,则不需要行名行号
// 检查长度是否足够 // 检查长度是否足够
boolean flag = false;
if (Common.isNotNull(binList) && !binList.isEmpty() && excelVo.getFdPayeeAccount().length() >= 5) { if (Common.isNotNull(binList) && !binList.isEmpty() && excelVo.getFdPayeeAccount().length() >= 5) {
for (String bin : binList) { for (String bin : binList) {
if ((bin.length() == 5 && excelVo.getFdPayeeAccount().substring(0, 5).equals(bin)) || if ((bin.length() == 5 && excelVo.getFdPayeeAccount().substring(0, 5).equals(bin)) ||
...@@ -559,20 +560,24 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn ...@@ -559,20 +560,24 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
excelVo.getFdPayeeAccount().substring(0, 6).equals(bin))) { excelVo.getFdPayeeAccount().substring(0, 6).equals(bin))) {
excelVo.setFdRecipientBankCode(null); excelVo.setFdRecipientBankCode(null);
excelVo.setFdRecipientBank(null); excelVo.setFdRecipientBank(null);
flag = true;
break;
} }
} }
} }
// 查询行号 if (!flag) {
bankInfoQuery = icbcTransactionFlowQueryService.querybankinfo(excelVo.getFdPayeeAccount()); // 查询行号
if (bankInfoQuery != null && bankInfoQuery.getCode() == CommonConstants.SUCCESS && bankInfoQuery.getData() != null) { bankInfoQuery = icbcTransactionFlowQueryService.querybankinfo(excelVo.getFdPayeeAccount());
codeSet = bankInfoQuery.getData(); if (bankInfoQuery != null && bankInfoQuery.getCode() == CommonConstants.SUCCESS && bankInfoQuery.getData() != null) {
excelVo.setFdRecipientBankCode(codeSet.getFdRecipientBankCode()); codeSet = bankInfoQuery.getData();
excelVo.setFdRecipientBank(codeSet.getFdRecipientBank()); excelVo.setFdRecipientBankCode(codeSet.getFdRecipientBankCode());
} else if (Common.isNotNull(excelVo.getFdRecipientBank())) { excelVo.setFdRecipientBank(codeSet.getFdRecipientBank());
bankVo = bankMap.get(excelVo.getFdRecipientBank()); } else if (Common.isNotNull(excelVo.getFdRecipientBank())) {
if (bankVo != null) { bankVo = bankMap.get(excelVo.getFdRecipientBank());
excelVo.setFdRecipientBankCode(bankVo.getFdRecipientBankCode()); if (bankVo != null) {
excelVo.setFdRecipientBank(bankVo.getFdRecipientBank()); excelVo.setFdRecipientBankCode(bankVo.getFdRecipientBankCode());
excelVo.setFdRecipientBank(bankVo.getFdRecipientBank());
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment