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
6e8fb116
Commit
6e8fb116
authored
Mar 18, 2021
by
msgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mybatis-plus规范
名称规范
parent
67a944a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
CategoryAction.java
src/main/java/net/mingsoft/cms/action/CategoryAction.java
+1
-1
GeneraterAction.java
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
+3
-3
CmsParserUtil.java
src/main/java/net/mingsoft/cms/util/CmsParserUtil.java
+1
-1
No files found.
src/main/java/net/mingsoft/cms/action/CategoryAction.java
View file @
6e8fb116
...
@@ -295,7 +295,7 @@ public class CategoryAction extends BaseAction {
...
@@ -295,7 +295,7 @@ public class CategoryAction extends BaseAction {
return
ResultData
.
build
().
error
(
getResString
(
"cannot.select.child"
));
return
ResultData
.
build
().
error
(
getResString
(
"cannot.select.child"
));
}
}
}
}
categoryBiz
.
update
Entity
(
category
);
categoryBiz
.
update
ById
(
category
);
return
ResultData
.
build
().
success
(
category
);
return
ResultData
.
build
().
success
(
category
);
}
}
...
...
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
View file @
6e8fb116
...
@@ -133,7 +133,7 @@ public class GeneraterAction extends BaseAction {
...
@@ -133,7 +133,7 @@ public class GeneraterAction extends BaseAction {
String
generateFileName
=
request
.
getParameter
(
"position"
);
String
generateFileName
=
request
.
getParameter
(
"position"
);
// 获取文件所在路径 首先判断用户输入的模版文件是否存在
// 获取文件所在路径 首先判断用户输入的模版文件是否存在
if
(!
FileUtil
.
exist
(
ParserUtil
.
buildTempl
et
Path
()))
{
if
(!
FileUtil
.
exist
(
ParserUtil
.
buildTempl
ate
Path
()))
{
return
ResultData
.
build
().
error
(
getResString
(
"templet.file"
));
return
ResultData
.
build
().
error
(
getResString
(
"templet.file"
));
}
else
{
}
else
{
...
@@ -186,7 +186,7 @@ public class GeneraterAction extends BaseAction {
...
@@ -186,7 +186,7 @@ public class GeneraterAction extends BaseAction {
case
LIST:
// 列表
case
LIST:
// 列表
// 判断模板文件是否存在
// 判断模板文件是否存在
if
(!
FileUtil
.
exist
(
ParserUtil
.
buildTempl
et
Path
(
column
.
getCategoryListUrl
())))
{
if
(!
FileUtil
.
exist
(
ParserUtil
.
buildTempl
ate
Path
(
column
.
getCategoryListUrl
())))
{
LOG
.
error
(
"模板不存在:{}"
,
column
.
getCategoryUrl
());
LOG
.
error
(
"模板不存在:{}"
,
column
.
getCategoryUrl
());
continue
;
continue
;
}
}
...
@@ -244,7 +244,7 @@ public class GeneraterAction extends BaseAction {
...
@@ -244,7 +244,7 @@ public class GeneraterAction extends BaseAction {
// 分类是列表
// 分类是列表
if
(
category
.
getCategoryType
().
equals
(
CategoryTypeEnum
.
LIST
.
toString
()))
{
if
(
category
.
getCategoryType
().
equals
(
CategoryTypeEnum
.
LIST
.
toString
()))
{
// 判断模板文件是否存在
// 判断模板文件是否存在
if
(!
FileUtil
.
exist
(
ParserUtil
.
buildTempl
et
Path
(
category
.
getCategoryListUrl
()))
||
StringUtils
.
isEmpty
(
category
.
getCategoryListUrl
()))
{
if
(!
FileUtil
.
exist
(
ParserUtil
.
buildTempl
ate
Path
(
category
.
getCategoryListUrl
()))
||
StringUtils
.
isEmpty
(
category
.
getCategoryListUrl
()))
{
LOG
.
error
(
"模板不存在:{}"
,
category
.
getCategoryUrl
());
LOG
.
error
(
"模板不存在:{}"
,
category
.
getCategoryUrl
());
continue
;
continue
;
}
}
...
...
src/main/java/net/mingsoft/cms/util/CmsParserUtil.java
View file @
6e8fb116
...
@@ -239,7 +239,7 @@ public class CmsParserUtil {
...
@@ -239,7 +239,7 @@ public class CmsParserUtil {
}
}
// 判断文件是否存在,若不存在弹出返回信息
// 判断文件是否存在,若不存在弹出返回信息
if
(!
FileUtil
.
exist
(
ParserUtil
.
buildTempl
et
Path
(
columnUrl
))
||
categoryBean
.
getId
()
==
null
||
categoryBean
.
getCategoryType
()
==
null
)
{
if
(!
FileUtil
.
exist
(
ParserUtil
.
buildTempl
ate
Path
(
columnUrl
))
||
categoryBean
.
getId
()
==
null
||
categoryBean
.
getCategoryType
()
==
null
)
{
artId
++;
artId
++;
continue
;
continue
;
}
}
...
...
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