From 635e36a882559be561372e5aab9893db5be42023 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期三, 01 十一月 2023 16:33:57 +0800 Subject: [PATCH] fix 修复 普通角色编辑使用内置管理员code越权问题 --- ruoyi-modules/ruoyi-generator/src/main/java/org/dromara/generator/controller/GenController.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ruoyi-modules/ruoyi-generator/src/main/java/org/dromara/generator/controller/GenController.java b/ruoyi-modules/ruoyi-generator/src/main/java/org/dromara/generator/controller/GenController.java index 25c510b..a4509b2 100644 --- a/ruoyi-modules/ruoyi-generator/src/main/java/org/dromara/generator/controller/GenController.java +++ b/ruoyi-modules/ruoyi-generator/src/main/java/org/dromara/generator/controller/GenController.java @@ -56,7 +56,7 @@ GenTable table = genTableService.selectGenTableById(tableId); List<GenTable> tables = genTableService.selectGenTableAll(); List<GenTableColumn> list = genTableService.selectGenTableColumnListByTableId(tableId); - Map<String, Object> map = new HashMap<String, Object>(); + Map<String, Object> map = new HashMap<>(3); map.put("info", table); map.put("rows", list); map.put("tables", tables); -- Gitblit v1.9.3