-- 二级菜单
INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(11, '招商管理', 0, 'Y', NULL, 0, '#d4237a', '212,35,122', NULL, NULL, 0, 2);

INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1001, '招商概览', 11, 'Y', NULL, 1, '#d4237a', '212,35,122', 'InvestPromotion', 'icon-gailan1', 0, 1);

INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1002, '招商任务', 11, 'Y', NULL, 1, '#d4237a', '212,35,122', 'InvestTask', 'icon-renwu1', 0, 2);

INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1003, '客户管理', 11, 'Y', NULL, 1, '#d4237a', '212,35,122', 'InvestCustomer', 'icon-kehu', 0, 3);

INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1004, '品牌库', 11, 'Y', NULL, 1, '#d4237a', '212,35,122', 'brandlist', 'icon-pinpai1', 0, 4);

-- 按钮权限
INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1005, '查询负责人', 11, 'Y', 'investCustomerOwnerQuery', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);
INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1006, '导入导出', 11, 'Y', 'investCustomerIO', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);
INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1007, '编辑客户', 11, 'Y', 'investCustomerEdit', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);
INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1008, '私有客户', 11, 'Y', 'privateCustomer', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);
INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1009, '编辑跟踪记录', 11, 'Y', 'investFollowRecordEdit', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);
INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1010, '查看跟踪记录', 11, 'Y', 'investFollowRecordQuery', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);
INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1011, '编辑品牌库', 11, 'Y', 'investBrandEdit', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);

INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1012, '编辑招商任务', 11, 'Y', 'investTaskEdit', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);

INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1013, '编辑预约', 11, 'Y', 'investRemindEdit', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);
INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1014, '查看预约', 11, 'Y', 'investRemindQuery', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);
INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1015, '编辑客户(用户)', 11, 'Y', 'investCustomerEdit:user', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);
INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1016, '查看预约(用户)', 11, 'Y', 'investRemindQuery:user', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);
INSERT INTO `mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES
(1017, '查看跟踪记录(用户)', 11, 'Y', 'investFollowRecordQuery:user', 2, '#d4237a', '212,35,122', NULL, NULL, 0, 0);

-- 逻辑权限
INSERT INTO `wx_logic_permission` (`id`, `name`, `parent_id`, `permission`)
VALUES (1, '招商管理人员', 11, '[1005,1006,1007,1010,1011,1012,1014]');

INSERT INTO `wx_logic_permission` (`id`, `name`, `parent_id`, `permission`)
VALUES (2, '招商人员', 11, '[1008,1009,1013,1015,1016,1017]');
