mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 取现成功支付回调
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user