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