From 86df207c37502cce1b2043e1c7c0486459eef1d6 Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期四, 13 三月 2025 19:58:45 +0800
Subject: [PATCH] 党员、诉求评论基础代码

---
 springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java
index b1d9ac5..5fc82e9 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java
@@ -257,8 +257,8 @@
      */
     @PostMapping("detailuser")
     public R<LoginUserInfoVO> detailUser(@RequestParam("userId") Long userId) {
-//        return userService.detailUser(userId);
-        return userService.getUserInfo(userId+"");
+        return userService.detailUser(userId);
+//        return userService.getUserInfo(userId+"");
     }
 
     /**
@@ -807,11 +807,10 @@
      */
     @PostMapping("detailusercomunity")
     public R detailUserComunity(@RequestParam("userId") Long userId) {
-        CommunityUserInfoVO communityUserInfoVO = new CommunityUserInfoVO();
-        if (userId < 100000000l) {
+        CommunityUserInfoVO communityUserInfoVO;
+        communityUserInfoVO = sysUserInputService.detailUserComunity(userId);
+        if (communityUserInfoVO==null) {
             communityUserInfoVO = userService.detailUserComunity(userId);
-        } else {
-            communityUserInfoVO = sysUserInputService.detailUserComunity(userId);
         }
         return R.ok(communityUserInfoVO);
     }

--
Gitblit v1.7.1