From dc352ea3b9ec925320784592f29ca640b3a7b2ea Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期二, 05 十二月 2023 14:05:44 +0800
Subject: [PATCH] 6

---
 zt/core/src/main/java/com/zt/modules/sys/controller/SysUserController.java |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/zt/core/src/main/java/com/zt/modules/sys/controller/SysUserController.java b/zt/core/src/main/java/com/zt/modules/sys/controller/SysUserController.java
index 2f4e694..c9188c3 100644
--- a/zt/core/src/main/java/com/zt/modules/sys/controller/SysUserController.java
+++ b/zt/core/src/main/java/com/zt/modules/sys/controller/SysUserController.java
@@ -103,17 +103,7 @@
     @ApiOperation("淇℃伅")
     @RequiresPermissions("sys:user:info")
     public Result<SysUser> get(@PathVariable("id") Long id) {
-        SysUser data = sysUserService.get(id);
-        if (data != null) {
-            OssDto ossDto= sysOssConfigService.getOssByBusiType(data.getId() , "users_avatar");
-            if (ossDto != null) {
-                data.setFiles(ossDto);
-            }
-            OssDto ossDto2= sysOssConfigService.getOssByBusiType(data.getId() , "users_sign");
-            if (ossDto2 != null) {
-                data.setFiles2(ossDto2);
-            }
-        }
+        SysUser data = sysUserService.getUserInfo(id);
         // 鐢ㄦ埛宀椾綅鍒楄〃
         data.setPostIdList(sysPostUserService.getUserPosts(id).stream().map(post -> post.getId())
                 .collect(Collectors.toList()));

--
Gitblit v1.9.1