Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-health-science
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐俊
yn-health-science
Commits
0e9cfd22
Commit
0e9cfd22
authored
Jan 08, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9b074700
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ComExpertController.java
...java/com/yiboshi/science/rest/v1/ComExpertController.java
+5
-2
ComExpertServiceImpl.java
...om/yiboshi/science/service/impl/ComExpertServiceImpl.java
+0
-3
No files found.
science-admin/src/main/java/com/yiboshi/science/rest/v1/ComExpertController.java
View file @
0e9cfd22
...
...
@@ -27,6 +27,9 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Objects
;
import
static
com
.
yiboshi
.
science
.
utils
.
StringUtil
.
hideAllIdCardNum
;
import
static
com
.
yiboshi
.
science
.
utils
.
StringUtil
.
hideAllPhoneNum
;
@Api
(
tags
=
"com-expert"
,
description
=
"专家表"
)
@RestController
...
...
@@ -58,6 +61,8 @@ public class ComExpertController extends BaseController<ComExpertService, ComExp
Pagination
<
ComExpertDTO
>
page
=
comExpertService
.
getListByPage
(
vo
);
if
(
null
!=
page
&&
null
!=
page
.
getDataList
()
&&
page
.
getDataList
().
size
()
!=
0
)
{
page
.
getDataList
().
forEach
((
e
)
->
{
e
.
setCertId
(
hideAllIdCardNum
(
e
.
getCertId
()));
e
.
setMobile
(
hideAllPhoneNum
(
e
.
getMobile
()));
e
.
setExpertStateName
(
CommonEnum
.
loginState
.
getEnum
(
e
.
getExpertState
()).
getDescription
());
List
<
ComExpertSpecDTO
>
ExpertSpecList
=
comExpertSpecService
.
getListByExpertId
(
e
.
getId
());
e
.
setSpecList
(
ExpertSpecList
);
...
...
@@ -104,8 +109,6 @@ public class ComExpertController extends BaseController<ComExpertService, ComExp
Pagination
<
ComExpertDTO
>
page
=
comExpertService
.
getListByPage
(
vo
);
if
(
null
!=
page
&&
null
!=
page
.
getDataList
()
&&
page
.
getDataList
().
size
()
!=
0
)
{
page
.
getDataList
().
forEach
((
e
)
->
{
// e.setCertId(hideAllIdCardNum(e.getCertId()));
// e.setMobile(concealAllPhoneNum(e.getMobile()));
e
.
setAssignInfo
(
ComProjectAssignService
.
getAssignCount
(
e
.
getId
()));
});
}
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComExpertServiceImpl.java
View file @
0e9cfd22
...
...
@@ -109,9 +109,6 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
ComExpertDTO
dto
=
comExpertDAO
.
getExpertById
(
id
);
if
(
null
!=
dto
)
{
dto
.
setSpecList
(
comExpertSpecService
.
getListByExpertId
(
id
));
dto
.
setCertId
(
hideAllIdCardNum
(
dto
.
getCertId
()));
// if (Objects.nonNull(dto.getMobile()))
// dto.setMobile(hideAllPhoneNum(dto.getMobile()));
}
return
dto
;
}
...
...
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