分销订单退款

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

@@ -1,6 +1,7 @@
package com.czg.market.service;
import com.czg.account.entity.UserInfo;
import com.czg.constant.TableValueConstant;
import com.czg.market.dto.MkDistributionUserDTO;
import com.czg.market.dto.MkDistributionWithdrawFlowDTO;
import com.czg.market.entity.MkDistributionUser;
@@ -113,7 +114,9 @@ public interface MkDistributionUserService extends IService<MkDistributionUser>
*/
void rechargeCallBack(Long shopId, BigDecimal amount, Long paymentId);
BigDecimal updateShopInfoAmount(Long shopId, BigDecimal changeAmount, Long sourceId);
BigDecimal updateShopInfoAmount(Long shopId, BigDecimal changeAmount, Long sourceId, TableValueConstant.DistributionAmountFlow.Type type, String remark);
void refund(String orderNo);
/**
* 发放分销奖励

View File

@@ -45,6 +45,7 @@ public interface TableValueConstant {
@Getter
enum Type {
MANUAL_RECHARGE("manual_recharge", "手动充值"),
REFUND("refund", "退款"),
SUB("sub", "系统扣减"),
OPEN("open", "分销员购买"),
MANUAL_SUB("manual_sub", "手动扣减"),