|
|
@@ -228,14 +228,14 @@ public class WithdrawInfoServiceImpl extends ServiceImpl<WithdrawInfoMapper, Wit
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public void handleTransferStatus(WithdrawInfoEntity entity, String state, String transferBillNo, String failReason) {
|
|
|
- if (TransferStatus.SUCCESS.getDescription().equals(state)) {
|
|
|
+ if (TransferStatus.SUCCESS.name().equals(state)) {
|
|
|
// 保存微信批次单号
|
|
|
entity.setThirdTransactionNo(transferBillNo);
|
|
|
entity.setRemitTime(LocalDateTime.now());
|
|
|
entity.setAuditState(WithdrawAuditStateEnum.REMIT_SUCCESS.value());
|
|
|
//扣余额
|
|
|
memberWalletService.deductBalance(entity.getMemberId(), entity.getMoney());
|
|
|
- } else if (TransferStatus.FAIL.getDescription().equals(state) || TransferStatus.CANCELLED.getDescription().equals(state)) {
|
|
|
+ } else if (TransferStatus.FAIL.name().equals(state) || TransferStatus.CANCELLED.name().equals(state)) {
|
|
|
// 转账失败,退回余额
|
|
|
memberWalletService.unfreezeAndRefund(entity.getMemberId(), entity.getMoney());
|
|
|
entity.setAuditState(WithdrawAuditStateEnum.AUDIT_REFUSE.value());
|