From b1fc2df27e776b52204abd6707660b90c48ab820 Mon Sep 17 00:00:00 2001
From: 张天森 <1292933220@qq.com>
Date: 星期一, 14 十一月 2022 10:45:12 +0800
Subject: [PATCH] token获取物业id处理

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java
index fb6586e..04f514b 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java
@@ -1008,7 +1008,12 @@
             }
         }
         log.info("当前userType===="+comEvent.getUserType());
-        comEvent.setAppId(loginUserInfoVO.getAppId());
+        //comEvent.setAppId(loginUserInfoVO.getAppId());
+        R<LoginUserInfoVO> r = userService.detailUser(loginUserInfoVO.getUserId());
+        LoginUserInfoVO user = r.getData();
+        if (nonNull(user.getAppId())){
+            comEvent.setAppId(user.getAppId());
+        }
         List<ComEventCalculateVO> calculateList = baseMapper.calculate(comEvent);
         ComEventCalculateVO comEventCalculateVO =new ComEventCalculateVO();
         comEventCalculateVO.setStatus("0");

--
Gitblit v1.7.1