diff --git a/src/main/java/cn/com/tenlion/operator/serviceother/operator/accountrecharge/impl/AccountRechargeServiceImpl.java b/src/main/java/cn/com/tenlion/operator/serviceother/operator/accountrecharge/impl/AccountRechargeServiceImpl.java index 4dc9bed..f76b5d9 100644 --- a/src/main/java/cn/com/tenlion/operator/serviceother/operator/accountrecharge/impl/AccountRechargeServiceImpl.java +++ b/src/main/java/cn/com/tenlion/operator/serviceother/operator/accountrecharge/impl/AccountRechargeServiceImpl.java @@ -123,9 +123,8 @@ public class AccountRechargeServiceImpl extends DefaultBaseService implements IA @Override public String saveSystem(AccountRechargeVO accountRechargeVO) { - accountRechargeVO.setReconciliationStatus("1"); + accountRechargeVO.setReconciliationStatus("0"); accountRechargeVO.setRechargeCheck("2"); - accountRechargeVO.setReconciliationTime(DateUtil.getTime()); String accountRechargeId = getUUID("sys"); Map params = HashMapUtil.beanToMap(accountRechargeVO); params.put("accountRechargeId", accountRechargeId); @@ -145,6 +144,13 @@ public class AccountRechargeServiceImpl extends DefaultBaseService implements IA // 3. 调用第三方接口, 告知充值到账 sysCallbackService.save("系统充值到账", systemApiPathProperties.getCopyright() + "api/pay/recharge-success/user-id/" + dto.getAccountId(), null); + + // 更新到账状态 + Map params1 = getHashMap(2); + params1.put("accountRechargeIds", "1"); + params1.put("reconciliationTime", DateUtil.getTime()); + params1.put("accountRechargeId", accountRechargeId); + accountRechargeDao.update(params1); } return accountRechargeId;