Jelajahi Sumber

mybatis-plus规范
名称规范

msgroup 4 tahun lalu
induk
melakukan
6e8fb116b2

+ 1 - 1
src/main/java/net/mingsoft/cms/action/CategoryAction.java

@@ -295,7 +295,7 @@ public class CategoryAction extends BaseAction {
 				 return ResultData.build().error(getResString("cannot.select.child"));
 			 }
 		 }
-		categoryBiz.updateEntity(category);
+		categoryBiz.updateById(category);
 		return ResultData.build().success(category);
 	}
 

+ 3 - 3
src/main/java/net/mingsoft/cms/action/GeneraterAction.java

@@ -133,7 +133,7 @@ public class GeneraterAction extends BaseAction {
         String generateFileName = request.getParameter("position");
 
         // 获取文件所在路径 首先判断用户输入的模版文件是否存在
-        if (!FileUtil.exist(ParserUtil.buildTempletPath())) {
+        if (!FileUtil.exist(ParserUtil.buildTemplatePath())) {
             return ResultData.build().error(getResString("templet.file"));
         } else {
 
@@ -186,7 +186,7 @@ public class GeneraterAction extends BaseAction {
                 case LIST: // 列表
 
                     // 判断模板文件是否存在
-                    if (!FileUtil.exist(ParserUtil.buildTempletPath(column.getCategoryListUrl()))) {
+                    if (!FileUtil.exist(ParserUtil.buildTemplatePath(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.buildTempletPath(category.getCategoryListUrl())) || StringUtils.isEmpty(category.getCategoryListUrl())) {
+                if (!FileUtil.exist(ParserUtil.buildTemplatePath(category.getCategoryListUrl())) || StringUtils.isEmpty(category.getCategoryListUrl())) {
                     LOG.error("模板不存在:{}", category.getCategoryUrl());
                     continue;
                 }

+ 1 - 1
src/main/java/net/mingsoft/cms/util/CmsParserUtil.java

@@ -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++;
                 continue;
             }