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);