diff --git a/ruoyi-admin/src/main/resources/templates/error/404.html b/ruoyi-admin/src/main/resources/templates/error/404.html
index 774a58df..184c6783 100644
--- a/ruoyi-admin/src/main/resources/templates/error/404.html
+++ b/ruoyi-admin/src/main/resources/templates/error/404.html
@@ -4,9 +4,9 @@
@@ -14,7 +14,7 @@
找不到网页!
对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。
-
主页
+
主页
diff --git a/ruoyi-admin/src/main/resources/templates/error/500.html b/ruoyi-admin/src/main/resources/templates/error/500.html
index f59b91b9..d5663f84 100644
--- a/ruoyi-admin/src/main/resources/templates/error/500.html
+++ b/ruoyi-admin/src/main/resources/templates/error/500.html
@@ -4,9 +4,9 @@
@@ -15,7 +15,7 @@
服务器遇到意外事件,不允许完成请求。我们抱歉。您可以返回主页面。
-
主页
+
主页
diff --git a/ruoyi-admin/src/main/resources/templates/error/business.html b/ruoyi-admin/src/main/resources/templates/error/business.html
index f47cde78..1faf08c0 100644
--- a/ruoyi-admin/src/main/resources/templates/error/business.html
+++ b/ruoyi-admin/src/main/resources/templates/error/business.html
@@ -4,9 +4,9 @@
diff --git a/ruoyi-admin/src/main/resources/templates/error/unauth.html b/ruoyi-admin/src/main/resources/templates/error/unauth.html
index ca14e552..46007b87 100644
--- a/ruoyi-admin/src/main/resources/templates/error/unauth.html
+++ b/ruoyi-admin/src/main/resources/templates/error/unauth.html
@@ -4,9 +4,9 @@
RuoYi - 403
-
-
-
+
+
+
@@ -15,7 +15,7 @@
对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面
-
返回主页
+
返回主页
diff --git a/ruoyi-generator/src/main/resources/vm/java/controller.java.vm b/ruoyi-generator/src/main/resources/vm/java/controller.java.vm
index 60b7f1d6..7b4bf470 100644
--- a/ruoyi-generator/src/main/resources/vm/java/controller.java.vm
+++ b/ruoyi-generator/src/main/resources/vm/java/controller.java.vm
@@ -46,30 +46,30 @@ public class ${ClassName}Controller extends BaseController
return prefix + "/${businessName}";
}
-#if($table.tree)
+#if($table.crud)
/**
- * 查询${functionName}树列表
+ * 查询${functionName}列表
*/
@RequiresPermissions("${permissionPrefix}:list")
@PostMapping("/list")
@ResponseBody
- public List<${ClassName}> list(${ClassName} ${className})
+ public TableDataInfo list(${ClassName} ${className})
{
+ startPage();
List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
- return list;
+ return getDataTable(list);
}
-#elseif($table.crud)
+#elseif($table.tree)
/**
- * 查询${functionName}列表
+ * 查询${functionName}树列表
*/
@RequiresPermissions("${permissionPrefix}:list")
@PostMapping("/list")
@ResponseBody
- public TableDataInfo list(${ClassName} ${className})
+ public List<${ClassName}> list(${ClassName} ${className})
{
- startPage();
List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
- return getDataTable(list);
+ return list;
}
#end