Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
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
西魏
cms_sys
Commits
1e6ebdcc
Commit
1e6ebdcc
authored
Oct 31, 2020
by
sgjj
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/5.2' into 5.2
parents
a50f0f7b
2bc41123
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
5.2-patch.sql
doc/5.2-patch.sql
+1
-6
ContentAction.java
src/main/java/net/mingsoft/cms/action/ContentAction.java
+4
-3
No files found.
doc/5.2-patch.sql
View file @
1e6ebdcc
ALTER
TABLE
`mdiy_model`
CHANGE
COLUMN
`model_app_id`
`app_id`
int
(
11
)
NULL
DEFAULT
NULL
COMMENT
'应用编号'
AFTER
`model_json`
;
ALTER
TABLE
`mdiy_dict`
ADD
COLUMN
`dict_enable`
varchar
(
11
)
CHARACTER
SET
utf8
COLLATE
utf8_bin
NULL
DEFAULT
'1'
COMMENT
'启用状态'
AFTER
`is_child`
;
ALTER
TABLE
`cms_category`
ADD
COLUMN
`leaf`
bigint
(
1
)
NULL
DEFAULT
NULL
COMMENT
'是否是叶子节点'
AFTER
`category_pinyin`
;
ALTER
TABLE
`cms_category`
ADD
COLUMN
`leaf`
bigint
(
1
)
NULL
DEFAULT
NULL
COMMENT
'是否是叶子节点'
AFTER
`category_pinyin`
;
ALTER
TABLE
`cms_category`
ADD
COLUMN
`top_id`
bigint
(
20
)
NULL
DEFAULT
NULL
COMMENT
'顶级id'
AFTER
`leaf`
;
ALTER
TABLE
`cms_category`
ADD
COLUMN
`top_id`
bigint
(
20
)
NULL
DEFAULT
NULL
COMMENT
'顶级id'
AFTER
`leaf`
;
ALTER
TABLE
`cms_category`
MODIFY
COLUMN
`id`
bigint
(
20
)
UNSIGNED
NOT
NULL
FIRST
;
ALTER
TABLE
`cms_category`
MODIFY
COLUMN
`id`
bigint
(
20
)
UNSIGNED
NOT
NULL
FIRST
;
...
...
src/main/java/net/mingsoft/cms/action/ContentAction.java
View file @
1e6ebdcc
...
@@ -22,6 +22,7 @@ import springfox.documentation.annotations.ApiIgnore;
...
@@ -22,6 +22,7 @@ import springfox.documentation.annotations.ApiIgnore;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -183,11 +184,11 @@ public class ContentAction extends BaseAction {
...
@@ -183,11 +184,11 @@ public class ContentAction extends BaseAction {
@LogAnn
(
title
=
"删除文章"
,
businessType
=
BusinessTypeEnum
.
DELETE
)
@LogAnn
(
title
=
"删除文章"
,
businessType
=
BusinessTypeEnum
.
DELETE
)
@RequiresPermissions
(
"cms:content:del"
)
@RequiresPermissions
(
"cms:content:del"
)
public
ResultData
delete
(
@RequestBody
List
<
ContentEntity
>
contents
,
HttpServletResponse
response
,
HttpServletRequest
request
)
{
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
++){
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
();
return
ResultData
.
build
().
success
();
}
}
/**
/**
...
...
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