去掉错误注释及修改返回方法
This commit is contained in:
parent
d002314fca
commit
e33d8497fb
|
|
@ -281,8 +281,9 @@ public class NuAppEmployeesPermissionController extends JeecgController<NuAppEmp
|
|||
} catch (Exception e) {
|
||||
result.error500("授权失败!");
|
||||
log.error(e.getMessage(), e);
|
||||
return Result.error("操作失败!");
|
||||
}
|
||||
return result;
|
||||
return Result.OK("操作成功!");
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -309,40 +310,15 @@ public class NuAppEmployeesPermissionController extends JeecgController<NuAppEmp
|
|||
permissionIds = permissionIds+active.getString(j)+",";
|
||||
}
|
||||
this.nuAppEmployeesPermissionService.saveRolePermission(roleId, permissionIds,lastPermissionIds, nuId);
|
||||
//一个扩展功能都没有,则把这个人的nuid和员工id进行删除
|
||||
// }else{
|
||||
// nuAppEmployeesPermissionService.remove(new QueryWrapper<NuAppEmployeesPermission>().lambda().eq(NuAppEmployeesPermission::getNuId, nuId).eq(NuAppEmployeesPermission::getRoleId, roleId));
|
||||
}
|
||||
|
||||
// System.out.println("第 " + i + " 个对象:");
|
||||
// System.out.println(" name: " + name);
|
||||
// System.out.println(" age: " + age);
|
||||
// System.out.println(" active: " + active);
|
||||
|
||||
// 遍历对象的所有字段
|
||||
// for (String key : obj.keySet()) {
|
||||
// Object value = obj.get(key);
|
||||
// System.out.println(" " + key + ": " + value);
|
||||
// }
|
||||
}
|
||||
// for (JSONObject json : jsonList){
|
||||
// String roleId = json.getString("roleId");
|
||||
// String permissionIds = json.getString("permissionIds");
|
||||
// String lastPermissionIds = json.getString("lastpermissionIds");
|
||||
// this.nuAppEmployeesPermissionService.saveRolePermission(roleId, permissionIds, lastPermissionIds);
|
||||
// //update-begin---author:wangshuai ---date:20220316 for:[VUEN-234]用户管理角色授权添加敏感日志------------
|
||||
// LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
// baseCommonService.addLog("修改角色ID: "+roleId+" 的权限配置,操作人: " +loginUser.getUsername() ,CommonConstant.LOG_TYPE_2, 2);
|
||||
// //update-end---author:wangshuai ---date:20220316 for:[VUEN-234]用户管理角色授权添加敏感日志------------
|
||||
// result.success("保存成功!");
|
||||
// log.info("======角色授权成功=====耗时:" + (System.currentTimeMillis() - start) + "毫秒");
|
||||
// }
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
result.error500("授权失败!");
|
||||
log.error(e.getMessage(), e);
|
||||
return Result.error("操作失败!");
|
||||
}
|
||||
return result;
|
||||
return Result.OK("操作成功!");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public class NuAppNuidPermission implements Serializable {
|
|||
|
||||
@TableField(exist = false)
|
||||
private Integer ruleFlag;
|
||||
@TableField(value="is_leaf")
|
||||
@TableField(exist = false)
|
||||
private boolean leaf;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue