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

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java
index 9d7ca61..0628c7b 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java
@@ -51,6 +51,7 @@
     @PostMapping
     public R add(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
         comSanshuoExpertDTO.setCreateBy(this.getLoginUserInfo().getName());
+        comSanshuoExpertDTO.setAppId(userService.detailUser(getLoginUserInfo().getUserId()).getData().getAppId());
         return comSanShuoExpertService.addOrUpdateExpert(comSanshuoExpertDTO);
     }
 
@@ -85,6 +86,7 @@
                       @RequestParam(value = "size",required = false)Integer size,
                       @RequestParam(value = "level",required = false)Integer level){
         LoginUserInfoVO loginUserInfo = this.getLoginUserInfo();
+        loginUserInfo.setAppId(userService.detailUser(getLoginUserInfo().getUserId()).getData().getAppId());
         return comSanShuoExpertService.expertPage(keyWord,page,size,loginUserInfo,level);
     }
 
@@ -127,9 +129,6 @@
     public R expertShow(){
         return comSanShuoExpertService.expertShow();
     }
-
-
-
 
 
     /**
@@ -176,6 +175,19 @@
         return R.ok();
     }
 
+    /**
+     * 后台获取专家列表
+     * */
+    @GetMapping("/backstageList2")
+    public R  backstageList(@RequestParam(value = "level",required = false)Integer level,
+                            @RequestParam(value = "page",required = false)Integer page,
+                            @RequestParam(value = "size",required = false)Integer size){
+        LoginUserInfoVO loginUserInfo = getLoginUserInfo();
+        loginUserInfo.setAppId(userService.detailUser(getLoginUserInfo().getUserId()).getData().getAppId());
+        return comSanShuoExpertService.backstageList(level,loginUserInfo,page,size);
+    }
+
+
 
 
 

--
Gitblit v1.7.1