Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Carpe diem
MCMS
Commits
68cce8c4
Commit
68cce8c4
authored
4 years ago
by
xierz
Browse files
Options
Download
Email Patches
Plain Diff
更改文章删除方式
parent
2f2f9ddf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/net/mingsoft/cms/action/ContentAction.java
+4
-3
src/main/java/net/mingsoft/cms/action/ContentAction.java
with
4 additions
and
3 deletions
+4
-3
src/main/java/net/mingsoft/cms/action/ContentAction.java
+
4
-
3
View file @
68cce8c4
...
...
@@ -22,6 +22,7 @@ import springfox.documentation.annotations.ApiIgnore;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
...
...
@@ -183,11 +184,11 @@ public class ContentAction extends BaseAction {
@LogAnn
(
title
=
"删除文章"
,
businessType
=
BusinessTypeEnum
.
DELETE
)
@RequiresPermissions
(
"cms:content:del"
)
public
ResultData
delete
(
@RequestBody
List
<
ContentEntity
>
contents
,
HttpServletResponse
response
,
HttpServletRequest
request
)
{
int
[]
ids
=
new
int
[
contents
.
size
()
]
;
List
<
String
>
ids
=
new
ArrayList
<>
();
for
(
int
i
=
0
;
i
<
contents
.
size
();
i
++){
ids
[
i
]
=
Integer
.
parseInt
(
contents
.
get
(
i
).
getId
())
;
ids
.
add
(
contents
.
get
(
i
).
getId
());
}
contentBiz
.
delete
(
ids
);
contentBiz
.
removeByIds
(
ids
);
return
ResultData
.
build
().
success
();
}
/**
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help