update 取现成功支付回调

This commit is contained in:
2023-08-08 14:16:05 +08:00
parent 304ba6b2e1
commit ce92d1ccdf
6 changed files with 47 additions and 13 deletions

View File

@@ -123,6 +123,9 @@ public class OrderService {
@Autowired
private IAdapayMemberAccountService adapayMemberAccountService;
@Autowired
private ClearingWithdrawInfoService clearingWithdrawInfoService;
/**
* 生成订单
*
@@ -949,6 +952,8 @@ public class OrderService {
} else if (AdapayEventEnum.payment_reverse_succeeded.getValue().equals(type)) {
// 支付撤销成功
} else if (AdapayEventEnum.cash_succeeded.getValue().equals(type)) {
}
}
@@ -1066,4 +1071,16 @@ public class OrderService {
adapayMemberAccountService.updateAdapayMemberAccountByMemberId(adapayMemberAccount);
}
/**
* 取现成功
*/
private void cashSucceeded(String data) {
JSONObject jsonObject = JSON.parseObject(data);
String withdrawCode = jsonObject.getString("id");
// 通过取现id查询取现数据
ClearingWithdrawInfo clearingWithdrawInfo = clearingWithdrawInfoService.selectByWithdrawCode(withdrawCode);
clearingWithdrawInfo.setWithdrawStatus(Constants.ONE);
clearingWithdrawInfoService.insertOrUpdate(clearingWithdrawInfo);
}
}