Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
9e231113
Commit
9e231113
authored
Dec 28, 2019
by
tianbj
Browse files
生成栏目
parent
1cddd4db
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
View file @
9e231113
...
...
@@ -151,14 +151,14 @@ public class GeneraterAction extends BaseAction {
@RequestMapping
(
"/{CategoryId}/genernateColumn"
)
@RequiresPermissions
(
"cms:generate:column"
)
@ResponseBody
public
void
genernateColumn
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@PathVariable
Str
in
g
CategoryId
)
{
public
void
genernateColumn
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@PathVariable
in
t
CategoryId
)
{
// 获取站点id
AppEntity
app
=
BasicUtil
.
getApp
();
List
<
CategoryEntity
>
columns
=
new
ArrayList
<
CategoryEntity
>();
// 如果栏目id小于0则更新所有的栏目,否则只更新选中的栏目
if
(
StringUtils
.
isNotBlank
(
CategoryId
)
)
{
if
(
CategoryId
>
0
)
{
CategoryEntity
categoryEntity
=
new
CategoryEntity
();
categoryEntity
.
setId
(
CategoryId
);
categoryEntity
.
setId
(
CategoryId
+
""
);
categoryEntity
.
setAppId
(
app
.
getAppId
());
columns
=
categoryBiz
.
queryChilds
(
categoryEntity
);
}
else
{
...
...
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