/*==============================================================*/
/* Table: service_card_operate                                  */
/*==============================================================*/
create table service_card_operate
(
   id                   bigint not null auto_increment comment '主键id',
   card_id              bigint comment '服务卡id',
   card_no              varchar(32) comment '服务卡编号',
   operate_content      varchar(255) comment '操作内容',
   create_at            bigint default 0 comment '创建时间',
   create_by            varchar(32) comment '创建人',
   primary key (id)
);

alter table service_card_operate comment '服务卡操作记录';

/*==============================================================*/
/* Table: function_permission                                   */
/*==============================================================*/
create table function_permission
(
   id                   int not null auto_increment comment 'id',
   name                 varchar(50) comment '名称',
   url                  varchar(200) comment 'url',
   method               varchar(20) comment '请求方式：GET，POST，PUT，DELETE',
   create_time          bigint default 0 comment '创建时间',
   del_flag             tinyint default 0  comment '删除标识：0-未删除，1-已删除',
   primary key (id)
);

alter table function_permission comment '功能权限';

/*==============================================================*/
/* Table: role_info                                         		*/
/*==============================================================*/
alter table role_info 
add column status tinyint default 0 comment '状态:0-正常，1-禁止',
add column create_by varchar(32) comment '创建人',
add column update_time bigint comment '更新时间',
add column update_by varchar(32) comment '更新人';

/*==============================================================*/
/* Table: permission_info                                       */
/*==============================================================*/
alter table permission_info
add column permission_url varchar(200) comment 'URL',
add column parent_id bigint comment '父级菜单',
add column level int comment '级别',
add column icon varchar(50) comment '图标',
add column sort bigint comment '排序',
add column type tinyint default 1 comment '权限类型：1-菜单，2-菜单组',
add column create_by varchar(32) comment '创建人',
add column update_time bigint comment '更新时间',
add column update_by varchar(32) comment '更新人',
add column fids varchar(200) comment '功能权限id集合：逗号分隔';



-- 更新用户状态
UPDATE
	admin_info a
SET a.STATUS = '0'
WHERE
	a.`status` = 1;

UPDATE
	admin_info a
SET a.STATUS = '1'
WHERE
	a.`status` in ('2','10','20','21');

--总部数据初始化	
INSERT INTO `merchant` (`merchant_no`, `user_id`, `name`, `type`, `status`, `address_detail`, `address_full_name`, `address_telephone`, `linkman_name`, `linkman_mobile`, `desc_str`, `district_id`, `district_name`, `province_id`, `province_name`, `city_id`, `city_name`, `service_city_id`, `created_at`, `created_by`, `updated_at`, `updated_by`, `del_flag`, `remark`) VALUES ('1', '10000', '总部', 1, 20, '东圃大马路时代tit广场A423', '广东省 广州市 天河区 东圃大马路时代tit广场A423', '4006080100', '一号家政', '4006080100', '', 440106000, '天河区', 440000000, '广东省', 440100000, '广州市', '440600000', 1528377826430, '1705', 1534131240517, '1705', 0, '');

INSERT INTO `user` (`user_id`, `user_name`, `nick_name`, `password`, `salt`, `mobile`, `sex`, `status`, `create_at`, `update_at`, `del_flag`) VALUES ('10000', '10000000000', '10000000000', '0e0c1f558bdb831599ef9fc06fbb95d8', '[29, 34, -32, -119, -58, -113, -124, 72, 4, -123, -9, 58, 68, -120, -122, -81, 13, -90, 7, -54]', '10000000000', 'M', 0, 1528377826773, 0, 0);


-- --------------------------------------------------------
-- 主机:                           47.106.79.88
-- 服务器版本:                        5.7.20-log - Source distribution
-- 服务器操作系统:                      Linux
-- HeidiSQL 版本:                  9.5.0.5196
-- --------------------------------------------------------

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;

-- 导出  表 1hjz.function_permission 结构
DROP TABLE IF EXISTS `function_permission`;
CREATE TABLE IF NOT EXISTS `function_permission` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(50) DEFAULT NULL COMMENT '名称',
  `url` varchar(200) DEFAULT NULL COMMENT 'url',
  `method` varchar(20) DEFAULT NULL COMMENT '请求方式：GET，POST，PUT，DELETE',
  `create_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '删除标识：0-未删除，1-已删除',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=192 DEFAULT CHARSET=utf8mb4 COMMENT='功能权限';

-- 正在导出表  1hjz.function_permission 的数据：~192 rows (大约)
DELETE FROM `function_permission`;
/*!40000 ALTER TABLE `function_permission` DISABLE KEYS */;
INSERT INTO `function_permission` (`id`, `name`, `url`, `method`, `create_time`, `del_flag`) VALUES
	(1, '获取账户信息', '/admin/web/accountinfo/list', 'GET', '2018-08-15 21:10:00', 0),
	(2, '账号删除', '/admin/web/accountinfo/del', 'POST', '2018-08-15 21:10:00', 0),
	(3, '账号新增', '/admin/web/accountinfo/add', 'POST', '2018-08-15 21:10:00', 0),
	(4, '客户账户流水信息', '(/admin/web/accountinfo/).*', 'GET', '2018-08-15 21:10:00', 0),
	(5, '获取活动列表', '/admin/web/activity/list', 'GET', '2018-08-15 21:10:00', 0),
	(6, '获取活动详情', '(/admin/web/activity/).*', 'GET', '2018-08-15 21:10:00', 0),
	(7, '活动新增', '/admin/web/activity/new', 'PUT', '2018-08-15 21:10:00', 0),
	(8, '活动编辑', '(/admin/web/activity/).*', 'POST', '2018-08-15 21:10:00', 0),
	(9, '活动状态切换', '(/admin/web/activity/).*(/status)', 'POST', '2018-08-15 21:10:00', 0),
	(10, '获取活动记录', '/admin/web/activity/member/list', 'GET', '2018-08-15 21:10:00', 0),
	(11, '获取活动成员', '(/admin/web/activity/member/).*', 'GET', '2018-08-15 21:10:00', 0),
	(12, '获取地址信息', '/admin/web/address/detail', 'GET', '2018-08-15 21:10:00', 0),
	(13, '地址信息更新', '/admin/web/address/detail', 'PUT', '2018-08-15 21:10:00', 0),
	(14, '获取地址提示', '/admin/web/address/tip', 'GET', '2018-08-15 21:10:00', 0),
	(15, '获取地址级联', '/admin/web/address/cascading', 'GET', '2018-08-15 21:10:00', 0),
	(16, '获取保洁师服务市区的列表', '/admin/web/address/service/district', 'GET', '2018-08-15 21:10:00', 0),
	(17, '获取服务工单管理列表', '/admin/web/attendance/serve/list', 'GET', '2018-08-15 21:10:00', 0),
	(18, '工单确认完成', '(/admin/web/attendance/serve/).*', 'PUT', '2018-08-15 21:10:00', 0),
	(19, '工单详情', '(/admin/web/attendance/serve/).*', 'GET', '2018-08-15 21:10:00', 0),
	(20, '考勤申诉列表', '/admin/web/attendance/appeal/list', 'GET', '2018-08-15 21:10:00', 0),
	(21, '考勤申诉查看详情', '(/admin/web/attendance/appeal/).*', 'GET', '2018-08-15 21:10:00', 0),
	(22, '考勤申诉审核', '(/admin/web/attendance/appeal/).*', 'PUT', '2018-08-16 01:55:34', 0),
	(23, '请假审核列表', '/admin/web/attendance/leave/list', 'GET', '2018-08-15 21:10:00', 0),
	(24, '请假审核', '(/admin/web/attendance/leave/).*', 'PUT', '2018-08-16 01:55:38', 0),
	(25, '预约池', '/admin/web/book/merchant/list', 'GET', '2018-08-15 21:10:00', 0),
	(26, '更新商户预约池记录', '/admin/web/book/merchant/change', 'PUT', '2018-08-15 21:10:00', 0),
	(27, '获取服务卡列表', '/admin/web/book/card/list', 'GET', '2018-08-15 21:10:00', 0),
	(28, '更新服务卡记录', '/admin/web/book/card/change', 'PUT', '2018-08-15 21:10:00', 0),
	(29, '获取单日的预约情况', '/admin/web/book/calender/date', 'GET', '2018-08-15 21:10:00', 0),
	(30, '获取指定月份的预约情况', '/admin/web/book/calender/month', 'GET', '2018-08-15 21:10:00', 0),
	(31, '指派、取消指派保洁师', '/admin/web/book/cleaner', 'PUT', '2018-08-15 21:10:00', 0),
	(32, '根据订单号查看预约记录列表', '/admin/web/book/appointment/list', 'GET', '2018-08-15 21:10:00', 0),
	(33, '指定日期查看预约记录列表', '/admin/web/book/detail/list', 'GET', '2018-08-15 21:10:00', 0),
	(34, '查看可服务保洁师排班', '/admin/web/book/cleaner/schedule', 'GET', '2018-08-15 21:10:00', 0),
	(35, '预约调度查看可用保洁师列表', '/admin/web/book/cleaner/list', 'GET', '2018-08-15 21:10:00', 0),
	(36, '运营代预约服务', '/admin/web/book/service', 'POST', '2018-08-15 21:10:00', 0),
	(37, '运营代取消预约服务', '/admin/web/book/cancel', 'POST', '2018-08-15 21:10:00', 0),
	(38, '运营代取消预约服务', '/admin/web/book/cancel', 'PUT', '2018-08-15 21:10:00', 0),
	(39, '运营生成指定保洁师预约池子记录', '/admin/web/book/pool/init', 'POST', '2018-08-15 21:10:00', 0),
	(40, '运营更新保洁师排班状态 --休息/上班', '/admin/web/book/pool/update', 'PUT', '2018-08-15 21:10:00', 0),
	(41, '运营根据预约情况发送通知', '/admin/web/book/detail/send', 'PUT', '2018-08-15 21:10:00', 0),
	(42, '更新预约详情中的联系人、联系号码、备注', '(/admin/web/book/detail/).*', 'PUT', '2018-08-15 21:10:00', 0),
	(43, '根据订单号获取到对应的服务卡', '(/admin/web/book/card/).*', 'GET', '2018-08-15 21:10:00', 0),
	(44, '根据订单号获取到对应的服务卡', '/admin/web/book/init', 'GET', '2018-08-15 21:10:00', 0),
	(45, '根据预约编号批量更新默认保洁师', '/admin/web/book/detail', 'PUT', '2018-08-15 21:10:00', 0),
	(46, '分页获取渠道列表', '/admin/web/channels', 'GET', '2018-08-15 21:10:00', 0),
	(47, '新增渠道', '/admin/web/channel', 'POST', '2018-08-15 21:10:00', 0),
	(48, '获取适用渠道', '/admin/web/useChannel', 'GET', '2018-08-15 21:10:00', 0),
	(49, '分页获取用户黑名单列表', '(/admin/web/cleanerBlacklists/).*', 'GET', '2018-08-15 21:10:00', 0),
	(50, '编辑用户保洁师黑名单', '(/admin/web/cleanerBlacklists/).*', 'POST', '2018-08-15 21:10:00', 0),
	(51, '根据服务卡编号,周期获取有空档的保洁师', '(/admin/web/cleanerSchedule/).*', 'GET', '2018-08-15 21:10:00', 0),
	(52, '根据保洁师编号,指定日期获取保洁师档期', '(/admin/web/cleanerSchedule/bookDetail/).*', 'GET', '2018-08-15 21:10:00', 0),
	(53, '根据保洁师编号,指定日期获取保洁师排班记录', '(/admin/web/cleanerSchedule/cleanerPool/).*', 'GET', '2018-08-15 21:10:00', 0),
	(54, '根据保洁师编号,指定日期范围获取保洁师档期', '(/admin/web/cleanerSchedule/timeRange/).*', 'GET', '2018-08-15 21:10:00', 0),
	(55, '', '/admin/web/config/province/list', 'GET', '2018-08-15 21:10:00', 0),
	(56, '', '/admin/web/config/province/city/list', 'GET', '2018-08-15 21:10:00', 0),
	(57, '', '/admin/web/config/city/area/list', 'GET', '2018-08-15 21:10:00', 0),
	(58, '', '/admin/web/config/province_city/map', 'GET', '2018-08-15 21:10:00', 0),
	(59, '客户列表查询', '/admin/web/consumer/list', 'GET', '2018-08-15 21:10:00', 0),
	(60, '评价客户', '(/admin/web/consumer/evaluate/).*', 'POST', '2018-08-15 21:10:00', 0),
	(61, '评价客户详情', '(/admin/web/consumer/evaluate/).*', 'GET', '2018-08-15 21:10:00', 0),
	(62, '客户详情', '(/admin/web/consumer/).*', 'GET', '2018-08-15 21:10:00', 0),
	(63, '创建优惠券批次', '/admin/web/coupon/batch', 'POST', '2018-08-15 21:10:00', 0),
	(64, '修改优惠券批次', '(/admin/web/coupon/batch/).*', 'PUT', '2018-08-15 21:10:00', 0),
	(65, '查看优惠券批次', '/admin/web/coupon/batchs', 'GET', '2018-08-15 21:10:00', 0),
	(66, '查看优惠券模板详情', '(/admin/web/coupon/batch/).*(/).*', 'GET', '2018-08-15 21:10:00', 0),
	(67, '发放优惠券', '/admin/web/coupon/coupon/handout', 'PUT', '2018-08-15 21:10:00', 0),
	(68, '查看优惠券列表', '/admin/web/coupon/coupon/list', 'GET', '2018-08-15 21:10:00', 0),
	(69, '查看优惠券领用详情列表', '(/admin/web/coupon/).*(/).*', 'GET', '2018-08-15 21:10:00', 0),
	(70, '统计优惠券领取数量', '(/admin/web/coupon/countCoupon/).*(/).*', 'GET', '2018-08-15 21:10:00', 0),
	(71, '查询可用优惠券', '/admin/web/coupon/usableCoupon', 'GET', '2018-08-15 21:10:00', 0),
	(72, '优惠券详情', '(/admin/web/coupon/coupon/detail/).*', 'GET', '2018-08-15 21:10:00', 0),
	(73, '分页获取优惠券模版记录列表', '(/admin/web/couponVersionHists/).*', 'GET', '2018-08-16 00:34:15', 0),
	(74, '分页获取提现记录信息', '/admin/web/enchashment/list', 'GET', '2018-08-15 21:10:00', 0),
	(75, '提现申请审核', '/admin/web/enchashment/audit', 'POST', '2018-08-15 21:10:00', 0),
	(76, '分页获取服务评价', '/admin/web/evaluation/list', 'GET', '2018-08-15 21:10:00', 0),
	(77, '更新服务回访记录', '(/admin/web/evaluation/).*', 'PUT', '2018-08-15 21:10:00', 0),
	(78, '物品申领列表查询', '/admin/web/goods_apply/list', 'GET', '2018-08-15 21:10:00', 0),
	(79, '物品申领日志列表查询', '/admin/web/goods_apply/log/list', 'GET', '2018-08-15 21:10:00', 0),
	(80, '物品申领日志审核', '/admin/web/goods_apply/verify', 'PUT', '2018-08-15 21:10:00', 0),
	(81, '配置物品申领信息', '/admin/web/goods_apply/config', 'PUT', '2018-08-15 21:10:00', 0),
	(82, '创建虚拟商品模板', '/admin/web/goods/vgoods/template/add', 'PUT', '2018-08-15 21:10:00', 0),
	(83, '修改虚拟商品模板', '/admin/web/goods/vgoods/template', 'POST', '2018-08-15 21:10:00', 0),
	(84, '上架虚拟商品模板', '/admin/web/goods/vgoods/template/on', 'POST', '2018-08-15 21:10:00', 0),
	(85, '下架虚拟商品模板', '/admin/web/goods/vgoods/template/off', 'POST', '2018-08-15 21:10:00', 0),
	(86, '列表虚拟商品模板', '/admin/web/goods/vgoods/template/list', 'GET', '2018-08-15 21:10:00', 0),
	(87, '虚拟商品模板详情', '/admin/web/goods/vgoods/template/detail', 'GET', '2018-08-15 21:10:00', 0),
	(88, '创建虚拟商品', '/admin/web/goods/vgoods', 'PUT', '2018-08-15 21:10:00', 0),
	(89, '修改虚拟商品', '/admin/web/goods/vgoods', 'POST', '2018-08-15 21:10:00', 0),
	(90, '上架虚拟商品', '/admin/web/goods/vgoods/on', 'POST', '2018-08-15 21:10:00', 0),
	(91, '下架虚拟商品', '/admin/web/goods/vgoods/off', 'POST', '2018-08-15 21:10:00', 0),
	(92, '列表查看虚拟商品', '/admin/web/goods/vgoods/list', 'GET', '2018-08-15 21:10:00', 0),
	(93, '虚拟商品详情', '/admin/web/goods/vgoods/detail', 'GET', '2018-08-15 21:10:00', 0),
	(94, '更新商品排序', '/admin/web/goods/sequence', 'POST', '2018-08-15 21:10:00', 0),
	(95, '退出登录', '/admin/mylogout', 'GET', '2018-08-15 21:10:00', 0),
	(96, '登录', '/admin/doLogin', 'POST', '2018-08-15 21:10:00', 0),
	(97, '新增/修改商城图片', '/admin/mall/photo', 'POST', '2018-08-15 21:10:00', 0),
	(98, '删除商城图片', '(/admin/mall/photo/).*', 'DELETE', '2018-08-15 21:10:00', 0),
	(99, '商城图片列表', '/admin/mall/photo/list', 'GET', '2018-08-15 21:10:00', 0),
	(100, '商户查询接口', '/admin/web/merchant/list', 'GET', '2018-08-15 21:10:00', 0),
	(101, '获取所有商户', '/admin/web/merchant/all', 'GET', '2018-08-15 21:10:00', 0),
	(102, '添加商户', '/admin/web/merchant/add', 'PUT', '2018-08-15 21:10:00', 0),
	(103, '删除商户', '(/admin/web/merchant/).*', 'DELETE', '2018-08-15 21:10:00', 0),
	(104, '删除商户授权区县', '(/admin/web/merchant/authArea/).*', 'DELETE', '2018-08-15 21:10:00', 0),
	(105, '修改商户基础信息', '/admin/web/merchant/edit', 'POST', '2018-08-15 21:10:00', 0),
	(106, '指定商户管理者', '(/admin/web/merchant/).*(/assign)', 'POST', '2018-08-15 21:10:00', 0),
	(107, '商户上线', '(/admin/web/merchant/).*/online', 'POST', '2018-08-15 21:10:00', 0),
	(108, '商户下线', '(/admin/web/merchant/).*(/offline)', 'POST', '2018-08-15 21:10:00', 0),
	(109, '商户授权列表查询接口', '/admin/web/openArea/list', 'GET', '2018-08-15 21:10:00', 0),
	(110, '修改商户区域状态', '(/admin/web/openArea/).*', 'POST', '2018-08-15 21:10:00', 0),
	(111, '归属地服务区域列表查询接口', '/admin/web/serviceArea/list', 'GET', '2018-08-15 21:10:00', 0),
	(112, '添加服务区域', '/admin/web/serviceArea/add', 'POST', '2018-08-15 21:10:00', 0),
	(113, '删除服务区域', '(/admin/web/serviceArea/).*(/).*', 'DELETE', '2018-08-15 21:10:00', 0),
	(114, '订单查询接口', '/admin/web/order/list', 'GET', '2018-08-15 21:10:00', 0),
	(115, '订单查询接口', '(/admin/web/order/).*', 'GET', '2018-08-15 21:10:00', 0),
	(116, '订单退款', '(/admin/web/order/).*', 'PUT', '2018-08-15 21:10:00', 0),
	(117, '运营后台新增订单', '/admin/web/order/new', 'PUT', '2018-08-15 21:10:00', 0),
	(118, '获取所有菜单', '/admin/web/permissions', 'GET', '2018-08-15 21:10:00', 0),
	(119, '获取级别菜单', '(/admin/web/permission/level/).*', 'GET', '2018-08-15 21:10:00', 0),
	(120, '根据permissionId获取菜单信息', '(/admin/web/permission/).*', 'GET', '2018-08-15 21:10:00', 0),
	(121, '新建菜单', '/admin/web/permission', 'POST', '2018-08-15 21:10:00', 0),
	(122, '编辑菜单', '(/admin/web/permission/).*', 'PUT', '2018-08-15 21:10:00', 0),
	(123, '删除菜单', '(/admin/web/permission/).*', 'DELETE', '2018-08-15 21:10:00', 0),
	(124, '更新菜单树排序', '/admin/web/permission/sort', 'PUT', '2018-08-15 21:10:00', 0),
	(125, '获取退款申请记录列表', '/admin/web/refund/list', 'GET', '2018-08-15 21:10:00', 0),
	(126, '获取退款申请的审核记录列表', '/admin/web/refund/log', 'GET', '2018-08-15 21:10:00', 0),
	(127, '增加审核记录', '/admin/web/refund/log', 'POST', '2018-08-15 21:10:00', 0),
	(128, '获取所有角色信息列表', '/admin/web/roles', 'GET', '2018-08-15 21:10:00', 0),
	(129, '获取所有角色信息列表', '/admin/web/role/all', 'GET', '2018-08-15 21:10:00', 0),
	(130, '根据roleId获取角色信息', '(/admin/web/role/).*', 'GET', '2018-08-15 21:10:00', 0),
	(131, '新建角色', '/admin/web/role', 'POST', '2018-08-15 21:10:00', 0),
	(132, '编辑角色', '(/admin/web/role/).*', 'PUT', '2018-08-15 21:10:00', 0),
	(133, '删除角色', '(/admin/web/role/).*', 'DELETE', '2018-08-15 21:10:00', 0),
	(134, '配置角色权限', '/admin/web/rolePermission', 'POST', '2018-08-15 21:10:00', 0),
	(135, '获取角色对应权限信息', '(/admin/web/rolePermission/).*', 'GET', '2018-08-15 21:10:00', 0),
	(136, '短信模板消息配置列表', '/admin/web/sms/template/list', 'POST', '2018-08-15 21:10:00', 0),
	(137, '添加短信模板', '/admin/web/sms/template/add', 'PUT', '2018-08-15 21:10:00', 0),
	(138, '修改短信模板', '/admin/web/sms/template/edit', 'PUT', '2018-08-15 21:10:00', 0),
	(139, '删除短信模板', '/admin/web/sms/template/del', 'PUT', '2018-08-15 21:10:00', 0),
	(140, '测试短信模板', '/admin/web/sms/template/test', 'PUT', '2018-08-15 21:10:00', 0),
	(141, '首页概览', '/admin/web/statistic/overview', 'GET', '2018-08-15 21:10:00', 0),
	(142, '订单数量统计', '/admin/web/statistic/order_count', 'GET', '2018-08-15 21:10:00', 0),
	(143, '预约数量统计', '/admin/web/statistic/book_count', 'GET', '2018-08-15 21:10:00', 0),
	(144, '预约数量统计', '/admin/web/statistic/order_map', 'GET', '2018-08-15 21:10:00', 0),
	(145, '更新保洁师归属地', '/admin/updTableData/updCleanerInfoTheDistrict', 'GET', '2018-08-15 21:10:00', 0),
	(146, '更新保洁师POI数据', '/admin/updTableData/updCleanerInfoThePoi', 'GET', '2018-08-15 21:10:00', 0),
	(147, '更新用户服务卡服务地址', '/admin/updTableData/updServiceCardTheDistrict', 'GET', '2018-08-15 21:10:00', 0),
	(148, '更新用户服务卡POI数据', '/admin/updTableData/updServiceCardThePoi', 'GET', '2018-08-15 21:10:00', 0),
	(149, '更新用户渠道来源', '/admin/updTableData/updConsumerInfoTheChannel', 'POST', '2018-08-15 21:10:00', 0),
	(150, '超级管理员角色判定', '/admin/web/user/superadmin/judge', 'POST', '2018-08-15 21:10:00', 0),
	(151, '查看商城用户', '/admin/web/user/consumer', 'GET', '2018-08-15 21:10:00', 0),
	(152, '录入保洁师', '/admin/web/user/cleaner', 'POST', '2018-08-15 21:10:00', 0),
	(153, '保洁师状态更新', '/admin/web/user/cleaner/status', 'PUT', '2018-08-15 21:10:00', 0),
	(154, '删除保洁师', '/admin/web/user/cleaner', 'DELETE', '2018-08-15 21:10:00', 0),
	(155, '编辑保洁师', '/admin/web/user/cleaner', 'PUT', '2018-08-15 21:10:00', 0),
	(156, '查看保洁师', '/admin/web/user/cleaner', 'GET', '2018-08-15 21:10:00', 0),
	(157, '获取所有保洁师', '/admin/web/user/cleaners', 'GET', '2018-08-15 21:10:00', 0),
	(158, '获取所有人员列表', '/admin/web/user/admins', 'GET', '2018-08-15 21:10:00', 0),
	(159, '新增人员', '/admin/web/user/admin', 'POST', '2018-08-15 21:10:00', 0),
	(160, '编辑人员', '(/admin/web/user/admin/).*', 'PUT', '2018-08-15 21:10:00', 0),
	(161, '删除人员', '(/admin/web/user/admin/).*', 'DELETE', '2018-08-15 21:10:00', 0),
	(162, '管理员修改密码', '/admin/web/user/password', 'PUT', '2018-08-15 21:10:00', 0),
	(163, '查询推荐记录', '/admin/web/recommend/list', 'GET', '2018-08-15 21:10:00', 0),
	(164, '推荐审核', '/admin/web/recommend/audit', 'POST', '2018-08-15 21:10:00', 0),
	(165, '查看用户角色列表', '/admin/web/userRoles', 'GET', '2018-08-15 21:10:00', 0),
	(166, '定义配置', '/admin/web/config/definition', 'POST', '2018-08-15 21:10:00', 0),
	(167, '更新配置', '/admin/web/config/definition', 'PUT', '2018-08-15 21:10:00', 0),
	(168, '查看配置', '/admin/web/config/list', 'GET', '2018-08-15 21:10:00', 0),
	(169, '网站基础信息配置', '/admin/web/config/website/save', 'PUT', '2018-08-15 21:10:00', 0),
	(170, '微信配置', '/admin/web/wechat/service/config/save', 'PUT', '2018-08-15 21:10:00', 0),
	(171, '微信小程序配置', '/admin/web/wechat/applet/config/save', 'PUT', '2018-08-15 21:10:00', 0),
	(172, '微信模板消息配置列表', '/admin/web/wechat/tmplmsg/list', 'POST', '2018-08-15 21:10:00', 0),
	(173, '添加微信模板消息', '/admin/web/wechat/tmplmsg/add', 'PUT', '2018-08-15 21:10:00', 0),
	(174, '修改微信模板消息', '/admin/web/wechat/tmplmsg/edit', 'PUT', '2018-08-15 21:10:00', 0),
	(175, '删除微信模板消息', '/admin/web/wechat/tmplmsg/del', 'PUT', '2018-08-15 21:10:00', 0),
	(176, '测试微信模板消息', '/admin/web/wechat/tmplmsg/test', 'PUT', '2018-08-15 21:10:00', 0),
	(177, '测试微信长连接转换', '/admin/web/wechat/longToShorturl/test', 'PUT', '2018-08-15 21:10:00', 0),
	(178, '模版编辑页面', '/admin/web/wechat/tmplmsg_edit', 'GET', '2018-08-15 21:10:00', 0),
	(179, '模版新增页面', '/admin/web/wechat/tmplmsg_add', 'GET', '2018-08-15 21:10:00', 0),
	(180, '短信模版编辑页面', '/admin/web/sms/template_edit', 'GET', '2018-08-15 21:10:00', 0),
	(181, '短信模版新增页面', '/admin/web/sms/template_add', 'GET', '2018-08-15 21:10:00', 0),
	(182, '获取服务卡操作记录列表', '(/admin/web/book/cardOpt/).*', 'GET', '2018-08-15 21:10:00', 0),
	(183, '预约管理页面', '/admin/web/serviceOrderManage', 'GET', '2018-08-15 21:10:00', 0),
	(184, '客户中心查看页面', '/admin/web/userDetail', 'GET', '2018-08-15 21:10:00', 0),
	(185, '优惠券详情', '/admin/web/batchDetail', 'GET', '2018-08-15 21:10:00', 0),
	(186, '优惠券模版历史', '/admin/web/couponVersionHists', 'GET', '2018-08-15 21:10:00', 0),
	(187, '派单概览页面', '/admin/web/orderOverview', 'GET', '2018-08-15 21:10:00', 0),
	(188, '地图排班页面', '/admin/web/orderDispatchMap', 'GET', '2018-08-15 21:10:00', 0),
	(189, '新增商品页面', '/admin/web/addGoods', 'GET', '2018-08-15 22:20:19', 0),
	(190, '新增编辑活动页面', '/admin/web/addActivity', 'GET', '2018-08-15 23:31:11', 0),
	(191, '保洁师档期页面', '/admin/web/cleanerSchdule', 'GET', '2018-08-16 02:05:45', 0),
	(192, '新增商品模版', '/admin/web/addGoodsTemplate', 'GET', '2018-08-16 02:29:03', 0);
/*!40000 ALTER TABLE `function_permission` ENABLE KEYS */;

-- 导出  表 1hjz.permission_info 结构
DROP TABLE IF EXISTS `permission_info`;
CREATE TABLE IF NOT EXISTS `permission_info` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '权限ID',
  `permission_name` varchar(32) DEFAULT '' COMMENT '权限名称',
  `create_time` bigint(20) DEFAULT '0' COMMENT '创建时间',
  `remark` varchar(64) DEFAULT '' COMMENT '备注',
  `del_flag` tinyint(4) DEFAULT '0' COMMENT '删除标志',
  `permission_url` varchar(200) DEFAULT NULL COMMENT 'URL',
  `parent_id` bigint(20) DEFAULT NULL COMMENT '父级菜单',
  `level` int(11) DEFAULT NULL COMMENT '级别',
  `icon` varchar(50) DEFAULT NULL COMMENT '图标',
  `sort` bigint(20) DEFAULT NULL COMMENT '排序',
  `type` tinyint(4) DEFAULT '1' COMMENT '权限类型：1-菜单，2-菜单组',
  `create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
  `update_time` bigint(20) DEFAULT NULL COMMENT '更新时间',
  `update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
  `fids` varchar(200) DEFAULT NULL COMMENT '功能权限id集合：逗号分隔',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8;

-- 正在导出表  1hjz.permission_info 的数据：~48 rows (大约)
DELETE FROM `permission_info`;
/*!40000 ALTER TABLE `permission_info` DISABLE KEYS */;
INSERT INTO `permission_info` (`id`, `permission_name`, `create_time`, `remark`, `del_flag`, `permission_url`, `parent_id`, `level`, `icon`, `sort`, `type`, `create_by`, `update_time`, `update_by`, `fids`) VALUES
	(4, '商品列表', 1533666595961, '', 0, '/admin/web/goods', 32, 2, '', 30200, 1, '180515171015928100', 1534344825095, '180601140928384101', '92,90,91,87,94,189,88,89,93,71'),
	(11, '首页', 1533728903002, '', 0, '/admin/web/home', 0, 1, 'icon-home', 10000, 1, '180515171015928100', 1534350993363, '180601140928384101', '141,142,143'),
	(24, '菜单管理', 1533867836904, '', 0, '/admin/web/menu', 0, 1, '', 20000, 1, NULL, 1534335956444, '180601140928384101', '118,119,121,122,123,124'),
	(25, '人员管理', 1534075441988, '', 0, '', 0, 1, 'icon-desktop', 100000, 1, '180515171015928100', 1534223014303, '180515171015928100', '6,7'),
	(26, '角色管理', 1534075473550, '', 0, '/admin/web/role', 25, 2, '', 100100, 1, '180515171015928100', 1534335915680, '180601140928384101', '128,131,132,134,118'),
	(32, '商品管理', 1534081572317, '', 0, '', 0, 1, 'icon-list', 30000, 1, '180515171015928100', 1534131659201, '180327154726794106', NULL),
	(33, '首页配置', 1534081612520, '', 0, '/admin/web/indexConfig', 32, 2, '', 30100, 1, '180515171015928100', 1534342615147, '180601140928384101', '100,99,98,97'),
	(34, '商品模板列表', 1534081647250, '', 0, '/admin/web/goodsTemplate', 32, 2, '', 30300, 1, '180515171015928100', 1534357806749, '180601140928384101', '82,83,84,85,86,87,192'),
	(35, '活动管理', 1534081706269, '', 0, '', 0, 1, 'icon-list', 40000, 1, '180515171015928100', 1534131479800, '180327154726794106', NULL),
	(36, '活动首页图', 1534081762767, '', 0, '/admin/web/activeHome', 35, 2, '', 40100, 1, '180515171015928100', 1534336030219, '180601140928384101', '100,98,99'),
	(37, '活动列表', 1534081821829, '', 0, '/admin/web/activity_manage', 35, 2, '', 40200, 1, '180515171015928100', 1534355984229, '180601140928384101', '5,9,7,190,8,6'),
	(38, '活动记录', 1534081864749, '', 0, '/admin/web/activeRecord', 35, 2, '', 40300, 1, '180515171015928100', 1534336422327, '180601140928384101', '10,11'),
	(39, '优惠券管理', 1534081905097, '', 0, '', 0, 1, 'icon-list', 50000, 1, '180515171015928100', 1534161425525, '180515171015928100', ''),
	(40, '优惠券模板列表', 1534081940033, '', 0, '/admin/web/couponBatch', 39, 2, '', 50100, 1, '180515171015928100', 1534350631555, '180601140928384101', '65,63,64,67,92,100,48,186,73'),
	(41, '优惠券统计', 1534081969185, '', 0, '/admin/web/coupon', 39, 2, '', 50200, 1, '180515171015928100', 1534336790219, '180601140928384101', '68,48,185,66,69,70'),
	(42, '渠道列表', 1534081997423, '', 0, '/admin/web/channel', 39, 2, '', 50300, 1, '180515171015928100', 1534336807672, '180601140928384101', '100,46,47'),
	(43, '保洁中心', 1534082016008, '', 0, '', 0, 1, 'icon-list', 60000, 1, '180515171015928100', 1534130633981, '180327154726794106', NULL),
	(44, '保洁师', 1534082050881, '', 0, '/admin/web/cleanerList', 43, 2, '', 60100, 1, '180515171015928100', 1534356397566, '180601140928384101', '191,156,15,152,155,39,146,100'),
	(45, '预约池', 1534082097013, '', 0, '/admin/web/orderPool', 43, 2, '', 60200, 1, '180515171015928100', 1534336915725, '180601140928384101', '25,26'),
	(46, '排班管理', 1534082128651, '', 0, '/admin/web/arrangeManage', 43, 2, '', 60300, 1, '180515171015928100', 1534336896440, '180601140928384101', '34,40'),
	(47, '预约调度', 1534082152633, '', 0, '/admin/web/orderDispatch', 43, 2, '', 60400, 1, '180515171015928100', 1534337418804, '180601140928384101', '33,37,31,187,188,33,41,35'),
	(48, '服务卡管理', 1534082188664, '', 0, '/admin/web/serviceCarList', 43, 2, '', 60600, 1, '180515171015928100', 1534355755793, '180601140928384101', '45,27,28,15,12,13,148,182,36,53,51,29,183,32,42,156,36,53,29,51,33'),
	(49, '服务工单', 1534082230165, '', 0, '/admin/web/serviceOrder', 43, 2, '', 60500, 1, '180515171015928100', 1534336977768, '180601140928384101', '17,18,19'),
	(50, '申诉列表', 1534082266291, '', 0, '/admin/web/cardReissue', 43, 2, '', 60700, 1, '180515171015928100', 1534082266291, '180515171015928100', '20,21,22'),
	(51, '请假审核', 1534082299383, '', 0, '/admin/web/leaveApplication', 43, 2, '', 60800, 1, '180515171015928100', 1534082299383, '180515171015928100', '23,24'),
	(52, '交易管理', 1534082343498, '', 0, '', 0, 1, 'icon-home', 70000, 1, '180515171015928100', 1534215944742, '180801134239855126', NULL),
	(53, '订单管理', 1534082381317, '', 0, '/admin/web/orderManage', 52, 2, '', 70100, 1, '180515171015928100', 1534337012626, '180601140928384101', '114,116,65,117,92,15,48'),
	(54, '退款管理', 1534082407535, '', 0, '/admin/web/refundList', 52, 2, '', 70200, 1, '180515171015928100', 1534346510741, '180601140928384101', '125,127,126'),
	(55, '提现管理', 1534082429422, '', 0, '/admin/web/enchashment', 52, 2, '', 70300, 1, '180515171015928100', 1534337042456, '180601140928384101', '74,75'),
	(57, '推荐记录', 1534082489029, '', 0, '/admin/web/recommendList', 52, 2, '', 70400, 1, '180515171015928100', 1534337062550, '180601140928384101', '163,164'),
	(58, '商户管理', 1534082507639, '', 0, '', 0, 1, 'icon-list', 80000, 1, '180515171015928100', 1534131676378, '180327154726794106', NULL),
	(59, '商户授权配置', 1534082540068, '', 0, '/admin/web/merchantList', 58, 2, '', 80100, 1, '180515171015928100', 1534337102042, '180601140928384101', '100,102,107,108,103,105,104,15,145,147'),
	(60, '开放区域配置', 1534082571972, '', 0, '/admin/web/openArea', 58, 2, '', 80200, 1, '180515171015928100', 1534337115895, '180601140928384101', '109,110'),
	(61, '服务区域配置', 1534082611625, '', 0, '/admin/web/serviceArea', 58, 2, '', 80300, 1, '180515171015928100', 1534335060576, '180601140928384101', '111,113,112'),
	(62, '用户中心', 1534082633780, '', 0, '', 0, 1, 'icon-list', 90000, 1, '180515171015928100', 1534131608438, '180327154726794106', NULL),
	(63, '客户中心', 1534082659200, '', 0, '/admin/web/userList', 62, 2, '', 90100, 1, '180515171015928100', 1534341903467, '180601140928384101', '59,50,157,49,184,62,68,114,27,32,163,4,61,49,60'),
	(64, '评价管理', 1534082682320, '', 0, '/admin/web/evaluateList', 62, 2, '', 90200, 1, '180515171015928100', 1534335017650, '180601140928384101', '76,77'),
	(65, '微信管理', 1534082701100, '', 0, '', 0, 1, 'icon-cogs', 110000, 1, '180515171015928100', 1534131636419, '180327154726794106', NULL),
	(66, '服务号设置', 1534082736730, '', 0, '/admin/web/config/service/wechat', 65, 2, '', 110100, 1, '180515171015928100', 1534348897353, '180601140928384101', '170'),
	(67, '小程序设置', 1534082764619, '', 0, '/admin/web/config/applet/wechat', 65, 2, '', 110200, 1, '180515171015928100', 1534348885089, '180601140928384101', '171'),
	(68, '模板消息', 1534082792848, '', 0, '/admin/web/wechat/tmplmsg', 65, 2, '', 110300, 1, '180515171015928100', 1534334830654, '180601140928384101', '172,175,176,178,174,179,173'),
	(69, '短信管理', 1534082814176, '', 0, '', 0, 1, 'icon-cogs', 120000, 1, '180515171015928100', 1534131628697, '180327154726794106', NULL),
	(70, '服务商设置', 1534082841442, '', 0, '/admin/web/sms/template', 69, 2, '', 120100, 1, '180515171015928100', 1534334961483, '180601140928384101', '136,139,140,180,138,181,137'),
	(71, '短信模板', 1534082870085, '', 0, '/admin/web/sms/template', 69, 2, '', 120200, 1, '180515171015928100', 1534334945087, '180601140928384101', '136,139,138,180,181,137'),
	(72, '系统管理', 1534082896741, '', 0, '', 0, 1, 'icon-cogs', 130000, 1, '180515171015928100', 1534082896741, '180515171015928100', NULL),
	(73, '系统设置', 1534082924024, '', 0, '/admin/web/config/system', 72, 2, '', 130100, 1, '180515171015928100', 1534334883541, '180601140928384101', '169'),
	(74, '系统更新脚本', 1534082949903, '', 0, '/admin/web/system/update', 72, 2, '', 130200, 1, '180515171015928100', 1534334867699, '180601140928384101', '149,177'),
	(75, '员工列表', 1534131895941, '', 0, '/admin/web/personnelList', 25, 2, '', 100200, 1, '180327154726794106', 1534336003017, '180601140928384101', '158,159,160,129,101');
/*!40000 ALTER TABLE `permission_info` ENABLE KEYS */;

/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
