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
30a549fc
Commit
30a549fc
authored
Nov 12, 2020
by
guwd
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
# Conflicts: # doc/5.2-patch.sql
parents
78dcd975
c7cb3f6a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
14 deletions
+2
-14
5.2-patch.sql
doc/5.2-patch.sql
+0
-0
CategoryBizImpl.java
src/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java
+0
-12
index.ftl
src/main/webapp/WEB-INF/manager/cms/category/index.ftl
+1
-1
main.ftl
src/main/webapp/WEB-INF/manager/cms/content/main.ftl
+1
-1
No files found.
doc/5.2-patch.sql
View file @
30a549fc
This diff is collapsed.
Click to expand it.
src/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java
View file @
30a549fc
...
...
@@ -108,7 +108,6 @@ public class CategoryBizImpl extends BaseBizImpl<ICategoryDao, CategoryEntity> i
//保存链接地址
String
path
=
ObjectUtil
.
isNotNull
(
parentCategory
)?
parentCategory
.
getCategoryPath
():
""
;
categoryEntity
.
setCategoryPath
(
path
+
"/"
+
categoryEntity
.
getCategoryPinyin
());
removeVirgule
(
categoryEntity
);
setTopId
(
categoryEntity
);
super
.
updateById
(
categoryEntity
);
}
...
...
@@ -146,7 +145,6 @@ public class CategoryBizImpl extends BaseBizImpl<ICategoryDao, CategoryEntity> i
//判断是否有parentIds
x
.
setCategoryPath
(
path
+
"/"
+
x
.
getCategoryPinyin
());
//去除多余的/符号
removeVirgule
(
x
);
super
.
updateEntity
(
x
);
setChildParentId
(
x
);
});
...
...
@@ -167,20 +165,10 @@ public class CategoryBizImpl extends BaseBizImpl<ICategoryDao, CategoryEntity> i
}
setParentLeaf
(
entity
);
setTopId
(
entity
);
removeVirgule
(
entity
);
super
.
updateById
(
entity
);
setChildParentId
(
entity
);
}
/**去除多余的/符号
* @param entity
*/
private
void
removeVirgule
(
CategoryEntity
entity
)
{
if
(
entity
.
getCategoryPath
().
startsWith
(
"/"
))
{
entity
.
setCategoryPath
(
entity
.
getCategoryPath
().
substring
(
1
));
}
}
@Override
public
void
update
(
CategoryEntity
entity
)
{
...
...
src/main/webapp/WEB-INF/manager/cms/category/index.ftl
View file @
30a549fc
...
...
@@ -31,7 +31,7 @@
{{emptyText}}
</template>
<el-table-column
type=
"selection"
width=
"40"
></el-table-column>
<el-table-column
label=
"编号"
width=
"
1
20"
prop=
"id"
>
<el-table-column
label=
"编号"
width=
"
2
20"
prop=
"id"
>
<template
slot=
'header'
>
编号
<el-popover
placement=
"top-start"
title=
"提示"
trigger=
"hover"
>
<a
href=
"http://doc.mingsoft.net/plugs-cms/biao-qian/lan-mu-lie-biao-ms-channel.html"
target=
"_blank"
>
${'$'}{field.id}
</a>
...
...
src/main/webapp/WEB-INF/manager/cms/content/main.ftl
View file @
30a549fc
...
...
@@ -60,7 +60,7 @@
{{emptyText}}
</template>
<el-table-column
type=
"selection"
width=
"40"
></el-table-column>
<el-table-column
label=
"编号"
width=
"
7
0"
prop=
"id"
>
<el-table-column
label=
"编号"
width=
"
20
0"
prop=
"id"
>
<template
slot=
'header'
>
编号
<el-popover
placement=
"top-start"
title=
"提示"
trigger=
"hover"
>
<a
href=
"http://doc.mingsoft.net/plugs-cms/biao-qian/wen-zhang-lie-biao-ms-arclist.html"
target=
"_blank"
>
${'$'}{field.id}
</a>
...
...
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