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
483457d9
Commit
483457d9
authored
Dec 09, 2024
by
钱义海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加专家推荐
parent
18af65ed
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
ComExpertController.java
...java/com/yiboshi/science/rest/v1/ComExpertController.java
+3
-0
ComExpertServiceImpl.java
...om/yiboshi/science/service/impl/ComExpertServiceImpl.java
+3
-0
No files found.
science-admin/src/main/java/com/yiboshi/science/rest/v1/ComExpertController.java
View file @
483457d9
...
...
@@ -119,11 +119,14 @@ public class ComExpertController extends BaseController<ComExpertService, ComExp
private
void
checkRole
(
@RequestBody
@Validated
ComExpertDTO
dto
)
{
if
(
SecurityUserHolder
.
getRoles
().
contains
(
CommonEnum
.
systemRole
.
unit
.
getCode
().
toString
()))
{
dto
.
setUnitId
(
SecurityUserHolder
.
getUnitId
());
ComUnitDTO
comUnitDTO
=
comUnitService
.
getUnitById
(
SecurityUserHolder
.
getUnitId
());
dto
.
setUnitName
(
comUnitDTO
.
getUnitName
());
}
else
{
if
(
Objects
.
nonNull
(
dto
.
getTreeCode
()))
{
ComUnitDTO
unit
=
comUnitService
.
getByTreeCode
(
dto
.
getTreeCode
());
if
(
null
!=
unit
)
{
dto
.
setUnitId
(
unit
.
getId
());
dto
.
setUnitName
(
unit
.
getUnitName
());
}
}
}
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComExpertServiceImpl.java
View file @
483457d9
...
...
@@ -167,6 +167,9 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
comExpert
=
new
ComExpert
();
comExpert
.
setId
(
dto
.
getId
());
comExpert
.
setRemark
(
dto
.
getRemark
());
if
(
dto
.
getReportState
()!=
null
){
comExpert
.
setReportState
(
dto
.
getReportState
());
}
this
.
update
(
comExpert
);
comPersonService
.
updateById
(
comPerson
);
...
...
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