Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
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
liqin
chnmuseum-party
Commits
5cc29b80
Commit
5cc29b80
authored
May 15, 2021
by
jiawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG修改====》》单位管理员只能起、禁用修改自己单位人员及下属单位创建的学习内容
parent
826b2276
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
LearningContentController.java
...useum/party/web/controller/LearningContentController.java
+22
-0
No files found.
src/main/java/cn/chnmuseum/party/web/controller/LearningContentController.java
View file @
5cc29b80
...
...
@@ -202,6 +202,17 @@ public class LearningContentController extends BaseController {
}
final
LearningContent
one
=
this
.
learningContentService
.
getById
(
learningContent
.
getId
());
//单位管理员只能修改所属机构及其子机构下的的学习内容
List
<
String
>
curUserSubOrgIds
=
getCurUserSubOrgIds
();
if
(!
CollectionUtils
.
isEmpty
(
curUserSubOrgIds
)){
String
organCode
=
one
.
getOrganCode
();
boolean
contains
=
curUserSubOrgIds
.
contains
(
organCode
);
if
(!
contains
){
return
getFailResult
(
"单位管理员只能修改所属机构及其子机构的学习内容"
);
}
}
one
.
setAuditStatus
(
AuditStatusEnum
.
TBC
.
name
());
this
.
learningContentService
.
updateById
(
one
);
...
...
@@ -654,6 +665,17 @@ public class LearningContentController extends BaseController {
final
TUser
user
=
getcurUser
();
LearningContent
learningContent
=
this
.
learningContentService
.
getById
(
id
);
//单位管理员只能禁用或启用所属机构及其子机构的学习内容
List
<
String
>
curUserSubOrgIds
=
getCurUserSubOrgIds
();
if
(!
CollectionUtils
.
isEmpty
(
curUserSubOrgIds
)){
String
organCode
=
learningContent
.
getOrganCode
();
boolean
contains
=
curUserSubOrgIds
.
contains
(
organCode
);
if
(!
contains
){
return
getFailResult
(
"单位管理员只能禁用或启用所属机构及其子机构的学习内容"
);
}
}
final
Audit
audit
=
Audit
.
builder
()
.
content
(
learningContent
.
getName
())
.
name
(
learningContent
.
getName
())
...
...
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