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
9e231113
Commit
9e231113
authored
Dec 28, 2019
by
tianbj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成栏目
parent
1cddd4db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
GeneraterAction.java
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
+3
-3
No files found.
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
View file @
9e231113
...
@@ -151,14 +151,14 @@ public class GeneraterAction extends BaseAction {
...
@@ -151,14 +151,14 @@ public class GeneraterAction extends BaseAction {
@RequestMapping
(
"/{CategoryId}/genernateColumn"
)
@RequestMapping
(
"/{CategoryId}/genernateColumn"
)
@RequiresPermissions
(
"cms:generate:column"
)
@RequiresPermissions
(
"cms:generate:column"
)
@ResponseBody
@ResponseBody
public
void
genernateColumn
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@PathVariable
String
CategoryId
)
{
public
void
genernateColumn
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@PathVariable
int
CategoryId
)
{
// 获取站点id
// 获取站点id
AppEntity
app
=
BasicUtil
.
getApp
();
AppEntity
app
=
BasicUtil
.
getApp
();
List
<
CategoryEntity
>
columns
=
new
ArrayList
<
CategoryEntity
>();
List
<
CategoryEntity
>
columns
=
new
ArrayList
<
CategoryEntity
>();
// 如果栏目id小于0则更新所有的栏目,否则只更新选中的栏目
// 如果栏目id小于0则更新所有的栏目,否则只更新选中的栏目
if
(
StringUtils
.
isNotBlank
(
CategoryId
)
)
{
if
(
CategoryId
>
0
)
{
CategoryEntity
categoryEntity
=
new
CategoryEntity
();
CategoryEntity
categoryEntity
=
new
CategoryEntity
();
categoryEntity
.
setId
(
CategoryId
);
categoryEntity
.
setId
(
CategoryId
+
""
);
categoryEntity
.
setAppId
(
app
.
getAppId
());
categoryEntity
.
setAppId
(
app
.
getAppId
());
columns
=
categoryBiz
.
queryChilds
(
categoryEntity
);
columns
=
categoryBiz
.
queryChilds
(
categoryEntity
);
}
else
{
}
else
{
...
...
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