From c168f544ecd041760e7d0fba66c48e06b9ab67dc Mon Sep 17 00:00:00 2001
From: yanghui <2536613402@qq.com>
Date: 星期一, 05 十二月 2022 16:51:21 +0800
Subject: [PATCH] Merge branch 'local_20221104' into huacheng_test

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComShopFlowerRefundOrderServiceImpl.java |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComShopFlowerRefundOrderServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComShopFlowerRefundOrderServiceImpl.java
index 71107e0..7469c2b 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComShopFlowerRefundOrderServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComShopFlowerRefundOrderServiceImpl.java
@@ -116,9 +116,14 @@
         for (ComShopFlowerRefundOrderVO comShopFlowerRefundOrderVO : pages.getRecords()) {
             String orderNo = comShopFlowerRefundOrderVO.getOrderNo();
             ComShopFlowerOrderDO comShopFlowerOrderDO = comShopFlowerOrderDAO.selectById(comShopFlowerRefundOrderVO.getOrderId());
-            comShopFlowerRefundOrderVO.setTotalAmount(comShopFlowerOrderDO.getTotalAmount());
-            ConvenientElevatingPointDO convenientElevatingPointDO = convenientElevatingPointDAO.selectById(comShopFlowerOrderDO.getPointId());
-            comShopFlowerRefundOrderVO.setPointName(convenientElevatingPointDO.getName());
+            if (nonNull(comShopFlowerOrderDO)){
+                comShopFlowerRefundOrderVO.setTotalAmount(comShopFlowerOrderDO.getTotalAmount());
+                ConvenientElevatingPointDO convenientElevatingPointDO = convenientElevatingPointDAO.selectById(comShopFlowerOrderDO.getPointId());
+                if (nonNull(convenientElevatingPointDO)){
+                    comShopFlowerRefundOrderVO.setPointName(convenientElevatingPointDO.getName());
+                }
+            }
+
             List<ComShopFlowerOrderGoodsVO> orderGoodsVOS = new ArrayList<>();
             // 查询订单下商品信息
             List<ComShopFlowerOrderGoodsDO> orderGoodsDOList = comShopFlowerOrderGoodsDAO
@@ -140,14 +145,15 @@
             comShopFlowerRefundOrderVO.setOrderGoodsVOList(orderGoodsVOS);
             comShopFlowerRefundOrderVO.setGoodsName(sbr.toString());
 
-            ConvenientMerchantVO shopStoreVO = new ConvenientMerchantVO();
+
             // 查询店铺信息
+/*           ConvenientMerchantVO shopStoreVO = new ConvenientMerchantVO();
             ConvenientMerchantDO shopStoreDO = convenientMerchantDAO.selectById(comShopFlowerRefundOrderVO.getStoreId());
             if (shopStoreDO != null) {
                 BeanUtils.copyProperties(shopStoreDO, shopStoreVO);
             }
             comShopFlowerRefundOrderVO.setConvenientMerchantVO(shopStoreVO);
-            comShopFlowerRefundOrderVO.setStoreName(shopStoreVO.getName());
+*/
 
         }
         return R.ok(pages);

--
Gitblit v1.7.1