parent
67a944a584
commit
6e8fb116b2
|
@ -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.updateEntity(category);
|
categoryBiz.updateById(category);
|
||||||
return ResultData.build().success(category);
|
return ResultData.build().success(category);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,7 @@ public class GeneraterAction extends BaseAction {
|
||||||
String generateFileName = request.getParameter("position");
|
String generateFileName = request.getParameter("position");
|
||||||
|
|
||||||
// 获取文件所在路径 首先判断用户输入的模版文件是否存在
|
// 获取文件所在路径 首先判断用户输入的模版文件是否存在
|
||||||
if (!FileUtil.exist(ParserUtil.buildTempletPath())) {
|
if (!FileUtil.exist(ParserUtil.buildTemplatePath())) {
|
||||||
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 {
|
||||||
case LIST: // 列表
|
case LIST: // 列表
|
||||||
|
|
||||||
// 判断模板文件是否存在
|
// 判断模板文件是否存在
|
||||||
if (!FileUtil.exist(ParserUtil.buildTempletPath(column.getCategoryListUrl()))) {
|
if (!FileUtil.exist(ParserUtil.buildTemplatePath(column.getCategoryListUrl()))) {
|
||||||
LOG.error("模板不存在:{}", column.getCategoryUrl());
|
LOG.error("模板不存在:{}", column.getCategoryUrl());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -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.buildTempletPath(category.getCategoryListUrl())) || StringUtils.isEmpty(category.getCategoryListUrl())) {
|
if (!FileUtil.exist(ParserUtil.buildTemplatePath(category.getCategoryListUrl())) || StringUtils.isEmpty(category.getCategoryListUrl())) {
|
||||||
LOG.error("模板不存在:{}", category.getCategoryUrl());
|
LOG.error("模板不存在:{}", category.getCategoryUrl());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -239,7 +239,7 @@ public class CmsParserUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断文件是否存在,若不存在弹出返回信息
|
// 判断文件是否存在,若不存在弹出返回信息
|
||||||
if (!FileUtil.exist(ParserUtil.buildTempletPath(columnUrl)) || categoryBean.getId() == null || categoryBean.getCategoryType() == null) {
|
if (!FileUtil.exist(ParserUtil.buildTemplatePath(columnUrl)) || categoryBean.getId() == null || categoryBean.getCategoryType() == null) {
|
||||||
artId++;
|
artId++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue