序列化

This commit is contained in:
2025-03-06 14:18:09 +08:00
parent 76a1cc0130
commit fe9a40493e
2 changed files with 4 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ package com.czg.service.order.dto;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
@@ -10,7 +11,7 @@ import java.math.BigDecimal;
* @description
*/
@Data
public class VipRefundDTO {
public class VipRefundDTO implements Serializable {
/**
* 店铺id
*/

View File

@@ -405,10 +405,10 @@ public class PayServiceImpl implements PayService {
Map<String, BigDecimal> resultMap = new HashMap<>(5);
ShopUser shopUser = shopUserService.getShopUserInfo(payParam.getShopId(), payParam.getUserId());
AssertUtil.isNull(shopUser, "该店铺用户不存在");
ShopUserFlow inFlow = userFlowService.queryChain().select(ShopUserFlow::getAmount)
ShopUserFlow inFlow = userFlowService.queryChain().select(ShopUserFlow::getAmount, ShopUserFlow::getRefundAmount)
.eq(ShopUserFlow::getId, payParam.getFlowId()).one();
AssertUtil.isNull(inFlow, "充值记录不存在");
ShopUserFlow giftFlow = userFlowService.queryChain().select(ShopUserFlow::getAmount)
ShopUserFlow giftFlow = userFlowService.queryChain().select(ShopUserFlow::getAmount, ShopUserFlow::getRefundAmount)
.eq(ShopUserFlow::getRelationId, payParam.getFlowId())
.eq(ShopUserFlow::getBizCode, ShopUserFlowBizEnum.AWARD_IN.getCode())
.one();