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
12a2b736
Commit
12a2b736
authored
Apr 20, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
e82d56ae
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
ExhibitionBoardController.java
...useum/party/web/controller/ExhibitionBoardController.java
+8
-2
LearningContentController.java
...useum/party/web/controller/LearningContentController.java
+6
-1
VideoContentController.java
...hnmuseum/party/web/controller/VideoContentController.java
+5
-1
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/ExhibitionBoardController.java
View file @
12a2b736
...
...
@@ -99,6 +99,7 @@ public class ExhibitionBoardController extends BaseController {
final
Audit
audit
=
Audit
.
builder
()
.
content
(
exhibitionBoard
.
getName
())
.
name
(
exhibitionBoard
.
getName
())
.
refItemId
(
exhibitionBoard
.
getId
())
.
userId
(
user
.
getId
())
.
type
(
AuditTypeEnum
.
EXHIBITION_BOARD
.
name
())
...
...
@@ -167,6 +168,7 @@ public class ExhibitionBoardController extends BaseController {
final
Audit
audit
=
Audit
.
builder
()
.
content
(
exhibitionBoard
.
getName
())
.
name
(
exhibitionBoard
.
getName
())
.
refItemId
(
exhibitionBoard
.
getId
())
.
userId
(
user
.
getId
())
.
type
(
AuditTypeEnum
.
EXHIBITION_BOARD
.
name
())
...
...
@@ -397,9 +399,11 @@ public class ExhibitionBoardController extends BaseController {
@MethodLog
(
operModule
=
OperModule
.
DISPLAYCONTENT
,
operType
=
OperType
.
UPPER
)
public
Map
<
String
,
Object
>
enableExhibitionBoard
(
@PathVariable
(
"id"
)
String
id
,
@RequestParam
(
"isPublish"
)
Boolean
isPublish
)
{
TUser
user
=
getcurUser
();
final
ExhibitionBoard
exhibitionBoard
=
this
.
exhibitionBoardService
.
getById
(
id
);
final
Audit
audit
=
Audit
.
builder
()
.
userId
(
user
.
getId
())
.
content
(
this
.
exhibitionBoardService
.
getById
(
id
).
getName
())
.
content
(
exhibitionBoard
.
getName
())
.
name
(
exhibitionBoard
.
getName
())
.
refItemId
(
id
)
.
type
(
AuditTypeEnum
.
EXHIBITION_BOARD
.
name
())
.
operation
(
isPublish
?
AuditOperationEnum
.
UPPER
.
name
()
:
AuditOperationEnum
.
LOWER
.
name
())
...
...
@@ -420,8 +424,10 @@ public class ExhibitionBoardController extends BaseController {
@MethodLog
(
operModule
=
OperModule
.
DISPLAYCONTENT
,
operType
=
OperType
.
DELETE
)
public
Map
<
String
,
Object
>
deleteExhibitionBoard
(
@PathVariable
(
"id"
)
String
id
)
{
TUser
user
=
getcurUser
();
final
ExhibitionBoard
exhibitionBoard
=
this
.
exhibitionBoardService
.
getById
(
id
);
final
Audit
audit
=
Audit
.
builder
()
.
content
(
this
.
exhibitionBoardService
.
getById
(
id
).
getName
())
.
content
(
exhibitionBoard
.
getName
())
.
name
(
exhibitionBoard
.
getName
())
.
userId
(
user
.
getId
())
.
refItemId
(
id
)
.
type
(
AuditTypeEnum
.
EXHIBITION_BOARD
.
name
())
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/LearningContentController.java
View file @
12a2b736
...
...
@@ -133,6 +133,7 @@ public class LearningContentController extends BaseController {
if
(
result
)
{
final
Audit
audit
=
Audit
.
builder
()
.
content
(
learningContent
.
getName
())
.
name
(
learningContent
.
getName
())
.
refItemId
(
learningContent
.
getId
())
.
type
(
AuditTypeEnum
.
LEARNING_CONTENT
.
name
())
.
userId
(
tUser
.
getId
())
...
...
@@ -206,6 +207,7 @@ public class LearningContentController extends BaseController {
if
(
flag
)
{
final
Audit
audit
=
Audit
.
builder
()
.
content
(
learningContent
.
getName
())
.
name
(
learningContent
.
getName
())
.
userId
(
user
.
getId
())
.
refItemId
(
learningContent
.
getId
())
.
type
(
AuditTypeEnum
.
LEARNING_CONTENT
.
name
())
...
...
@@ -502,8 +504,11 @@ public class LearningContentController extends BaseController {
@MethodLog
(
operModule
=
OperModule
.
LEARNCONTENT
,
operType
=
OperType
.
ENABLE
)
public
Map
<
String
,
Object
>
enableLearningContent
(
@PathVariable
(
"id"
)
String
id
,
@RequestParam
(
"isPublish"
)
Boolean
isPublish
)
{
TUser
user
=
getcurUser
();
LearningContent
learningContent
=
this
.
learningContentService
.
getById
(
id
);
final
Audit
audit
=
Audit
.
builder
()
.
content
(
this
.
learningContentService
.
getById
(
id
).
getName
())
.
content
(
learningContent
.
getName
())
.
name
(
learningContent
.
getName
())
.
refItemId
(
id
)
.
userId
(
user
.
getId
())
.
type
(
AuditTypeEnum
.
LEARNING_CONTENT
.
name
())
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/VideoContentController.java
View file @
12a2b736
...
...
@@ -94,6 +94,7 @@ public class VideoContentController extends BaseController {
final
Audit
audit
=
Audit
.
builder
()
.
content
(
videoContent
.
getName
())
.
name
(
videoContent
.
getName
())
.
userId
(
user
.
getId
())
.
refItemId
(
videoContent
.
getId
())
.
type
(
AuditTypeEnum
.
VIDEO_CONTENT
.
name
())
...
...
@@ -148,6 +149,7 @@ public class VideoContentController extends BaseController {
final
Audit
audit
=
Audit
.
builder
()
.
content
(
videoContent
.
getName
())
.
name
(
videoContent
.
getName
())
.
userId
(
user
.
getId
())
.
refItemId
(
videoContent
.
getId
())
.
type
(
AuditTypeEnum
.
VIDEO_CONTENT
.
name
())
...
...
@@ -319,8 +321,10 @@ public class VideoContentController extends BaseController {
@MethodLog
(
operModule
=
OperModule
.
VIDEOCONTENT
,
operType
=
OperType
.
DELETE
)
public
Map
<
String
,
Object
>
deleteVideoContent
(
@PathVariable
(
"id"
)
String
id
)
{
TUser
user
=
getcurUser
();
final
VideoContent
videoContent
=
this
.
videoContentService
.
getById
(
id
);
final
Audit
audit
=
Audit
.
builder
()
.
content
(
this
.
videoContentService
.
getById
(
id
).
getName
())
.
content
(
videoContent
.
getName
())
.
name
(
videoContent
.
getName
())
.
refItemId
(
id
)
.
userId
(
user
.
getId
())
.
type
(
AuditTypeEnum
.
VIDEO_CONTENT
.
name
())
...
...
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