|
@@ -81,4 +81,52 @@ public class AdminTransferAccountsServiceImpl extends ServiceImpl<AdminTransferA
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String yzhAddBatch(String requestId, String data, String mess, String timestamp, String sign, String sign_type) {
|
|
|
+ NotifyRequest request = new NotifyRequest();
|
|
|
+ request.setData(data);
|
|
|
+ request.setMess(mess);
|
|
|
+ request.setSign(sign);
|
|
|
+ request.setTimestamp(timestamp);
|
|
|
+
|
|
|
+ try {
|
|
|
+ // 订单支付状态回调通知
|
|
|
+ NotifyResponse<NotifyOrderRequest> response = client.notifyDecoder(request, NotifyOrderRequest.class);
|
|
|
+ NotifyOrderRequest notifyRequest = response.getData();
|
|
|
+ NotifyOrderData notifyOrderData = notifyRequest.getData();
|
|
|
+ AdminTransferAccounts adminTransferAccounts = new AdminTransferAccounts();
|
|
|
+ adminTransferAccounts.setOrderId(notifyOrderData.getOrderId());
|
|
|
+ adminTransferAccounts.setPay(notifyOrderData.getPay());
|
|
|
+ adminTransferAccounts.setBrokerId(notifyOrderData.getBrokerId());
|
|
|
+ adminTransferAccounts.setDealerId(notifyOrderData.getDealerId());
|
|
|
+ adminTransferAccounts.setRealName(notifyOrderData.getRealName());
|
|
|
+ adminTransferAccounts.setCardNo(notifyOrderData.getCardNo());
|
|
|
+ adminTransferAccounts.setIdCard(notifyOrderData.getIdCard());
|
|
|
+ adminTransferAccounts.setPhoneNo(notifyOrderData.getPhoneNo());
|
|
|
+ adminTransferAccounts.setStatus(notifyOrderData.getStatus());
|
|
|
+ adminTransferAccounts.setStatusDetail(notifyOrderData.getStatusDetail());
|
|
|
+ adminTransferAccounts.setStatusMessage(notifyOrderData.getStatusMessage());
|
|
|
+ adminTransferAccounts.setStatusDetailMessage(notifyOrderData.getStatusDetailMessage());
|
|
|
+ adminTransferAccounts.setBrokerAmount(notifyOrderData.getBrokerAmount());
|
|
|
+ adminTransferAccounts.setRef(notifyOrderData.getRef());
|
|
|
+ adminTransferAccounts.setBrokerBankBill(notifyOrderData.getBrokerBankBill());
|
|
|
+ adminTransferAccounts.setWithdrawPlatform(notifyOrderData.getWithdrawPlatform());
|
|
|
+ adminTransferAccounts.setCreatedAt(notifyOrderData.getCreatedAt());
|
|
|
+ adminTransferAccounts.setFinishedTime(notifyOrderData.getFinishedTime());
|
|
|
+ adminTransferAccounts.setBrokerFee(notifyOrderData.getBrokerFee());
|
|
|
+ adminTransferAccounts.setBrokerDeductFee(notifyOrderData.getBrokerDeductFee());
|
|
|
+ adminTransferAccounts.setPayRemark(notifyOrderData.getPayRemark());
|
|
|
+ adminTransferAccounts.setUserFee(notifyOrderData.getUserFee());
|
|
|
+ adminTransferAccounts.setBankName(notifyOrderData.getBankName());
|
|
|
+ adminTransferAccounts.setProjectId(notifyOrderData.getProjectId());
|
|
|
+ adminTransferAccounts.setUserId(notifyOrderData.getUserId());
|
|
|
+ adminTransferAccounts.setNotifyId(notifyRequest.getNotifyId());
|
|
|
+ adminTransferAccounts.setNotifyTime(notifyRequest.getNotifyTime());
|
|
|
+ adminTransferAccountsService.save(adminTransferAccounts);
|
|
|
+ return "success";
|
|
|
+ } catch (Exception e) {
|
|
|
+ return "error";
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|