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
e3aa79c2
Commit
e3aa79c2
authored
Dec 04, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
协议list返回接口增加修改用户名称显示
parent
6131654c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
sst-manager/src/main/java/com/mortals/xhx/module/sst/service/impl/SstAgreementServiceImpl.java
.../xhx/module/sst/service/impl/SstAgreementServiceImpl.java
+27
-1
No files found.
sst-manager/src/main/java/com/mortals/xhx/module/sst/service/impl/SstAgreementServiceImpl.java
View file @
e3aa79c2
package
com.mortals.xhx.module.sst.service.impl
;
package
com.mortals.xhx.module.sst.service.impl
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.xhx.common.code.YesNoEnum
;
import
com.mortals.xhx.common.pdu.user.UserPdu
;
import
com.mortals.xhx.feign.user.IUserFeign
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
...
@@ -6,6 +13,9 @@ import com.mortals.framework.model.Context;
...
@@ -6,6 +13,9 @@ import com.mortals.framework.model.Context;
import
com.mortals.xhx.module.sst.dao.SstAgreementDao
;
import
com.mortals.xhx.module.sst.dao.SstAgreementDao
;
import
com.mortals.xhx.module.sst.model.SstAgreementEntity
;
import
com.mortals.xhx.module.sst.model.SstAgreementEntity
;
import
com.mortals.xhx.module.sst.service.SstAgreementService
;
import
com.mortals.xhx.module.sst.service.SstAgreementService
;
import
java.util.List
;
/**
/**
* SstAgreementService
* SstAgreementService
* 协议管理 service实现
* 协议管理 service实现
...
@@ -15,5 +25,21 @@ import com.mortals.xhx.module.sst.service.SstAgreementService;
...
@@ -15,5 +25,21 @@ import com.mortals.xhx.module.sst.service.SstAgreementService;
*/
*/
@Service
(
"sstAgreementService"
)
@Service
(
"sstAgreementService"
)
public
class
SstAgreementServiceImpl
extends
AbstractCRUDServiceImpl
<
SstAgreementDao
,
SstAgreementEntity
,
Long
>
implements
SstAgreementService
{
public
class
SstAgreementServiceImpl
extends
AbstractCRUDServiceImpl
<
SstAgreementDao
,
SstAgreementEntity
,
Long
>
implements
SstAgreementService
{
@Autowired
private
IUserFeign
userFeign
;
@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
());
}
}
});
}
}
}
}
\ No newline at end of file
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