fix: 分销提现bug修复
This commit is contained in:
parent
c7d0820eed
commit
48c84acb7c
@ -138,17 +138,18 @@ public class DistributionCashServiceImpl extends ServiceImpl<DistributionCashMap
|
||||
distribution.setCanRebate(CurrencyUtil.add(distribution.getCanRebate(), distributorCash.getPrice()));
|
||||
distributorCash.setDistributionCashStatus(WithdrawStatusEnum.FAIL_AUDITING.name());
|
||||
}
|
||||
distribution.setCommissionFrozen(CurrencyUtil.sub(distribution.getCommissionFrozen(), distributorCash.getPrice()));
|
||||
//分销员金额相关处理
|
||||
distributionService.updateById(distribution);
|
||||
//修改分销提现申请
|
||||
boolean bool = this.updateById(distributorCash);
|
||||
if (bool) {
|
||||
//组织会员提现审核消息
|
||||
memberWithdrawalMessage.setMemberId(distribution.getMemberId());
|
||||
memberWithdrawalMessage.setPrice(distributorCash.getPrice());
|
||||
String destination = rocketmqCustomProperties.getMemberTopic() + ":" + MemberTagsEnum.MEMBER_WITHDRAWAL.name();
|
||||
rocketMQTemplate.asyncSend(destination, memberWithdrawalMessage, RocketmqSendCallbackBuilder.commonCallback());
|
||||
}
|
||||
//if (bool) {
|
||||
// //组织会员提现审核消息
|
||||
// memberWithdrawalMessage.setMemberId(distribution.getMemberId());
|
||||
// memberWithdrawalMessage.setPrice(distributorCash.getPrice());
|
||||
// String destination = rocketmqCustomProperties.getMemberTopic() + ":" + MemberTagsEnum.MEMBER_WITHDRAWAL.name();
|
||||
// rocketMQTemplate.asyncSend(destination, memberWithdrawalMessage, RocketmqSendCallbackBuilder.commonCallback());
|
||||
//}
|
||||
return distributorCash;
|
||||
}
|
||||
throw new ServiceException(ResultCode.DISTRIBUTION_NOT_EXIST);
|
||||
|
@ -15,10 +15,20 @@ public enum WithdrawStatusEnum {
|
||||
* 审核成功即提现成功
|
||||
*/
|
||||
VIA_AUDITING("审核通过"),
|
||||
/**
|
||||
* 分销提现
|
||||
* 审核成功即提现成功
|
||||
*/
|
||||
D_VIA_AUDITING("分销提现审核通过"),
|
||||
/**
|
||||
* 审核未通过
|
||||
*/
|
||||
FAIL_AUDITING("审核未通过"),
|
||||
/**
|
||||
* 分销提现
|
||||
* 审核未通过
|
||||
*/
|
||||
D_FAIL_AUDITING("分销提现审核未通过"),
|
||||
/**
|
||||
* 提现成功
|
||||
*/
|
||||
|
@ -23,6 +23,10 @@ public enum MemberTagsEnum {
|
||||
* 会员提现
|
||||
*/
|
||||
MEMBER_WITHDRAWAL("会员提现"),
|
||||
/**
|
||||
* 会员提现
|
||||
*/
|
||||
DISTRIBUTION_WITHDRAWAL("分销提现"),
|
||||
/**
|
||||
* 会员信息更改
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user