From de8435757b77a9d8e0006685fd09a50431d6bdc5 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 18 Nov 2019 12:01:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dwar=E5=8C=85=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E6=83=85=E5=86=B5=E4=B8=8B404=E3=80=81500=E7=AD=89?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=E4=B8=A2=E5=A4=B1=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/error/404.html | 8 ++++---- .../main/resources/templates/error/500.html | 8 ++++---- .../resources/templates/error/business.html | 6 +++--- .../main/resources/templates/error/unauth.html | 8 ++++---- .../main/resources/vm/java/controller.java.vm | 18 +++++++++--------- 5 files changed, 24 insertions(+), 24 deletions(-) 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 @@ RuoYi - 404 - - - + + +
@@ -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 @@ RuoYi - 500 - - - + + +
@@ -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 @@ RuoYi - 403 - - - + + +
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