From 9c44badcc82f85225e85768b59bcbd2d6e377c80 Mon Sep 17 00:00:00 2001 From: qi Date: Tue, 14 Apr 2020 09:15:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=94=E5=9B=9E=E7=BB=93?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lq/cms/web/sys/RoleController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/lq/cms/web/sys/RoleController.java b/src/main/java/com/lq/cms/web/sys/RoleController.java index 2116d9c..564cd22 100755 --- a/src/main/java/com/lq/cms/web/sys/RoleController.java +++ b/src/main/java/com/lq/cms/web/sys/RoleController.java @@ -89,7 +89,7 @@ public class RoleController { @RequestMapping("/updatePermission") @RequiresPermissions(INDEX_URL+ Constant.PERSSION_MARK+Constant.PERMISSION_UPDATE) public Object updatePermission(@RequestBody List list){ - AjaxResult ajaxResult=new AjaxResult(); + AjaxResult ajaxResult=AjaxResult.getSuccessInstance(); boolean result=sysRoleResourcePermissionService.updateRolePermission(list); ajaxResult.setSuccess(result); if (!result){ @@ -103,7 +103,7 @@ public class RoleController { @RequiresPermissions(INDEX_URL+ Constant.PERSSION_MARK+Constant.PERMISSION_INSERT) public Object save(SysRole sysRole){ Date nowTime = new Date(); - AjaxResult ajaxResult = new AjaxResult(true," 保存成功",""); + AjaxResult ajaxResult =AjaxResult.getSuccessInstance(); if (sysRole!=null){ sysRole.setCreateTime(nowTime); sysRole.setUpdateTime(nowTime);