分销订单退款

This commit is contained in:
张松
2025-10-30 14:47:45 +08:00
parent 05fbdb0826
commit 74ae88c7fe
5 changed files with 36 additions and 6 deletions

View File

@@ -114,6 +114,8 @@ public class PayServiceImpl implements PayService {
private MkShopRechargeDetailService shopRechargeDetailService;
@Resource
private TbMemberConfigService memberConfigService;
@Resource
private MkDistributionUserService distributionUserService;
private final BigDecimal MONEY_RATE = new BigDecimal("100");
@@ -788,6 +790,9 @@ public class PayServiceImpl implements PayService {
if (!returnProMap.isEmpty()) {
rabbitPublisher.sendOrderRefundMsg(JSONObject.toJSONString(Map.of("orderId", orderInfo.getId(), "returnProMap", returnProMap)));
}
// 退款分销还原
distributionUserService.refund(orderInfo.getOrderNo());
return CzgResult.success();
}