Commit 04289c60214130933af1908bac73455d46c23067
1 parent
80242d71
代码生成sql权限修正
Showing
1 changed file
with
2 additions
and
2 deletions
ruoyi/src/main/resources/vm/sql/sql.vm
| 1 | 1 | -- 菜单 SQL |
| 2 | 2 | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) |
| 3 | -values('${functionName}', '3', '1', '${businessName}', '${moduleName}/${businessName}/index', 1, 'C', '0', '${permissionPrefix}:view', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '${functionName}菜单'); | |
| 3 | +values('${functionName}', '3', '1', '${businessName}', '${moduleName}/${businessName}/index', 1, 'C', '0', '${permissionPrefix}:list', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '${functionName}菜单'); | |
| 4 | 4 | |
| 5 | 5 | -- 按钮父菜单ID |
| 6 | 6 | SELECT @parentId := LAST_INSERT_ID(); |
| 7 | 7 | |
| 8 | 8 | -- 按钮 SQL |
| 9 | 9 | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) |
| 10 | -values('${functionName}查询', @parentId, '1', '#', '', 1, 'F', '0', '${permissionPrefix}:list', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); | |
| 10 | +values('${functionName}查询', @parentId, '1', '#', '', 1, 'F', '0', '${permissionPrefix}:query', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); | |
| 11 | 11 | |
| 12 | 12 | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) |
| 13 | 13 | values('${functionName}新增', @parentId, '2', '#', '', 1, 'F', '0', '${permissionPrefix}:add', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); | ... | ... |