Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
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
090021ae
Commit
090021ae
authored
Apr 10, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
cab8df9b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
AuditServiceImpl.java
...energy/chnmuseum/party/service/impl/AuditServiceImpl.java
+4
-4
ExhibitionBoardController.java
...useum/party/web/controller/ExhibitionBoardController.java
+1
-0
LearningContentController.java
...useum/party/web/controller/LearningContentController.java
+1
-0
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/service/impl/AuditServiceImpl.java
View file @
090021ae
...
@@ -222,10 +222,10 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
...
@@ -222,10 +222,10 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
// case ACCOUNT:
// case ACCOUNT:
// break;
// break;
case
EXHIBITION_BOARD:
case
EXHIBITION_BOARD:
update
=
fill
VideoContentByExhibitionBoard
(
audit
);
update
=
fill
ExhibitionBoardByAudit
(
audit
);
break
;
break
;
case
LEARNING_CONTENT:
case
LEARNING_CONTENT:
update
=
fill
VideoContentByLearningConten
t
(
audit
);
update
=
fill
LearningContentByAudi
t
(
audit
);
break
;
break
;
default
:
default
:
throw
new
InterfaceException
(
"type参数不正确"
);
throw
new
InterfaceException
(
"type参数不正确"
);
...
@@ -286,7 +286,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
...
@@ -286,7 +286,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
* @param audit
* @param audit
* @return
* @return
*/
*/
public
boolean
fill
VideoContentByExhibitionBoard
(
Audit
audit
)
{
public
boolean
fill
ExhibitionBoardByAudit
(
Audit
audit
)
{
ExhibitionBoard
exhibitionBoard
=
new
ExhibitionBoard
();
ExhibitionBoard
exhibitionBoard
=
new
ExhibitionBoard
();
exhibitionBoard
.
setId
(
audit
.
getRefItemId
());
exhibitionBoard
.
setId
(
audit
.
getRefItemId
());
exhibitionBoard
.
setAuditStatus
(
audit
.
getStatus
());
exhibitionBoard
.
setAuditStatus
(
audit
.
getStatus
());
...
@@ -329,7 +329,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
...
@@ -329,7 +329,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
* @param audit
* @param audit
* @return
* @return
*/
*/
public
boolean
fill
VideoContentByLearningConten
t
(
Audit
audit
)
{
public
boolean
fill
LearningContentByAudi
t
(
Audit
audit
)
{
LearningContent
learningContent
=
new
LearningContent
();
LearningContent
learningContent
=
new
LearningContent
();
learningContent
.
setAuditStatus
(
audit
.
getStatus
());
learningContent
.
setAuditStatus
(
audit
.
getStatus
());
learningContent
.
setId
(
audit
.
getRefItemId
());
learningContent
.
setId
(
audit
.
getRefItemId
());
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/ExhibitionBoardController.java
View file @
090021ae
...
@@ -382,6 +382,7 @@ public class ExhibitionBoardController extends BaseController {
...
@@ -382,6 +382,7 @@ public class ExhibitionBoardController extends BaseController {
.
level
(
AuditStatusEnum
.
TBC
.
name
())
.
level
(
AuditStatusEnum
.
TBC
.
name
())
.
build
();
.
build
();
this
.
auditService
.
save
(
audit
);
this
.
auditService
.
save
(
audit
);
this
.
exhibitionBoardService
.
updateById
(
ExhibitionBoard
.
builder
().
id
(
id
).
auditStatus
(
AuditStatusEnum
.
TBC
.
name
()).
build
());
return
getSuccessResult
();
return
getSuccessResult
();
}
}
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/LearningContentController.java
View file @
090021ae
...
@@ -473,6 +473,7 @@ public class LearningContentController extends BaseController {
...
@@ -473,6 +473,7 @@ public class LearningContentController extends BaseController {
.
level
(
AuditStatusEnum
.
TBC
.
name
())
.
level
(
AuditStatusEnum
.
TBC
.
name
())
.
build
();
.
build
();
this
.
auditService
.
save
(
audit
);
this
.
auditService
.
save
(
audit
);
this
.
learningContentService
.
updateById
(
LearningContent
.
builder
().
id
(
id
).
auditStatus
(
AuditStatusEnum
.
TBC
.
name
()).
build
());
return
getSuccessResult
();
return
getSuccessResult
();
}
}
...
...
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