From 85384328c12fcc689e1f66f4deca77168859882d Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期五, 10 一月 2025 19:12:39 +0800 Subject: [PATCH] 修改bug --- ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/RefundPassServiceImpl.java | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/RefundPassServiceImpl.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/RefundPassServiceImpl.java index 4251ede..67f7867 100644 --- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/RefundPassServiceImpl.java +++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/RefundPassServiceImpl.java @@ -132,8 +132,10 @@ List<OrderRefundPassList> orderRefundPassList = this.baseMapper.getOrderRefundPassList(pageInfo, refundPassListVo.getCode(), appUserIds, shopId, refundPassListVo.getRefundMethod(), refundPassListVo.getStatus()); for (OrderRefundPassList refundPassList : orderRefundPassList) { AppUser appUser = appUserClient.getAppUserById(refundPassList.getAppUserId()); - refundPassList.setUserName(appUser.getName()); - refundPassList.setPhone(appUser.getPhone()); + if(null != appUser){ + refundPassList.setUserName(appUser.getName()); + refundPassList.setPhone(appUser.getPhone()); + } } return pageInfo.setRecords(orderRefundPassList); } @@ -153,12 +155,16 @@ return R.fail("不能重复操作"); } refundPass.setPassStatus(status); + refundPass.setAuthTime(LocalDateTime.now()); //退货退款 if(refundPass.getRefundMethod() == 1 && 2 == status){ refundPass.setStatus(4); } if(refundPass.getRefundMethod() == 2 && 2 == status){ refundPass.setStatus(2); + } + if(3 == status){ + refundPass.setStatus(3); } refundPass.setPassRemark(passRemark); //仅退款的售后需要将支付金额原路返回,然后再扣减支付获得的积分 @@ -227,6 +233,7 @@ refundPassInfo.setPics(refundPass.getPics()); refundPassInfo.setPassStatus(refundPass.getPassStatus()); refundPassInfo.setPassRemark(refundPass.getPassRemark()); + refundPassInfo.setStatus(refundPass.getStatus()); return refundPassInfo; } } -- Gitblit v1.7.1