Bladeren bron

Merge remote-tracking branch 'origin/develop' into develop

Eric 1 jaar geleden
bovenliggende
commit
677e008d80

+ 12 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/UserOrderServiceImpl.java

@@ -406,6 +406,18 @@ public class UserOrderServiceImpl extends ServiceImpl<UserOrderDao, UserOrder> i
             }
         }
 
+        // 机构ID集合
+        List<Long> tenantIds = records.stream().map(UserOrderVo::getTenantId).filter(Objects::nonNull).distinct().collect(Collectors.toList());
+
+        Map<Long, TenantInfo> tenantInfoMap = tenantInfoService.getMapByIds(tenantIds);
+        for (UserOrderVo record : records) {
+            TenantInfo tenantInfo = tenantInfoMap.get(record.getTenantId());
+            if (tenantInfo != null) {
+                record.setTenantName(tenantInfo.getName());
+            }
+        }
+
+
         // 订单ID集合
         List<String> orderNos = records.stream().map(UserOrder::getOrderNo).collect(Collectors.toList());
         List<UserOrderDetailVo> detailVoList = getUserOrderDetailVos(orderNos);

+ 1 - 0
cooleshow-user/user-biz/src/main/resources/config/mybatis/UserOrderMapper.xml

@@ -32,6 +32,7 @@
          ,t.payment_version_ as paymentVersion
          ,t.payment_vendor_ as paymentVendor
         , t.user_id_ as userId
+        , t.tenant_id_ as tenantId
         , t.recom_user_id_ as recomUserId
         , t.activity_id_ as activityId
         , t.reward_id_ as rewardId