序列化
This commit is contained in:
@@ -3,6 +3,7 @@ package com.czg.service.order.dto;
|
|||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -10,7 +11,7 @@ import java.math.BigDecimal;
|
|||||||
* @description
|
* @description
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class VipRefundDTO {
|
public class VipRefundDTO implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 店铺id
|
* 店铺id
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -405,10 +405,10 @@ public class PayServiceImpl implements PayService {
|
|||||||
Map<String, BigDecimal> resultMap = new HashMap<>(5);
|
Map<String, BigDecimal> resultMap = new HashMap<>(5);
|
||||||
ShopUser shopUser = shopUserService.getShopUserInfo(payParam.getShopId(), payParam.getUserId());
|
ShopUser shopUser = shopUserService.getShopUserInfo(payParam.getShopId(), payParam.getUserId());
|
||||||
AssertUtil.isNull(shopUser, "该店铺用户不存在");
|
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();
|
.eq(ShopUserFlow::getId, payParam.getFlowId()).one();
|
||||||
AssertUtil.isNull(inFlow, "充值记录不存在");
|
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::getRelationId, payParam.getFlowId())
|
||||||
.eq(ShopUserFlow::getBizCode, ShopUserFlowBizEnum.AWARD_IN.getCode())
|
.eq(ShopUserFlow::getBizCode, ShopUserFlowBizEnum.AWARD_IN.getCode())
|
||||||
.one();
|
.one();
|
||||||
|
|||||||
Reference in New Issue
Block a user