Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
self-service
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
self-service
Commits
956e1882
Commit
956e1882
authored
Jan 17, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新用户名bug修改
parent
4f4fefd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
sst-manager/src/main/java/com/mortals/xhx/module/sst/service/impl/SstAgreementServiceImpl.java
.../xhx/module/sst/service/impl/SstAgreementServiceImpl.java
+11
-3
No files found.
sst-manager/src/main/java/com/mortals/xhx/module/sst/service/impl/SstAgreementServiceImpl.java
View file @
956e1882
package
com.mortals.xhx.module.sst.service.impl
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.xhx.base.system.user.model.UserEntity
;
import
com.mortals.xhx.base.system.user.service.UserService
;
import
com.mortals.xhx.common.code.YesNoEnum
;
import
com.mortals.xhx.common.pdu.user.UserPdu
;
import
com.mortals.xhx.feign.user.IUserFeign
;
...
...
@@ -28,15 +30,21 @@ public class SstAgreementServiceImpl extends AbstractCRUDServiceImpl<SstAgreemen
@Autowired
private
IUserFeign
userFeign
;
@Autowired
private
UserService
userService
;
@Override
protected
void
findAfter
(
SstAgreementEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
SstAgreementEntity
>
list
)
throws
AppException
{
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
list
.
stream
().
forEach
(
item
->{
if
(
item
.
getUpdateUserId
()!=
null
)
{
Rest
<
UserPdu
>
resp
=
userFeign
.
info
(
item
.
getUpdateUserId
());
if
(
resp
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
item
.
setUpdateUserName
(
resp
.
getData
().
getRealName
());
// Rest<UserPdu> resp = userFeign.info(item.getUpdateUserId());
// if (resp.getCode() == YesNoEnum.YES.getValue()) {
// item.setUpdateUserName(resp.getData().getRealName());
// }
UserEntity
userEntity
=
userService
.
get
(
item
.
getUpdateUserId
());
if
(
userEntity
!=
null
){
item
.
setUpdateUserName
(
userEntity
.
getRealName
());
}
}
});
...
...
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