Blame view

sql/pay-merchant-menu.sql 1.82 KB
1a721ceb   aquan   完成支付模块的商户管理开发以及单元测试
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
  -- 支付模块-商户中心-菜单SQL
  -- 菜单 SQL
  INSERT INTO `sys_menu` (
      `name`, `permission`,`menu_type`,`sort`, `parent_id`, `path`, `icon`, `component`,
                          `status`, `creator`,`create_time`, `updater`, `update_time`, `deleted`
  ) VALUES ('支付管理',  '', 1, 4,0, '/pay','pay', NULL, 0, '1', '2021-11-03 10:35:04', '1', '2021-11-03 10:35:04', b'0');
  
  INSERT INTO `sys_menu`(
      `name`, `permission`, `menu_type`, `sort`, `parent_id`,
      `path`, `icon`, `component`, `status`
  )
  VALUES (
      '支付商户信息管理', '', 2, 0, ${table.parentMenuId},
      'merchant', '', 'pay/merchant/index', 0
  );
  
  -- 按钮父菜单ID
  SELECT @parentId := LAST_INSERT_ID();
  
  -- 按钮 SQL
  INSERT INTO `sys_menu`(
      `name`, `permission`, `menu_type`, `sort`, `parent_id`,
      `path`, `icon`, `component`, `status`
  )
  VALUES (
      '支付商户信息查询', 'pay:merchant:query', 3, 1, @parentId,
      '', '', '', 0
  );
  INSERT INTO `sys_menu`(
      `name`, `permission`, `menu_type`, `sort`, `parent_id`,
      `path`, `icon`, `component`, `status`
  )
  VALUES (
      '支付商户信息创建', 'pay:merchant:create', 3, 2, @parentId,
      '', '', '', 0
  );
  INSERT INTO `sys_menu`(
      `name`, `permission`, `menu_type`, `sort`, `parent_id`,
      `path`, `icon`, `component`, `status`
  )
  VALUES (
      '支付商户信息更新', 'pay:merchant:update', 3, 3, @parentId,
      '', '', '', 0
  );
  INSERT INTO `sys_menu`(
      `name`, `permission`, `menu_type`, `sort`, `parent_id`,
      `path`, `icon`, `component`, `status`
  )
  VALUES (
      '支付商户信息删除', 'pay:merchant:delete', 3, 4, @parentId,
      '', '', '', 0
  );
  INSERT INTO `sys_menu`(
      `name`, `permission`, `menu_type`, `sort`, `parent_id`,
      `path`, `icon`, `component`, `status`
  )
  VALUES (
      '支付商户信息导出', 'pay:merchant:export', 3, 5, @parentId,
      '', '', '', 0
  );