From 99326b4988ce0e621acb6ee2778a934335050c8e Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Thu, 6 Mar 2025 14:28:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E5=A1=AB=E9=80=80=E6=AC=BE=E5=89=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../czg/service/order/service/impl/PayServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/PayServiceImpl.java b/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/PayServiceImpl.java index 4b3194937..9619472fa 100644 --- a/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/PayServiceImpl.java +++ b/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/PayServiceImpl.java @@ -405,10 +405,10 @@ public class PayServiceImpl implements PayService { Map resultMap = new HashMap<>(5); ShopUser shopUser = shopUserService.getShopUserInfo(payParam.getShopId(), payParam.getUserId()); AssertUtil.isNull(shopUser, "该店铺用户不存在"); - ShopUserFlow inFlow = userFlowService.queryChain().select(ShopUserFlow::getAmount, ShopUserFlow::getRefundAmount) + ShopUserFlow inFlow = userFlowService.queryChain().select() .eq(ShopUserFlow::getId, payParam.getFlowId()).one(); AssertUtil.isNull(inFlow, "充值记录不存在"); - ShopUserFlow giftFlow = userFlowService.queryChain().select(ShopUserFlow::getAmount, ShopUserFlow::getRefundAmount) + ShopUserFlow giftFlow = userFlowService.queryChain().select() .eq(ShopUserFlow::getRelationId, payParam.getFlowId()) .eq(ShopUserFlow::getBizCode, ShopUserFlowBizEnum.AWARD_IN.getCode()) .one(); @@ -423,10 +423,10 @@ public class PayServiceImpl implements PayService { @Override public CzgResult refundVip(VipRefundDTO refPayParam) { ShopUser shopUser = shopUserService.getShopUserInfo(refPayParam.getShopId(), refPayParam.getUserId()); - ShopUserFlow inFlow = userFlowService.queryChain().select(ShopUserFlow::getAmount) + ShopUserFlow inFlow = userFlowService.queryChain().select() .eq(ShopUserFlow::getId, refPayParam.getFlowId()).one(); AssertUtil.isNull(inFlow, "充值记录不存在"); - ShopUserFlow giftFlow = userFlowService.queryChain().select(ShopUserFlow::getAmount) + ShopUserFlow giftFlow = userFlowService.queryChain().select() .eq(ShopUserFlow::getRelationId, refPayParam.getFlowId()) .eq(ShopUserFlow::getBizCode, ShopUserFlowBizEnum.AWARD_IN.getCode()) .one();