修改了对公充值和系统充值的到账推送
This commit is contained in:
parent
67341e851d
commit
b310c19590
@ -274,6 +274,9 @@ public class AccountRechargeServiceImpl extends DefaultBaseService implements IA
|
|||||||
}
|
}
|
||||||
params.put("rechargeRemark", rechargeRemark);
|
params.put("rechargeRemark", rechargeRemark);
|
||||||
accountRechargeDao.updateRemark(params);
|
accountRechargeDao.updateRemark(params);
|
||||||
|
|
||||||
|
AccountRechargeDTO dto = accountRechargeDao.get(params);
|
||||||
|
|
||||||
if (StringUtils.isEmpty(po.getAccountItemId()) && po.getReconciliationStatus().equals("0")) {
|
if (StringUtils.isEmpty(po.getAccountItemId()) && po.getReconciliationStatus().equals("0")) {
|
||||||
// 1. 生成流水记录
|
// 1. 生成流水记录
|
||||||
AccountItemVO vo = new AccountItemVO();
|
AccountItemVO vo = new AccountItemVO();
|
||||||
@ -285,10 +288,13 @@ public class AccountRechargeServiceImpl extends DefaultBaseService implements IA
|
|||||||
String accountItemId = iAccountItemService.saveReturnId(vo);
|
String accountItemId = iAccountItemService.saveReturnId(vo);
|
||||||
// 2. 修改状态为2
|
// 2. 修改状态为2
|
||||||
updateCheck(po.getAccountRechargeId(), RechargeCheckEnum.RECHARGE_SUCCESS, rechargeRemark, accountItemId, "", DateUtil.getTime());
|
updateCheck(po.getAccountRechargeId(), RechargeCheckEnum.RECHARGE_SUCCESS, rechargeRemark, accountItemId, "", DateUtil.getTime());
|
||||||
|
// 套餐包购买的不通知
|
||||||
|
if(StringUtils.isEmpty(dto.getPackageInfoId())) {
|
||||||
// 3. 平台通知到账
|
// 3. 平台通知到账
|
||||||
JSONObject jsonobject =new JSONObject();
|
JSONObject jsonobject =new JSONObject();
|
||||||
jsonobject.put("money", po.getRechargeMoney());
|
jsonobject.put("money", dto.getRechargeMoney());
|
||||||
sysCallbackService.save("对公充值到账", systemApiPathProperties.getCopyright() + "api/pay/recharge-success/user-id/" + po.getAccountId(), jsonobject);
|
sysCallbackService.save("对公充值到账", systemApiPathProperties.getCopyright() + "api/pay/recharge-success/user-id/" + dto.getAccountId(), jsonobject);
|
||||||
|
}
|
||||||
// 4. 短信通知到账
|
// 4. 短信通知到账
|
||||||
/**
|
/**
|
||||||
* TODO-CBC : 金额 大于 10 的 , 短信通知客户已到账
|
* TODO-CBC : 金额 大于 10 的 , 短信通知客户已到账
|
||||||
|
Loading…
Reference in New Issue
Block a user