From f3e7ecf643ec517ad93b80a50e63eaab90b6461b Mon Sep 17 00:00:00 2001
From: 张天森 <1292933220@qq.com>
Date: 星期二, 07 二月 2023 15:51:22 +0800
Subject: [PATCH] 三说会堂事件搜索修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 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..184db42 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);
     }
 
@@ -125,11 +127,8 @@
      * */
     @GetMapping("/expertShow")
     public R expertShow(){
-        return comSanShuoExpertService.expertShow();
+        return comSanShuoExpertService.expertShow(this.getLoginUserInfo().getAppId());
     }
-
-
-
 
 
     /**
@@ -147,7 +146,7 @@
     @GetMapping("/expertShowList")
     public R expertShowList(@RequestParam(value = "level",required = false)Integer level,
                             @RequestParam(value = "id",required = false)Long id){
-        return comSanShuoExpertService.expertShowList(level,id);
+        return comSanShuoExpertService.expertShowList(level,id,userService.detailUser(this.getUserId()).getData().getAppId());
     }
 
     /**
@@ -176,6 +175,20 @@
         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,
+                            @RequestParam(value = "keyWord",required = false)String  keyWord){
+        LoginUserInfoVO loginUserInfo = getLoginUserInfo();
+        loginUserInfo.setAppId(userService.detailUser(getLoginUserInfo().getUserId()).getData().getAppId());
+        return comSanShuoExpertService.backstageList(level,loginUserInfo,page,size,keyWord);
+    }
+
+
 
 
 

--
Gitblit v1.7.1