Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
relation
Commits
9704da5d
Commit
9704da5d
authored
Aug 01, 2025
by
wujipeng
Browse files
用户详情增加展示信息
parent
ba7ba16e
Changes
3
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/model/dto/UserDTO.java
View file @
9704da5d
...
...
@@ -14,6 +14,4 @@ public class UserDTO extends UserEntity {
private
List
<
UserAccountEntity
>
userAccountList
;
@ApiModelProperty
(
"关系,方便解析和会回显"
)
private
List
<
RelationShipDTO
>
relationShipList
;
}
src/main/java/com/platform/model/entity/UserEntity.java
View file @
9704da5d
...
...
@@ -42,4 +42,8 @@ public class UserEntity {
@ApiModelProperty
(
"关系"
)
@TableField
(
"relation_ship"
)
private
String
relationShip
;
@ApiModelProperty
(
"关系,方便解析和会回显"
)
@TableField
(
exist
=
false
)
private
List
<
RelationShipDTO
>
relationShipList
;
}
src/main/java/com/platform/service/impl/UserServiceImpl.java
View file @
9704da5d
...
...
@@ -13,6 +13,7 @@ import com.platform.model.vo.UserVO;
import
com.platform.service.UserAccountService
;
import
com.platform.service.UserService
;
import
com.platform.utils.DozerUtils
;
import
com.platform.utils.StringUtils
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
@@ -34,6 +35,13 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
List
<
UserAccountEntity
>
userAccountEntityList
=
userAccountService
.
queryListByUserName
(
userName
);
userVO
.
setUserAccountList
(
userAccountEntityList
);
}
String
relationShip
=
userEntity
.
getRelationShip
();
if
(
StringUtils
.
isNotEmpty
(
relationShip
)){
List
<
RelationShipDTO
>
relationShipDTOS
=
JSON
.
parseArray
(
relationShip
,
RelationShipDTO
.
class
);
if
(!
relationShipDTOS
.
isEmpty
()){
userVO
.
setRelationShipList
(
relationShipDTOS
);
}
}
return
userVO
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment