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
b1243a1c
Commit
b1243a1c
authored
May 14, 2021
by
jiawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG修改====》》视频内容管理,删除视频,自生状态更改为待初审
parent
ef09e399
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
VideoContentController.java
...hnmuseum/party/web/controller/VideoContentController.java
+10
-0
BaseController.java
...n/chnmuseum/party/web/controller/base/BaseController.java
+17
-0
No files found.
src/main/java/cn/chnmuseum/party/web/controller/VideoContentController.java
View file @
b1243a1c
...
...
@@ -13,6 +13,8 @@ import cn.chnmuseum.party.web.controller.base.BaseController;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.swagger.annotations.Api
;
...
...
@@ -26,6 +28,7 @@ import org.springframework.validation.annotation.Validated;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
...
...
@@ -371,6 +374,13 @@ public class VideoContentController extends BaseController {
.
level
(
AuditStatusEnum
.
TBC
.
name
())
.
build
();
final
boolean
result
=
this
.
auditService
.
save
(
audit
);
//修改自己的状态为 待初审
LambdaUpdateWrapper
<
VideoContent
>
set
=
new
UpdateWrapper
<
VideoContent
>().
lambda
()
.
eq
(
VideoContent:
:
getId
,
videoContent
.
getId
())
.
set
(
VideoContent:
:
getUpdateTime
,
LocalDateTime
.
now
())
.
set
(
VideoContent:
:
getAuditStatus
,
AuditStatusEnum
.
TBC
.
name
());
boolean
update
=
videoContentService
.
update
(
set
);
if
(
result
)
{
return
getSuccessResult
();
}
...
...
src/main/java/cn/chnmuseum/party/web/controller/base/BaseController.java
View file @
b1243a1c
...
...
@@ -83,6 +83,23 @@ public class BaseController implements Serializable {
return
map
;
}
/**
* 返回成功,带自定义消息提示
*
* @return map
*/
protected
Map
<
String
,
Object
>
getSuccessResult
(
String
message
)
{
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
map
.
put
(
RESULT_INFO_ENUM
.
RESULT_CODE
.
getKey
(),
RESPONSE_CODE_ENUM
.
REQUEST_SUCCESS
.
getResultCode
());
map
.
put
(
RESULT_INFO_ENUM
.
RESULT_MSG
.
getKey
(),
RESPONSE_CODE_ENUM
.
REQUEST_SUCCESS
.
getMessage
());
if
(
message
!=
null
){
map
.
put
(
RESULT_INFO_ENUM
.
RESULT_MSG
.
getKey
(),
message
);
}
map
.
put
(
RESULT_INFO_ENUM
.
RESULT_BODY
.
getKey
(),
""
);
return
map
;
}
/**
* 返回失败
*
...
...
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