Commit 1a479966 authored by hongguangwu's avatar hongguangwu

1.7.20-非扣税银企

parent f05ead72
......@@ -1334,19 +1334,32 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
int i = 0;
if (mainList != null && !mainList.isEmpty()) {
EkpBankPayTask main;
// 是否全部时8:授权失败,如果是,则整单失败
boolean isShouQuanShiBai;
for (EkpBankResultVo vo : mainList) {
seqNo = seqNoPre + System.currentTimeMillis() + (i++);
responseV1 = icbcTransactionFlowQueryService.getResultNoTax(vo, tranDate, tranTime, seqNo, client);
if (Common.isNotNull(responseV1)) {
// 生成工行接口数据记录
setIcbcLogBaseInfoNoTax(responseV1, icbcLogList, vo.getFdWxNo(), vo.getFdId());
dataList = responseV1.getRd();
isShouQuanShiBai = false;
if (dataList != null && !dataList.isEmpty()) {
for (MybankEnterprisePayQpayentResponseV1.MybankEnterprisePayQpayentResponseRdV1 data : dataList) {
if (CommonConstants.EIGHT_STRING.equals(data.getResult())) {
isShouQuanShiBai = true;
} else {
isShouQuanShiBai = false;
break;
}
}
}
// 返回码,交易成功返回0,正表示业务报错,负表示系统报错
if (responseV1.isSuccess()) {
if (responseV1.isSuccess() && !isShouQuanShiBai) {
// 生成日志主表
logs = new EkpBankGrantLog();
saveNewEkpBankGrantLog(responseV1.getPackageName(), vo, vo.getFdId(), logs, title);
dataList = responseV1.getRd();
oldDetailList = ekpBankGrantDetailService.getListByParentId(vo.getFdId());
oldMap = new HashMap<>();
if (oldDetailList != null && !oldDetailList.isEmpty()) {
......@@ -1423,7 +1436,7 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
// 成功总笔数
logs.setFdTransactionSuccessTotal(numSuccess);
ekpBankGrantLogService.updateById(logs);
} else if (400019 == responseV1.getReturnCode()) {
} else if (400019 == responseV1.getReturnCode() || isShouQuanShiBai) {
main = new EkpBankPayTask();
main.setFdErrorMsg("授权验证失败");
main.setFdId(vo.getFdId());
......
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