MQ跟业务的集成方式
通过消费消息队列的消息,业务服务来实时同步银行的数据。
票据事件
{
"eventCode": "DraftStatus",
"draftId": "票据ID",
"bankMark": "银行标识",
"bankCode": "联行号",
"accountNumber": "帐号",
"draftType": "票据类别",
"draftNumber": "票据号码",
"organizationCode": "组织机构代码",
"amount": "票据金额",
"date": "出票日期",
"draftStatusCode": "票据状态",
"bankDraftStatusCode": "银行票据状态",
"bankDraftStatusDesc": "银行票据状态说明",
"dueDate": "到期日",
"drawerName": "出票人名称",
"acceptorName": "承兑人名称",
"payeeName": "收款人名称",
"applicantName": "申请人名称",
"drawerAccountNumber": "出票人账号",
"acceptorAccountNumber": "承兑人账号",
"payeeAccountNumber": "收款人账号",
"tenantId": "租户ID"
}
票据交易记录事件
{
"eventCode": "DraftTradeBusinessStatus",
"businessId": "交易记录ID",
"bankMark": "银行标识",
"draftId": "票据ID",
"draftNumber": "票据号码",
"bankCode": "联行号",
"accountNumber": "帐号",
"statusCode": "状态",
"bankStatusCode": "银行状态",
"bankTransactionId": "银行交易流水号",
"failureReason": "失败原因",
"tenantId": "租户ID"
}
票据交易记录事件
{
"eventCode": "FundTradeBusinessStatus",
"businessId": "交易记录ID",
"bankMark": "银行标识",
"bankCode": "联行号",
"accountNumber": "帐号",
"referenceOrder": "参考单据编号",
"tradeAmount": "交易金额",
"tradeDate": "交易日期",
"currency": "交易货币",
"statusCode": "状态",
"bankStatusCode": "银行状态",
"bankStatusDesc": "银行状态说明",
"tradeBankCode": "交易人联行号",
"tradeAccountNumber": "交易人账号",
"tradeAccountName": "交易人名称",
"tradeAccountBankName": "交易人开户行名称",
"oppositeBankCode": "交易对方联行号",
"oppositeAccountNumber": "交易对方账号",
"oppositeAccountName": "交易对方名称",
"oppositeAccountBankName": "交易对方开户行名称",
"agentBankCode": "被代理联行号",
"agentAccountNumber": "被代理账号",
"agentAccountName": "被代理名称",
"agentAccountBankName": "被代理开户行名称",
"transactionSerialNumber": "交易流水号",
"transactionId": "记录标识号",
"transferInstructionId": "转账指令ID",
"bankTransactionId": "银行交易流水号",
"accountBalance": "交易后余额",
"availableBalance": "可用余额",
"frozenAmount": "冻结金额",
"overdrawnAmount": "透支额度",
"availableOverdrawnAmount": "可用透支额度",
"purpose": "用途",
"postscript": "附言",
"businessTypeCode": "业务类型",
"bankBusinessType": "银行业务类型",
"directionCode": "来往账标识",
"feeAccount": "费用账户",
"feeAmount": "费用金额",
"feeCurrency": "费用货币",
"interestDate": "起息日期",
"bankVoucherType": "银行凭证类型",
"voucherNumber": "凭证号码",
"exchangeRate": "汇率",
"receiptUrl": "电子回单附件路径",
"tenantId": "租户ID"
}