|
@@ -32,7 +32,7 @@ import static com.citu.module.pay.enums.wallet.PayWalletBizTypeEnum.PAYMENT_REFU
|
|
|
*/
|
|
|
@Service
|
|
|
@Slf4j
|
|
|
-public class PayWalletServiceImpl implements PayWalletService {
|
|
|
+public class PayWalletServiceImpl implements PayWalletService {
|
|
|
|
|
|
@Resource
|
|
|
private PayWalletMapper walletMapper;
|
|
@@ -102,7 +102,7 @@ public class PayWalletServiceImpl implements PayWalletService {
|
|
|
/**
|
|
|
* 校验是否能退款
|
|
|
*
|
|
|
- * @param refundId 支付退款单 id
|
|
|
+ * @param refundId 支付退款单 id
|
|
|
* @param walletPayNo 钱包支付 no
|
|
|
*/
|
|
|
private Long validateWalletCanRefund(Long refundId, String walletPayNo) {
|
|
@@ -176,6 +176,13 @@ public class PayWalletServiceImpl implements PayWalletService {
|
|
|
walletMapper.updateWhenRecharge(payWallet.getId(), price);
|
|
|
break;
|
|
|
}
|
|
|
+ case PLATFORM_COMMISSION:
|
|
|
+ case RECOMMENDED_POSITIONS:
|
|
|
+ case DELIVERY_PERSON:
|
|
|
+ case GIFT:
|
|
|
+ case NOT_RECOMMENDED:
|
|
|
+ walletMapper.updateWhenRecharge(payWallet.getId(), price);
|
|
|
+ break;
|
|
|
default: {
|
|
|
// TODO 其它类型待实现
|
|
|
throw new UnsupportedOperationException("待实现");
|