Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
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
b5004ee8
Commit
b5004ee8
authored
Oct 13, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e3b8a481
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
0 deletions
+27
-0
CommonEnum.java
...main/java/com/yiboshi/science/enumeration/CommonEnum.java
+1
-0
ComExpertController.java
...java/com/yiboshi/science/rest/v1/ComExpertController.java
+8
-0
ComExpertService.java
...in/java/com/yiboshi/science/service/ComExpertService.java
+8
-0
ComExpertServiceImpl.java
...om/yiboshi/science/service/impl/ComExpertServiceImpl.java
+10
-0
No files found.
science-admin/src/main/java/com/yiboshi/science/enumeration/CommonEnum.java
View file @
b5004ee8
...
...
@@ -686,6 +686,7 @@ public class CommonEnum {
expertAdd
(
"expertAdd"
,
"添加专家"
),
expertStateUpdate
(
"expertStateUpdate"
,
"专家状态修改"
),
expertUpdate
(
"expertUpdate"
,
"专家修改"
),
expertReport
(
"expertReport"
,
"专家上报"
),
expertDelete
(
"expertDelete"
,
"删除专家"
),
managerAdd
(
"managerAdd"
,
"添加管理员"
),
...
...
science-admin/src/main/java/com/yiboshi/science/rest/v1/ComExpertController.java
View file @
b5004ee8
...
...
@@ -137,6 +137,14 @@ public class ComExpertController extends BaseController<ComExpertService, ComExp
return
ResponseDataModel
.
ok
(
comExpertService
.
update
(
dto
));
}
@ApiOperation
(
value
=
"更新专家"
,
httpMethod
=
"POST"
,
notes
=
"添加或更新专家"
)
@RequestMapping
(
"/report"
)
@PutMapping
@Logs
(
value
=
CommonEnum
.
logType
.
expertReport
)
public
ResponseDataModel
<
String
>
report
(
@Validated
@RequestBody
ComExpertDTO
dto
)
{
return
ResponseDataModel
.
ok
(
comExpertService
.
report
(
dto
));
}
private
void
checkRole
(
@RequestBody
@Validated
ComExpertDTO
dto
)
{
if
(
SecurityUserHolder
.
getRoles
().
contains
(
CommonEnum
.
systemRole
.
unit
.
getCode
().
toString
()))
{
dto
.
setUnitId
(
SecurityUserHolder
.
getUnitId
());
...
...
science-admin/src/main/java/com/yiboshi/science/service/ComExpertService.java
View file @
b5004ee8
...
...
@@ -35,6 +35,14 @@ public interface ComExpertService extends BaseService<ComExpertQueryVO, ComExper
*/
String
update
(
ComExpertDTO
dto
);
/**
*
*
* @param dto
* @return
*/
String
report
(
ComExpertDTO
dto
);
/**
* 移除单位管理员
*/
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComExpertServiceImpl.java
View file @
b5004ee8
...
...
@@ -168,6 +168,16 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
return
dto
.
getId
();
}
@Transactional
public
String
report
(
ComExpertDTO
dto
)
{
ComExpert
comExpert
=
this
.
entityById
(
dto
.
getId
());
if
(
null
==
comExpert
)
throw
new
BusinessException
(
"专家不存在或已删除!"
);
StringUtil
.
copyObj2Obj
(
dto
,
comExpert
);
this
.
update
(
comExpert
);
return
dto
.
getId
();
}
@Transactional
public
String
deleteExpert
(
ComExpertDTO
d
)
{
// this.deleteById(d.getId());
...
...
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