demo_gen.sql 3.0 KB

12345678910111213141516171819202122232425262728293031
  1. /*
  2. ==========================================================================
  3. GFast自动生成菜单SQL,只生成一次,按需修改.
  4. 生成日期:2021-09-19 09:44:19
  5. 生成路径: data/gen_sql/demo/demo_gen_menu.sql
  6. 生成人:gfast
  7. ==========================================================================
  8. */
  9. -- 当前日期
  10. select @now := now();
  11. -- 目录 SQL
  12. INSERT INTO `sys_auth_rule` (`pid`,`name`,`title`,`icon`,`condition`,`remark`,`menu_type`,`weigh`,`status`,`always_show`,`path`,`jump_path`,`component`,`is_frame`,`module_type`,`model_id`,`created_at`,`updated_at`,`deleted_at` )
  13. VALUES(0,'demo/demoGen','学生管理','form','','学生管理',0,0,1,1,'demoGen','','',0,'sys_admin',0,@now,@now,NULL );
  14. -- 菜单父目录ID
  15. SELECT @parentId := LAST_INSERT_ID();
  16. -- 菜单 SQL
  17. INSERT INTO `sys_auth_rule` (`pid`,`name`,`title`,`icon`,`condition`,`remark`,`menu_type`,`weigh`,`status`,`always_show`,`path`,`jump_path`,`component`,`is_frame`,`module_type`,`model_id`,`created_at`,`updated_at`,`deleted_at` )
  18. VALUES(@parentId,'demo/demoGen/list','学生列表','list','','学生列表',1,0,1,1,'demoGenList','','demo/demoGen/list',0,'sys_admin',0,@now,@now,NULL );
  19. -- 按钮父目录ID
  20. SELECT @parentId := LAST_INSERT_ID();
  21. -- 按钮 SQL
  22. INSERT INTO `sys_auth_rule` (`pid`,`name`,`title`,`icon`,`condition`,`remark`,`menu_type`,`weigh`,`status`,`always_show`,`path`,`jump_path`,`component`,`is_frame`,`module_type`,`model_id`,`created_at`,`updated_at`,`deleted_at` )
  23. VALUES(@parentId,'demo/demoGen/get','学生查询','','','学生查询',2,0,1,1,'','','',0,'sys_admin',0,@now,@now,NULL );
  24. INSERT INTO `sys_auth_rule` (`pid`,`name`,`title`,`icon`,`condition`,`remark`,`menu_type`,`weigh`,`status`,`always_show`,`path`,`jump_path`,`component`,`is_frame`,`module_type`,`model_id`,`created_at`,`updated_at`,`deleted_at` )
  25. VALUES(@parentId,'demo/demoGen/add','学生添加','','','学生添加',2,0,1,1,'','','',0,'sys_admin',0,@now,@now,NULL );
  26. INSERT INTO `sys_auth_rule` (`pid`,`name`,`title`,`icon`,`condition`,`remark`,`menu_type`,`weigh`,`status`,`always_show`,`path`,`jump_path`,`component`,`is_frame`,`module_type`,`model_id`,`created_at`,`updated_at`,`deleted_at` )
  27. VALUES(@parentId,'demo/demoGen/edit','学生修改','','','学生修改',2,0,1,1,'','','',0,'sys_admin',0,@now,@now,NULL );
  28. INSERT INTO `sys_auth_rule` (`pid`,`name`,`title`,`icon`,`condition`,`remark`,`menu_type`,`weigh`,`status`,`always_show`,`path`,`jump_path`,`component`,`is_frame`,`module_type`,`model_id`,`created_at`,`updated_at`,`deleted_at` )
  29. VALUES(@parentId,'demo/demoGen/delete','学生删除','','','学生删除',2,0,1,1,'','','',0,'sys_admin',0,@now,@now,NULL );
  30. INSERT INTO `sys_auth_rule` (`pid`,`name`,`title`,`icon`,`condition`,`remark`,`menu_type`,`weigh`,`status`,`always_show`,`path`,`jump_path`,`component`,`is_frame`,`module_type`,`model_id`,`created_at`,`updated_at`,`deleted_at` )
  31. VALUES(@parentId,'demo/demoGen/changeDemoStatus','学生状态修改','','','学生状态修改',2,0,1,1,'','','',0,'sys_admin',0,@now,@now,NULL );