text: /*
  SQLyog Ultimate v11.13 (64 bit)
  MySQL - 5.7.14 : Database - wms
  *********************************************************************
  */
  
  
  /*!40101 SET NAMES utf8 */;
  
  /*!40101 SET SQL_MODE=''*/;
  
  /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  /*!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' */;
  /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  CREATE DATABASE /*!32312 IF NOT EXISTS*/`wms` /*!40100 DEFAULT CHARACTER SET latin1 */;
  
  USE `wms`;
  
  /*Table structure for table `abnormalbalance` */
  
  DROP TABLE IF EXISTS `abnormalbalance`;
  
  CREATE TABLE `abnormalbalance` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) DEFAULT NULL COMMENT '名称',
    `department_id` int(11) DEFAULT NULL COMMENT '支出部门',
    `income_department_id` int(11) DEFAULT NULL COMMENT '收入部门',
    `current_balance` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `mod` tinyint(2) NOT NULL DEFAULT '1' COMMENT '收支类型',
    `content` varchar(1000) NOT NULL COMMENT '变动内容',
    `status` tinyint(1) NOT NULL COMMENT '状态',
    `create_time` datetime NOT NULL COMMENT '创建时间',
    `create_admin_id` int(11) NOT NULL COMMENT '创建用户ID',
    `verify_admin_id` int(11) DEFAULT NULL COMMENT '审核用户ID',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT NULL COMMENT '批准用户ID',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) DEFAULT NULL COMMENT '完成用户ID',
    `operation_time` datetime DEFAULT NULL COMMENT '完成时间',
    `config_id` int(11) NOT NULL COMMENT '流程ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `sn` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='业务收支资金流水表';
  
  /*Data for the table `abnormalbalance` */
  
  /*Table structure for table `abnormalbbalance` */
  
  DROP TABLE IF EXISTS `abnormalbbalance`;
  
  CREATE TABLE `abnormalbbalance` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) DEFAULT NULL COMMENT '名称',
    `department_id` int(11) DEFAULT NULL COMMENT '支出部门',
    `income_department_id` int(11) DEFAULT NULL COMMENT '收入部门',
    `current_balance` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '当前金额',
    `mod` tinyint(2) NOT NULL DEFAULT '1' COMMENT '收支类型',
    `content` varchar(1000) NOT NULL COMMENT '变动内容',
    `status` tinyint(1) NOT NULL COMMENT '状态',
    `create_time` datetime NOT NULL COMMENT '创建时间',
    `create_admin_id` int(11) NOT NULL COMMENT '创建用户ID',
    `verify_admin_id` int(11) DEFAULT NULL COMMENT '审核用户ID',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT NULL COMMENT '批准用户ID',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) DEFAULT NULL COMMENT '完成用户ID',
    `operation_time` datetime DEFAULT NULL COMMENT '完成时间',
    `config_id` int(11) NOT NULL COMMENT '流程ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `sn` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='业务收支资金流水表';
  
  /*Data for the table `abnormalbbalance` */
  
  /*Table structure for table `admin` */
  
  DROP TABLE IF EXISTS `admin`;
  
  CREATE TABLE `admin` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '管理员 ID',
    `username` varchar(45) NOT NULL COMMENT '登录账户',
    `password` varchar(64) NOT NULL COMMENT '密码',
    `auth_key` varchar(32) NOT NULL COMMENT '校验码',
    `mobile` varchar(15) NOT NULL COMMENT '联系电话',
    `department_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '部门ID',
    `role_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '管理员角色ID',
    `last_login` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后登录时间',
    `last_ip` varchar(15) NOT NULL DEFAULT '0.0.0.0' COMMENT '最后登录 IP',
    `status` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '账号状态\n0: 禁用\n1: 启用\n99：删除',
    `name` varchar(100) DEFAULT NULL COMMENT '姓名',
    `id_card` varchar(100) DEFAULT NULL COMMENT '证件号',
    `job_number` varchar(100) DEFAULT NULL COMMENT '工号',
    `entry_date` date DEFAULT NULL COMMENT '入职日期',
    `leave_date` date DEFAULT NULL COMMENT '离职日期',
    `create_time` datetime DEFAULT NULL COMMENT '创建日期',
    `update_time` datetime DEFAULT NULL COMMENT '更新日期',
    `is_first` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否首次登录',
    `is_safety` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否安全登出 1：是 0：否',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='管理员主表';
  
  /*Data for the table `admin` */
  
  insert  into `admin`(`id`,`username`,`password`,`auth_key`,`mobile`,`department_id`,`role_id`,`last_login`,`last_ip`,`status`,`name`,`id_card`,`job_number`,`entry_date`,`leave_date`,`create_time`,`update_time`,`is_first`,`is_safety`) values (1,'admin','$2y$13$a9JOvVNICT2wNGeyCmgxIeNanYlfxYHBYCgW0NkHnlzCZxKJrLPlm','pHJZ1S-zcGweAq9X-BtvoVdUYIa_zskj','',1,1,1488442679,'127.0.0.1',1,'','zr001','zr001','2016-10-01',NULL,'2016-08-23 16:51:52','2017-03-02 16:17:59',2,0),(2,'flowAdmin','$2y$13$UcybNOyEn8dsol/GTS/NmuQdl2IMNbf99sc6TCkUEgmYEHFu4CgFa','pHJZ1S-zcGweAq9X-BtvoVdUYIa_zskj','',1,2,1486535427,'192.168.1.113',1,'','zr002','zr002','2016-10-01',NULL,'2016-08-23 16:51:52','2017-02-08 14:30:27',2,0),(3,'businAdmin','$2y$13$/PFc9be1hS2kBX74l68akuE9c64MjTioi6qMlTSGDIVwkgjZqBcFe','pHJZ1S-zcGweAq9X-BtvoVdUYIa_zskj','',1,3,1472874166,'27.38.60.154',1,'','zr003','zr003','2016-10-01',NULL,'2016-08-23 16:51:52','2017-02-13 16:07:05',1,1),(4,'肖波','$2y$13$tdyC522rJdHlC4bQbLr.cuH4fO7CRkH8suhZJGcmUr1kvckreF9cq','HAdbx69hFyUX3ek5zOWmBFxCHc-Q3oNz','',2,6,0,'0.0.0.0',1,'','20170107','107','2017-01-07','2017-10-07','2017-02-07 15:47:02','2017-02-07 15:47:02',0,1),(5,'杨波','$2y$13$ifr94kCgIRgwGo.d69znl.n0zlnbNcBmOMyiAh.urznqicAFyuRSa','wyO-JJIJVL-K8OygYYMWd3y5xavy9a5B','',2,5,0,'0.0.0.0',1,'','20170108','108','2017-01-07','2017-10-08','2017-02-07 15:47:03','2017-02-07 15:47:03',0,1),(6,'唐远望','$2y$13$hlFJXfbpFdhiE7QpO/fA9OctrBrdsA0hoQLbQW017hWFLiWokUAhu','ANzk7HKodknJW8ZRDshLFYENZACnkFks','',2,4,0,'0.0.0.0',1,'','20170109','109','2017-01-07','2017-10-09','2017-02-07 15:47:03','2017-02-07 15:47:03',0,1),(7,'陈伦','$2y$13$wrJqySpHGIGNfO47G9J9ZOj8ayTZim7oXE2jGvhlakHnc6pkjeP1e','Tj-qhTDbtP0_XDj5f7ytrq0TkCknoxlO','',2,7,0,'0.0.0.0',1,'','20170110','110','2017-01-07','2017-10-10','2017-02-07 15:47:04','2017-02-07 15:47:04',0,1);
  
  /*Table structure for table `adminlog` */
  
  DROP TABLE IF EXISTS `adminlog`;
  
  CREATE TABLE `adminlog` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `admin_id` int(11) NOT NULL COMMENT '操作员ID',
    `content` varchar(50) NOT NULL COMMENT '内容',
    `status` tinyint(1) NOT NULL COMMENT '状态：0 操作失败；1 操作成功',
    `type` varchar(20) DEFAULT NULL COMMENT '操作类型',
    `ip` varchar(20) NOT NULL COMMENT '操作 IP',
    `os` varchar(100) DEFAULT NULL COMMENT '操作系统',
    `browser` varchar(100) DEFAULT NULL COMMENT '浏览器',
    `create_time` datetime NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=240 DEFAULT CHARSET=utf8;
  
  /*Data for the table `adminlog` */
  
  insert  into `adminlog`(`id`,`admin_id`,`content`,`status`,`type`,`ip`,`os`,`browser`,`create_time`) values (1,1,'设置公司名称和Logo',1,'set_companyinfo','192.168.1.110','','','2017-02-07 15:45:47'),(2,1,'修改用户密码：1',1,'修改用户密码：1','192.168.1.110','','','2017-02-07 15:46:01'),(3,1,'供应商出品加入物料1',1,'add_product','192.168.1.110','','','2017-02-07 15:54:08'),(4,1,'供应商出品加入物料2',1,'add_product','192.168.1.110','','','2017-02-07 15:54:11'),(5,1,'供应商出品加入物料3',1,'add_product','192.168.1.110','','','2017-02-07 15:54:13'),(6,1,'物料录入成功3',1,'update_product','192.168.1.110','','','2017-02-07 15:54:24'),(7,1,'物料审核通过：3',1,'product_verify','192.168.1.110','','','2017-02-07 15:54:28'),(8,1,'物料调仓申请批准通过：3',1,'wtransfer_approval','192.168.1.110','','','2017-02-07 15:54:30'),(9,1,'物料加入成功完成：3',1,'wtransfer_finish','192.168.1.110','','','2017-02-07 15:54:33'),(10,1,'物料录入成功2',1,'update_product','192.168.1.110','','','2017-02-07 15:54:42'),(11,1,'物料审核通过：2',1,'product_verify','192.168.1.110','','','2017-02-07 15:54:45'),(12,1,'物料调仓申请批准通过：2',1,'wtransfer_approval','192.168.1.110','','','2017-02-07 15:54:49'),(13,1,'物料加入成功完成：2',1,'wtransfer_finish','192.168.1.110','','','2017-02-07 15:54:51'),(14,1,'物料录入成功1',1,'update_product','192.168.1.110','','','2017-02-07 15:55:01'),(15,1,'物料审核通过：1',1,'product_verify','192.168.1.110','','','2017-02-07 15:55:03'),(16,1,'物料调仓申请批准通过：1',1,'wtransfer_approval','192.168.1.110','','','2017-02-07 15:55:06'),(17,1,'物料加入成功完成：1',1,'wtransfer_finish','192.168.1.110','','','2017-02-07 15:55:08'),(18,1,'物料采购计划申请成功：1',1,'wplanning','192.168.1.110','','','2017-02-07 15:56:11'),(19,1,'物料采购计划申请成功：2',1,'wplanning','192.168.1.110','','','2017-02-07 15:56:41'),(20,1,'物料采购计划申请成功：3',1,'wplanning','192.168.1.110','','','2017-02-07 15:57:15'),(21,1,'采购生成计划审核通过：3',1,'wplanning','192.168.1.110','','','2017-02-07 15:57:19'),(22,1,'采购生成计划批准通过：3',1,'wplanning','192.168.1.110','','','2017-02-07 15:57:22'),(23,1,'物料采购计划下定申请成功：3',1,'wprocurement','192.168.1.110','','','2017-02-07 15:57:24'),(24,1,'采购生成计划执行通过：3',1,'wplanning','192.168.1.110','','','2017-02-07 15:57:24'),(25,1,'采购生成计划审核通过：2',1,'wplanning','192.168.1.110','','','2017-02-07 15:57:29'),(26,1,'采购生成计划批准通过：2',1,'wplanning','192.168.1.110','','','2017-02-07 15:57:32'),(27,1,'物料采购计划下定申请成功：2',1,'wprocurement','192.168.1.110','','','2017-02-07 15:57:34'),(28,1,'采购生成计划执行通过：2',1,'wplanning','192.168.1.110','','','2017-02-07 15:57:34'),(29,1,'采购生成计划审核通过：1',1,'wplanning','192.168.1.110','','','2017-02-07 15:57:53'),(30,1,'采购生成计划批准通过：1',1,'wplanning','192.168.1.110','','','2017-02-07 15:57:56'),(31,1,'物料采购计划下定申请成功：1',1,'wprocurement','192.168.1.110','','','2017-02-07 15:57:58'),(32,1,'采购生成计划执行通过：1',1,'wplanning','192.168.1.110','','','2017-02-07 15:57:58'),(33,1,'采购下订审核通过：3',1,'wprocurement','192.168.1.110','','','2017-02-07 15:58:07'),(34,1,'采购下订批准通过：3',1,'wprocurement','192.168.1.110','','','2017-02-07 15:58:10'),(35,1,'采购计划下定财务记录添加成功：1',1,'oprocurement_add','192.168.1.110','','','2017-02-07 15:58:12'),(36,1,'物料采购下定入库申请成功：3',1,'wbuying_add','192.168.1.110','','','2017-02-07 15:58:12'),(37,1,'采购下订执行通过：3',1,'wprocurement','192.168.1.110','','','2017-02-07 15:58:12'),(38,1,'采购下订审核通过：2',1,'wprocurement','192.168.1.110','','','2017-02-07 15:58:18'),(39,1,'采购下订批准通过：2',1,'wprocurement','192.168.1.110','','','2017-02-07 15:58:21'),(40,1,'采购计划下定财务记录添加成功：2',1,'oprocurement_add','192.168.1.110','','','2017-02-07 15:58:24'),(41,1,'物料采购下定入库申请成功：2',1,'wbuying_add','192.168.1.110','','','2017-02-07 15:58:24'),(42,1,'采购下订执行通过：2',1,'wprocurement','192.168.1.110','','','2017-02-07 15:58:24'),(43,1,'采购下订审核通过：1',1,'wprocurement','192.168.1.110','','','2017-02-07 15:58:31'),(44,1,'采购下订批准通过：1',1,'wprocurement','192.168.1.110','','','2017-02-07 15:58:33'),(45,1,'采购计划下定财务记录添加成功：3',1,'oprocurement_add','192.168.1.110','','','2017-02-07 15:58:35'),(46,1,'物料采购下定入库申请成功：1',1,'wbuying_add','192.168.1.110','','','2017-02-07 15:58:35'),(47,1,'采购下订执行通过：1',1,'wprocurement','192.168.1.110','','','2017-02-07 15:58:35'),(48,1,'订单入库审核通过：3',1,'wbuying','192.168.1.110','','','2017-02-07 15:58:43'),(49,1,'订单入库批准通过：3',1,'wbuying','192.168.1.110','','','2017-02-07 15:58:50'),(50,1,'订单入库执行通过：3',1,'wbuying','192.168.1.110','','','2017-02-07 15:58:56'),(51,1,'订单入库审核通过：2',1,'wbuying','192.168.1.110','','','2017-02-07 15:59:01'),(52,1,'订单入库批准通过：2',1,'wbuying','192.168.1.110','','','2017-02-07 15:59:04'),(53,1,'订单入库执行通过：2',1,'wbuying','192.168.1.110','','','2017-02-07 15:59:06'),(54,1,'订单入库审核通过：1',1,'wbuying','192.168.1.110','','','2017-02-07 15:59:11'),(55,1,'订单入库批准通过：1',1,'wbuying','192.168.1.110','','','2017-02-07 15:59:14'),(56,1,'订单入库执行通过：1',1,'wbuying','192.168.1.110','','','2017-02-07 15:59:17'),(57,1,'仓库盘点计划申请成功 ：1',1,'wcheck_add','192.168.1.110','','','2017-02-07 15:59:34'),(58,1,'总盘点计划申请成功 ：2',1,'wcheck_add','192.168.1.110','','','2017-02-07 16:06:42'),(59,1,'总盘点计划审核通过：2',1,'checkplanning','192.168.1.110','','','2017-02-07 16:06:48'),(60,1,'总盘点计划批准通过：2',1,'checkplanning','192.168.1.110','','','2017-02-07 16:06:51'),(61,1,'总盘点计划执行通过：2',1,'checkplanning','192.168.1.110','','','2017-02-07 16:06:54'),(62,1,'部门盘点计划申请成功 ：3',1,'wcheck_add','192.168.1.110','','','2017-02-07 16:10:47'),(63,1,'物料耗损申请成功：1',1,'wwastage_add','192.168.1.110','','','2017-02-07 16:23:08'),(64,1,'物料耗损申请审核通过：1',1,'wwastage','192.168.1.110','','','2017-02-07 16:23:14'),(65,1,'订单支付审核通过：3',1,'oprocurement','192.168.1.110','','','2017-02-07 16:23:33'),(66,1,'订单支付批准通过：3',1,'oprocurement','192.168.1.110','','','2017-02-07 16:23:37'),(67,1,'订单支付执行通过：3',1,'oprocurement','192.168.1.110','','','2017-02-07 16:23:39'),(68,1,'组合物料模板添加成功：5',1,'template_add','192.168.1.110','','','2017-02-07 16:28:31'),(69,1,'物料出库申请成功：3',1,'wcheckout_add','192.168.1.110',NULL,NULL,'2017-02-07 16:34:41'),(70,1,'物料退仓申请成功：4',1,'wback_add','192.168.1.110',NULL,NULL,'2017-02-07 16:36:49'),(71,1,'设置配置数据',1,'set_configAll','192.168.1.110',NULL,NULL,'2017-02-07 16:42:17'),(72,1,'物料采购计划申请成功：4',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-07 17:18:24'),(73,1,'物料采购计划申请成功：5',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-07 17:18:50'),(74,1,'物料出库申请成功：4',1,'wcheckout_add','192.168.1.110',NULL,NULL,'2017-02-07 17:19:20'),(75,1,'物料出库申请成功：5',1,'wcheckout_add','192.168.1.110',NULL,NULL,'2017-02-07 17:19:36'),(76,1,'物料调仓申请成功：1',1,'wtransfer_add','192.168.1.110',NULL,NULL,'2017-02-07 17:19:56'),(77,1,'物料调仓申请成功：2',1,'wtransfer_add','192.168.1.110',NULL,NULL,'2017-02-07 17:20:10'),(78,1,'物料调仓申请成功：3',1,'wtransfer_add','192.168.1.110',NULL,NULL,'2017-02-07 17:20:34'),(79,1,'物料退仓申请成功：5',1,'wback_add','192.168.1.110',NULL,NULL,'2017-02-07 17:21:45'),(80,1,'总盘点计划过期挂起：2',1,'checkplanning','192.168.1.110',NULL,NULL,'2017-02-08 09:50:37'),(81,2,'修改用户密码：2',1,'修改用户密码：2','192.168.1.113',NULL,NULL,'2017-02-08 10:33:22'),(82,2,'订单模板添加成功：1',1,'template_add','192.168.1.113',NULL,NULL,'2017-02-08 15:08:19'),(83,1,'仓库盘点计划申请成功 ：6',1,'wcheck_add','192.168.1.110',NULL,NULL,'2017-02-08 17:47:11'),(84,1,'仓库盘点计划申请成功 ：7',1,'wcheck_add','192.168.1.110',NULL,NULL,'2017-02-08 17:48:10'),(85,1,'仓库盘点计划申请成功 ：8',1,'wcheck_add','192.168.1.110',NULL,NULL,'2017-02-08 17:48:25'),(86,1,'仓库盘点计划申请成功 ：9',1,'wcheck_add','192.168.1.110',NULL,NULL,'2017-02-08 17:48:39'),(87,1,'供应商出品加入物料4',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:00'),(88,1,'供应商出品加入物料5',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:02'),(89,1,'供应商出品加入物料6',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:04'),(90,1,'供应商出品加入物料7',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:06'),(91,1,'供应商出品加入物料8',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:07'),(92,1,'供应商出品加入物料9',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:10'),(93,1,'供应商出品加入物料10',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:11'),(94,1,'供应商出品加入物料11',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:13'),(95,1,'供应商出品加入物料12',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:15'),(96,1,'供应商出品加入物料13',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:17'),(97,1,'供应商出品加入物料14',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:19'),(98,1,'供应商出品加入物料15',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:21'),(99,1,'供应商出品加入物料16',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:23'),(100,1,'供应商出品加入物料17',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:24'),(101,1,'供应商出品加入物料18',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:25'),(102,1,'供应商出品加入物料19',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:28'),(103,1,'供应商出品加入物料20',1,'add_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:29'),(104,1,'物料录入成功20',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:42'),(105,1,'物料审核通过：20',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:52:44'),(106,1,'物料调仓申请批准通过：20',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:52:47'),(107,1,'物料加入成功完成：20',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:52:49'),(108,1,'物料录入成功19',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:52:57'),(109,1,'物料审核通过：19',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:53:00'),(110,1,'物料调仓申请批准通过：19',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:53:02'),(111,1,'物料加入成功完成：19',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:53:04'),(112,1,'物料录入成功18',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:53:13'),(113,1,'物料审核通过：18',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:53:16'),(114,1,'物料调仓申请批准通过：18',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:53:18'),(115,1,'物料加入成功完成：18',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:53:21'),(116,1,'物料录入成功17',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:53:30'),(117,1,'物料审核通过：17',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:53:32'),(118,1,'物料调仓申请批准通过：17',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:53:35'),(119,1,'物料加入成功完成：17',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:53:41'),(120,1,'物料录入成功16',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:53:50'),(121,1,'物料审核通过：16',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:53:53'),(122,1,'物料调仓申请批准通过：16',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:53:56'),(123,1,'物料加入成功完成：16',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:53:58'),(124,1,'物料录入成功15',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:54:08'),(125,1,'物料审核通过：15',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:54:11'),(126,1,'物料调仓申请批准通过：15',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:54:13'),(127,1,'物料加入成功完成：15',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:54:16'),(128,1,'物料录入成功14',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:54:28'),(129,1,'物料审核通过：14',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:54:31'),(130,1,'物料调仓申请批准通过：14',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:54:33'),(131,1,'物料加入成功完成：14',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:54:36'),(132,1,'物料录入成功13',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:54:46'),(133,1,'物料审核通过：13',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:54:48'),(134,1,'物料调仓申请批准通过：13',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:54:52'),(135,1,'物料加入成功完成：13',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:54:55'),(136,1,'物料录入成功12',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:55:04'),(137,1,'物料审核通过：12',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:55:08'),(138,1,'物料调仓申请批准通过：12',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:55:10'),(139,1,'物料加入成功完成：12',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:55:13'),(140,1,'物料录入成功11',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:55:23'),(141,1,'物料审核通过：11',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:55:26'),(142,1,'物料调仓申请批准通过：11',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:55:29'),(143,1,'物料加入成功完成：11',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:55:31'),(144,1,'物料录入成功10',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:55:43'),(145,1,'物料审核通过：10',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:55:45'),(146,1,'物料调仓申请批准通过：10',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:55:48'),(147,1,'物料加入成功完成：10',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:55:51'),(148,1,'物料录入成功9',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:56:01'),(149,1,'物料审核通过：9',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:56:04'),(150,1,'物料调仓申请批准通过：9',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:56:06'),(151,1,'物料加入成功完成：9',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:56:09'),(152,1,'物料录入成功8',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:56:21'),(153,1,'物料审核通过：8',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:56:24'),(154,1,'物料调仓申请批准通过：8',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:56:26'),(155,1,'物料加入成功完成：8',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:56:28'),(156,1,'物料录入成功7',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:56:37'),(157,1,'物料审核通过：7',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:56:39'),(158,1,'物料调仓申请批准通过：7',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:56:42'),(159,1,'物料加入成功完成：7',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:56:45'),(160,1,'物料录入成功6',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:56:55'),(161,1,'物料审核通过：6',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:56:57'),(162,1,'物料调仓申请批准通过：6',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:57:00'),(163,1,'物料加入成功完成：6',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:57:03'),(164,1,'物料录入成功5',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:57:13'),(165,1,'物料审核通过：5',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:57:15'),(166,1,'物料调仓申请批准通过：5',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:57:18'),(167,1,'物料加入成功完成：5',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:57:21'),(168,1,'物料录入成功4',1,'update_product','192.168.1.110',NULL,NULL,'2017-02-08 17:57:30'),(169,1,'物料审核通过：4',1,'product_verify','192.168.1.110',NULL,NULL,'2017-02-08 17:57:33'),(170,1,'物料调仓申请批准通过：4',1,'wtransfer_approval','192.168.1.110',NULL,NULL,'2017-02-08 17:57:35'),(171,1,'物料加入成功完成：4',1,'wtransfer_finish','192.168.1.110',NULL,NULL,'2017-02-08 17:57:37'),(172,1,'物料采购计划申请成功：8',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 17:58:06'),(173,1,'物料采购计划申请成功：9',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 17:58:29'),(174,1,'物料采购计划申请成功：10',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 17:58:56'),(175,1,'物料采购计划申请成功：11',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 17:59:20'),(176,1,'采购生成计划审核通过：11',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:04'),(177,1,'采购生成计划批准通过：11',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:06'),(178,1,'物料采购计划下定申请成功：11',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:00:09'),(179,1,'采购生成计划执行通过：11',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:09'),(180,1,'采购生成计划审核通过：10',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:16'),(181,1,'采购生成计划批准通过：10',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:18'),(182,1,'物料采购计划下定申请成功：10',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:00:20'),(183,1,'采购生成计划执行通过：10',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:20'),(184,1,'采购生成计划审核通过：9',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:25'),(185,1,'采购生成计划批准通过：9',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:27'),(186,1,'物料采购计划下定申请成功：9',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:00:30'),(187,1,'采购生成计划执行通过：9',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:30'),(188,1,'采购生成计划审核通过：8',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:35'),(189,1,'采购生成计划批准通过：8',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:37'),(190,1,'物料采购计划下定申请成功：8',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:00:40'),(191,1,'采购生成计划执行通过：8',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:40'),(192,1,'采购生成计划审核通过：5',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:45'),(193,1,'采购生成计划批准通过：5',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:47'),(194,1,'物料采购计划下定申请成功：5',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:00:50'),(195,1,'采购生成计划执行通过：5',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:50'),(196,1,'采购生成计划审核通过：4',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:55'),(197,1,'采购生成计划批准通过：4',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:57'),(198,1,'物料采购计划下定申请成功：4',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:00:59'),(199,1,'采购生成计划执行通过：4',1,'wplanning','192.168.1.110',NULL,NULL,'2017-02-08 18:00:59'),(200,1,'采购下订审核通过：4',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:01:21'),(201,1,'采购下订批准通过：4',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:01:24'),(202,1,'采购计划下定财务记录添加成功：6',1,'oprocurement_add','192.168.1.110',NULL,NULL,'2017-02-08 18:01:53'),(203,1,'物料采购下定入库申请成功：4',1,'wbuying_add','192.168.1.110',NULL,NULL,'2017-02-08 18:01:53'),(204,1,'采购下订执行通过：4',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:01:53'),(205,1,'采购下订审核通过：5',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:02:00'),(206,1,'采购下订批准通过：5',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:02:02'),(207,1,'采购计划下定财务记录添加成功：7',1,'oprocurement_add','192.168.1.110',NULL,NULL,'2017-02-08 18:02:05'),(208,1,'物料采购下定入库申请成功：5',1,'wbuying_add','192.168.1.110',NULL,NULL,'2017-02-08 18:02:05'),(209,1,'采购下订执行通过：5',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:02:05'),(210,1,'采购下订审核通过：6',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:02:10'),(211,1,'采购下订批准通过：6',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:02:12'),(212,1,'采购计划下定财务记录添加成功：8',1,'oprocurement_add','192.168.1.110',NULL,NULL,'2017-02-08 18:02:15'),(213,1,'物料采购下定入库申请成功：6',1,'wbuying_add','192.168.1.110',NULL,NULL,'2017-02-08 18:02:15'),(214,1,'采购下订执行通过：6',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:02:15'),(215,1,'采购下订审核通过：7',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:02:21'),(216,1,'采购下订批准通过：7',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:02:23'),(217,1,'采购计划下定财务记录添加成功：9',1,'oprocurement_add','192.168.1.110',NULL,NULL,'2017-02-08 18:02:25'),(218,1,'物料采购下定入库申请成功：7',1,'wbuying_add','192.168.1.110',NULL,NULL,'2017-02-08 18:02:25'),(219,1,'采购下订执行通过：7',1,'wprocurement','192.168.1.110',NULL,NULL,'2017-02-08 18:02:25'),(220,1,'订单入库审核通过：9',1,'wbuying','192.168.1.110',NULL,NULL,'2017-02-08 18:02:35'),(221,1,'订单入库批准通过：9',1,'wbuying','192.168.1.110',NULL,NULL,'2017-02-08 18:02:38'),(222,1,'物料采购计划申请成功：12',1,'wplanning','127.0.0.1',NULL,NULL,'2017-02-09 14:44:59'),(223,1,'采购生成计划执行驳回：12',1,'wplanning','127.0.0.1',NULL,NULL,'2017-02-09 14:46:00'),(224,1,'重置用户密码：3',1,'重置用户密码：3','127.0.0.1',NULL,NULL,'2017-02-13 16:07:05'),(225,1,'制作订单成功：11',1,'order','127.0.0.1',NULL,NULL,'2017-02-22 17:21:07'),(226,1,'制作订单成功：12',1,'order','127.0.0.1',NULL,NULL,'2017-02-22 17:23:37'),(227,1,'制作订单成功：13',1,'order','127.0.0.1',NULL,NULL,'2017-02-22 17:37:07'),(228,1,'制作订单成功：14',1,'order','127.0.0.1',NULL,NULL,'2017-02-22 17:41:03'),(229,1,'制作订单成功：15',1,'order','127.0.0.1',NULL,NULL,'2017-02-22 19:47:48'),(230,1,'制作订单成功：16',1,'order','127.0.0.1',NULL,NULL,'2017-02-22 21:01:49'),(231,1,'制作订单成功：17',1,'order','127.0.0.1',NULL,NULL,'2017-02-23 11:39:47'),(232,1,'制作订单成功：18',1,'order','127.0.0.1',NULL,NULL,'2017-02-23 11:44:23'),(233,1,'制作订单成功：19',1,'order','127.0.0.1',NULL,NULL,'2017-02-23 11:47:05'),(234,1,'制作订单成功：21',1,'order','127.0.0.1',NULL,NULL,'2017-02-23 11:48:16'),(235,1,'制作订单成功：22',1,'order','127.0.0.1',NULL,NULL,'2017-02-23 11:49:58'),(236,1,'制作订单成功：23',1,'order','127.0.0.1',NULL,NULL,'2017-02-23 15:04:46'),(237,1,'制作订单成功：24',1,'order','127.0.0.1',NULL,NULL,'2017-02-23 15:14:26'),(238,1,'制作订单成功：25',1,'order','127.0.0.1',NULL,NULL,'2017-02-23 15:28:00'),(239,1,'制作订单成功：26',1,'order','127.0.0.1',NULL,NULL,'2017-02-23 15:31:28');
  
  /*Table structure for table `area` */
  
  DROP TABLE IF EXISTS `area`;
  
  CREATE TABLE `area` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(100) NOT NULL COMMENT '地区名称',
    `parentId` int(11) NOT NULL COMMENT '父类ID',
    `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态 0 无效 1 有效',
    `sort` int(10) NOT NULL COMMENT '排序',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=5025 DEFAULT CHARSET=utf8;
  
  /*Data for the table `area` */
  
  insert  into `area`(`id`,`name`,`parentId`,`status`,`sort`) values (1,'北京',0,1,0),(2,'天津',0,1,0),(3,'河北省',0,1,0),(4,'山西省',0,1,0),(5,'内蒙古自治区',0,1,0),(6,'辽宁省',0,1,0),(7,'吉林省',0,1,0),(8,'黑龙江省',0,1,0),(9,'上海',0,1,0),(10,'江苏省',0,1,0),(11,'浙江省',0,1,0),(12,'安徽省',0,1,0),(13,'福建省',0,1,0),(14,'江西省',0,1,0),(15,'山东省',0,1,0),(16,'河南省',0,1,0),(17,'湖北省',0,1,0),(18,'湖南省',0,1,0),(19,'广东省',0,1,0),(20,'广西壮族自治区',0,1,0),(21,'海南省',0,1,0),(22,'重庆',0,1,0),(23,'四川省',0,1,0),(24,'贵州省',0,1,0),(25,'云南省',0,1,0),(26,'西藏自治区',0,1,0),(27,'陕西省',0,1,0),(28,'甘肃省',0,1,0),(29,'青海省',0,1,0),(30,'宁夏回族自治区',0,1,0),(31,'新疆维吾尔自治区',0,1,0),(32,'台湾省',0,1,0),(33,'香港特别行政区',0,1,0),(34,'澳门特别行政区',0,1,2),(35,'海外',0,1,1),(36,'北京市',1,1,0),(37,'东城区',36,1,0),(38,'西城区',36,1,0),(39,'上海市',9,1,0),(40,'天津市',2,1,0),(41,'朝阳区',36,1,0),(42,'丰台区',36,1,0),(43,'石景山区',36,1,0),(44,'海淀区',36,1,0),(45,'门头沟区',36,1,0),(46,'房山区',36,1,0),(47,'通州区',36,1,0),(48,'顺义区',36,1,0),(49,'昌平区',36,1,0),(50,'大兴区',36,1,0),(51,'怀柔区',36,1,0),(52,'平谷区',36,1,0),(53,'密云县',36,1,0),(54,'延庆县',36,1,0),(55,'和平区',40,1,0),(56,'河东区',40,1,0),(57,'河西区',40,1,0),(58,'南开区',40,1,0),(59,'河北区',40,1,0),(60,'红桥区',40,1,0),(61,'塘沽区',40,1,0),(62,'重庆市',22,1,0),(64,'东丽区',40,1,0),(65,'西青区',40,1,0),(66,'津南区',40,1,0),(67,'北辰区',40,1,0),(68,'武清区',40,1,0),(69,'宝坻区',40,1,0),(70,'宁河县',40,1,0),(71,'静海县',40,1,0),(72,'蓟县',40,1,0),(73,'石家庄市',3,1,0),(74,'唐山市',3,1,0),(75,'秦皇岛市',3,1,0),(76,'邯郸市',3,1,0),(77,'邢台市',3,1,0),(78,'保定市',3,1,0),(79,'张家口市',3,1,0),(80,'承德市',3,1,0),(81,'衡水市',3,1,0),(82,'廊坊市',3,1,0),(83,'沧州市',3,1,0),(84,'太原市',4,1,0),(85,'大同市',4,1,0),(86,'阳泉市',4,1,0),(87,'长治市',4,1,0),(88,'晋城市',4,1,0),(89,'朔州市',4,1,0),(90,'晋中市',4,1,0),(91,'运城市',4,1,0),(92,'忻州市',4,1,0),(93,'临汾市',4,1,0),(94,'吕梁市',4,1,0),(95,'呼和浩特市',5,1,0),(96,'包头市',5,1,0),(97,'乌海市',5,1,0),(98,'赤峰市',5,1,0),(99,'通辽市',5,1,0),(100,'鄂尔多斯市',5,1,0),(101,'呼伦贝尔市',5,1,0),(102,'巴彦淖尔市',5,1,0),(103,'乌兰察布市',5,1,0),(104,'兴安盟',5,1,0),(105,'锡林郭勒盟',5,1,0),(106,'阿拉善盟',5,1,0),(107,'沈阳市',6,1,0),(108,'大连市',6,1,0),(109,'鞍山市',6,1,0),(110,'抚顺市',6,1,0),(111,'本溪市',6,1,0),(112,'丹东市',6,1,0),(113,'锦州市',6,1,0),(114,'营口市',6,1,0),(115,'阜新市',6,1,0),(116,'辽阳市',6,1,0),(117,'盘锦市',6,1,0),(118,'铁岭市',6,1,0),(119,'朝阳市',6,1,0),(120,'葫芦岛市',6,1,0),(121,'长春市',7,1,0),(122,'吉林市',7,1,0),(123,'四平市',7,1,0),(124,'辽源市',7,1,0),(125,'通化市',7,1,0),(126,'白山市',7,1,0),(127,'松原市',7,1,0),(128,'白城市',7,1,0),(129,'延边朝鲜族自治州',7,1,0),(130,'哈尔滨市',8,1,0),(131,'齐齐哈尔市',8,1,0),(132,'鸡西市',8,1,0),(133,'鹤岗市',8,1,0),(134,'双鸭山市',8,1,0),(135,'大庆市',8,1,0),(136,'伊春市',8,1,0),(137,'佳木斯市',8,1,0),(138,'七台河市',8,1,0),(139,'牡丹江市',8,1,0),(140,'黑河市',8,1,0),(141,'绥化市',8,1,0),(142,'大兴安岭地区',8,1,0),(143,'黄浦区',39,1,0),(144,'卢湾区',39,1,0),(145,'徐汇区',39,1,0),(146,'长宁区',39,1,0),(147,'静安区',39,1,0),(148,'普陀区',39,1,0),(149,'闸北区',39,1,0),(150,'虹口区',39,1,0),(151,'杨浦区',39,1,0),(152,'闵行区',39,1,0),(153,'宝山区',39,1,0),(154,'嘉定区',39,1,0),(155,'浦东新区',39,1,0),(156,'金山区',39,1,0),(157,'松江区',39,1,0),(158,'青浦区',39,1,0),(159,'南汇区',39,1,0),(160,'奉贤区',39,1,0),(161,'崇明县',39,1,0),(162,'南京市',10,1,0),(163,'无锡市',10,1,0),(164,'徐州市',10,1,0),(165,'常州市',10,1,0),(166,'苏州市',10,1,0),(167,'南通市',10,1,0),(168,'连云港市',10,1,0),(169,'淮安市',10,1,0),(170,'盐城市',10,1,0),(171,'扬州市',10,1,0),(172,'镇江市',10,1,0),(173,'泰州市',10,1,0),(174,'宿迁市',10,1,0),(175,'杭州市',11,1,0),(176,'宁波市',11,1,0),(177,'温州市',11,1,0),(178,'嘉兴市',11,1,0),(179,'湖州市',11,1,0),(180,'绍兴市',11,1,0),(181,'舟山市',11,1,0),(182,'衢州市',11,1,0),(183,'金华市',11,1,0),(184,'台州市',11,1,0),(185,'丽水市',11,1,0),(186,'合肥市',12,1,0),(187,'芜湖市',12,1,0),(188,'蚌埠市',12,1,0),(189,'淮南市',12,1,0),(190,'马鞍山市',12,1,0),(191,'淮北市',12,1,0),(192,'铜陵市',12,1,0),(193,'安庆市',12,1,0),(194,'黄山市',12,1,0),(195,'滁州市',12,1,0),(196,'阜阳市',12,1,0),(197,'宿州市',12,1,0),(198,'巢湖市',12,1,0),(199,'六安市',12,1,0),(200,'亳州市',12,1,0),(201,'池州市',12,1,0),(202,'宣城市',12,1,0),(203,'福州市',13,1,0),(204,'厦门市',13,1,0),(205,'莆田市',13,1,0),(206,'三明市',13,1,0),(207,'泉州市',13,1,0),(208,'漳州市',13,1,0),(209,'南平市',13,1,0),(210,'龙岩市',13,1,0),(211,'宁德市',13,1,0),(212,'南昌市',14,1,0),(213,'景德镇市',14,1,0),(214,'萍乡市',14,1,0),(215,'九江市',14,1,0),(216,'新余市',14,1,0),(217,'鹰潭市',14,1,0),(218,'赣州市',14,1,0),(219,'吉安市',14,1,0),(220,'宜春市',14,1,0),(221,'抚州市',14,1,0),(222,'上饶市',14,1,0),(223,'济南市',15,1,0),(224,'青岛市',15,1,0),(225,'淄博市',15,1,0),(226,'枣庄市',15,1,0),(227,'东营市',15,1,0),(228,'烟台市',15,1,0),(229,'潍坊市',15,1,0),(230,'济宁市',15,1,0),(231,'泰安市',15,1,0),(232,'威海市',15,1,0),(233,'日照市',15,1,0),(234,'莱芜市',15,1,0),(235,'临沂市',15,1,0),(236,'德州市',15,1,0),(237,'聊城市',15,1,0),(238,'滨州市',15,1,0),(239,'菏泽市',15,1,0),(240,'郑州市',16,1,0),(241,'开封市',16,1,0),(242,'洛阳市',16,1,0),(243,'平顶山市',16,1,0),(244,'安阳市',16,1,0),(245,'鹤壁市',16,1,0),(246,'新乡市',16,1,0),(247,'焦作市',16,1,0),(248,'濮阳市',16,1,0),(249,'许昌市',16,1,0),(250,'漯河市',16,1,0),(251,'三门峡市',16,1,0),(252,'南阳市',16,1,0),(253,'商丘市',16,1,0),(254,'信阳市',16,1,0),(255,'周口市',16,1,0),(256,'驻马店市',16,1,0),(257,'济源市',16,1,0),(258,'武汉市',17,1,0),(259,'黄石市',17,1,0),(260,'十堰市',17,1,0),(261,'宜昌市',17,1,0),(262,'襄樊市',17,1,0),(263,'鄂州市',17,1,0),(264,'荆门市',17,1,0),(265,'孝感市',17,1,0),(266,'荆州市',17,1,0),(267,'黄冈市',17,1,0),(268,'咸宁市',17,1,0),(269,'随州市',17,1,0),(270,'恩施土家族苗族自治州',17,1,0),(271,'仙桃市',17,1,0),(272,'潜江市',17,1,0),(273,'天门市',17,1,0),(274,'神农架林区',17,1,0),(275,'长沙市',18,1,0),(276,'株洲市',18,1,0),(277,'湘潭市',18,1,0),(278,'衡阳市',18,1,0),(279,'邵阳市',18,1,0),(280,'岳阳市',18,1,0),(281,'常德市',18,1,0),(282,'张家界市',18,1,0),(283,'益阳市',18,1,0),(284,'郴州市',18,1,0),(285,'永州市',18,1,0),(286,'怀化市',18,1,0),(287,'娄底市',18,1,0),(288,'湘西土家族苗族自治州',18,1,0),(289,'广州市',19,1,0),(290,'韶关市',19,1,0),(291,'深圳市',19,1,0),(292,'珠海市',19,1,0),(293,'汕头市',19,1,0),(294,'佛山市',19,1,0),(295,'江门市',19,1,0),(296,'湛江市',19,1,0),(297,'茂名市',19,1,0),(298,'肇庆市',19,1,0),(299,'惠州市',19,1,0),(300,'梅州市',19,1,0),(301,'汕尾市',19,1,0),(302,'河源市',19,1,0),(303,'阳江市',19,1,0),(304,'清远市',19,1,0),(305,'东莞市',19,1,0),(306,'中山市',19,1,0),(307,'潮州市',19,1,0),(308,'揭阳市',19,1,0),(309,'云浮市',19,1,0),(310,'南宁市',20,1,0),(311,'柳州市',20,1,0),(312,'桂林市',20,1,0),(313,'梧州市',20,1,0),(314,'北海市',20,1,0),(315,'防城港市',20,1,0),(316,'钦州市',20,1,0),(317,'贵港市',20,1,0),(318,'玉林市',20,1,0),(319,'百色市',20,1,0),(320,'贺州市',20,1,0),(321,'河池市',20,1,0),(322,'来宾市',20,1,0),(323,'崇左市',20,1,0),(324,'海口市',21,1,0),(325,'三亚市',21,1,0),(326,'五指山市',21,1,0),(327,'琼海市',21,1,0),(328,'儋州市',21,1,0),(329,'文昌市',21,1,0),(330,'万宁市',21,1,0),(331,'东方市',21,1,0),(332,'定安县',21,1,0),(333,'屯昌县',21,1,0),(334,'澄迈县',21,1,0),(335,'临高县',21,1,0),(336,'白沙黎族自治县',21,1,0),(337,'昌江黎族自治县',21,1,0),(338,'乐东黎族自治县',21,1,0),(339,'陵水黎族自治县',21,1,0),(340,'保亭黎族苗族自治县',21,1,0),(341,'琼中黎族苗族自治县',21,1,0),(342,'西沙群岛',21,1,0),(343,'南沙群岛',21,1,0),(344,'中沙群岛的岛礁及其海域',21,1,0),(345,'万州区',62,1,0),(346,'涪陵区',62,1,0),(347,'渝中区',62,1,0),(348,'大渡口区',62,1,0),(349,'江北区',62,1,0),(350,'沙坪坝区',62,1,0),(351,'九龙坡区',62,1,0),(352,'南岸区',62,1,0),(353,'北碚区',62,1,0),(354,'双桥区',62,1,0),(355,'万盛区',62,1,0),(356,'渝北区',62,1,0),(357,'巴南区',62,1,0),(358,'黔江区',62,1,0),(359,'长寿区',62,1,0),(360,'綦江县',62,1,0),(361,'潼南县',62,1,0),(362,'铜梁县',62,1,0),(363,'大足县',62,1,0),(364,'荣昌县',62,1,0),(365,'璧山县',62,1,0),(366,'梁平县',62,1,0),(367,'城口县',62,1,0),(368,'丰都县',62,1,0),(369,'垫江县',62,1,0),(370,'武隆县',62,1,0),(371,'忠县',62,1,0),(372,'开县',62,1,0),(373,'云阳县',62,1,0),(374,'奉节县',62,1,0),(375,'巫山县',62,1,0),(376,'巫溪县',62,1,0),(377,'石柱土家族自治县',62,1,0),(378,'秀山土家族苗族自治县',62,1,0),(379,'酉阳土家族苗族自治县',62,1,0),(380,'彭水苗族土家族自治县',62,1,0),(381,'江津市',62,1,0),(382,'合川市',62,1,0),(383,'永川市',62,1,0),(384,'南川市',62,1,0),(385,'成都市',23,1,0),(386,'自贡市',23,1,0),(387,'攀枝花市',23,1,0),(388,'泸州市',23,1,0),(389,'德阳市',23,1,0),(390,'绵阳市',23,1,0),(391,'广元市',23,1,0),(392,'遂宁市',23,1,0),(393,'内江市',23,1,0),(394,'乐山市',23,1,0),(395,'南充市',23,1,0),(396,'眉山市',23,1,0),(397,'宜宾市',23,1,0),(398,'广安市',23,1,0),(399,'达州市',23,1,0),(400,'雅安市',23,1,0),(401,'巴中市',23,1,0),(402,'资阳市',23,1,0),(403,'阿坝藏族羌族自治州',23,1,0),(404,'甘孜藏族自治州',23,1,0),(405,'凉山彝族自治州',23,1,0),(406,'贵阳市',24,1,0),(407,'六盘水市',24,1,0),(408,'遵义市',24,1,0),(409,'安顺市',24,1,0),(410,'铜仁地区',24,1,0),(411,'黔西南布依族苗族自治州',24,1,0),(412,'毕节地区',24,1,0),(413,'黔东南苗族侗族自治州',24,1,0),(414,'黔南布依族苗族自治州',24,1,0),(415,'昆明市',25,1,0),(416,'曲靖市',25,1,0),(417,'玉溪市',25,1,0),(418,'保山市',25,1,0),(419,'昭通市',25,1,0),(420,'丽江市',25,1,0),(421,'思茅市',25,1,0),(422,'临沧市',25,1,0),(423,'楚雄彝族自治州',25,1,0),(424,'红河哈尼族彝族自治州',25,1,0),(425,'文山壮族苗族自治州',25,1,0),(426,'西双版纳傣族自治州',25,1,0),(427,'大理白族自治州',25,1,0),(428,'德宏傣族景颇族自治州',25,1,0),(429,'怒江傈僳族自治州',25,1,0),(430,'迪庆藏族自治州',25,1,0),(431,'拉萨市',26,1,0),(432,'昌都地区',26,1,0),(433,'山南地区',26,1,0),(434,'日喀则地区',26,1,0),(435,'那曲地区',26,1,0),(436,'阿里地区',26,1,0),(437,'林芝地区',26,1,0),(438,'西安市',27,1,0),(439,'铜川市',27,1,0),(440,'宝鸡市',27,1,0),(441,'咸阳市',27,1,0),(442,'渭南市',27,1,0),(443,'延安市',27,1,0),(444,'汉中市',27,1,0),(445,'榆林市',27,1,0),(446,'安康市',27,1,0),(447,'商洛市',27,1,0),(448,'兰州市',28,1,0),(449,'嘉峪关市',28,1,0),(450,'金昌市',28,1,0),(451,'白银市',28,1,0),(452,'天水市',28,1,0),(453,'武威市',28,1,0),(454,'张掖市',28,1,0),(455,'平凉市',28,1,0),(456,'酒泉市',28,1,0),(457,'庆阳市',28,1,0),(458,'定西市',28,1,0),(459,'陇南市',28,1,0),(460,'临夏回族自治州',28,1,0),(461,'甘南藏族自治州',28,1,0),(462,'西宁市',29,1,0),(463,'海东地区',29,1,0),(464,'海北藏族自治州',29,1,0),(465,'黄南藏族自治州',29,1,0),(466,'海南藏族自治州',29,1,0),(467,'果洛藏族自治州',29,1,0),(468,'玉树藏族自治州',29,1,0),(469,'海西蒙古族藏族自治州',29,1,0),(470,'银川市',30,1,0),(471,'石嘴山市',30,1,0),(472,'吴忠市',30,1,0),(473,'固原市',30,1,0),(474,'中卫市',30,1,0),(475,'乌鲁木齐市',31,1,0),(476,'克拉玛依市',31,1,0),(477,'吐鲁番地区',31,1,0),(478,'哈密地区',31,1,0),(479,'昌吉回族自治州',31,1,0),(480,'博尔塔拉蒙古自治州',31,1,0),(481,'巴音郭楞蒙古自治州',31,1,0),(482,'阿克苏地区',31,1,0),(483,'克孜勒苏柯尔克孜自治州',31,1,0),(484,'喀什地区',31,1,0),(485,'和田地区',31,1,0),(486,'伊犁哈萨克自治州',31,1,0),(487,'塔城地区',31,1,0),(488,'阿勒泰地区',31,1,0),(489,'石河子市',31,1,0),(490,'阿拉尔市',31,1,0),(491,'图木舒克市',31,1,0),(492,'五家渠市',31,1,0),(493,'台北市',32,1,0),(494,'高雄市',32,1,0),(495,'基隆市',32,1,0),(496,'台中市',32,1,0),(497,'台南市',32,1,0),(498,'新竹市',32,1,0),(499,'嘉义市',32,1,0),(500,'台北县',32,1,0),(501,'宜兰县',32,1,0),(502,'桃园县',32,1,0),(503,'新竹县',32,1,0),(504,'苗栗县',32,1,0),(505,'台中县',32,1,0),(506,'彰化县',32,1,0),(507,'南投县',32,1,0),(508,'云林县',32,1,0),(509,'嘉义县',32,1,0),(510,'台南县',32,1,0),(511,'高雄县',32,1,0),(512,'屏东县',32,1,0),(513,'澎湖县',32,1,0),(514,'台东县',32,1,0),(515,'花莲县',32,1,0),(516,'中西区',33,1,0),(517,'东区',33,1,0),(518,'九龙城区',33,1,0),(519,'观塘区',33,1,0),(520,'南区',33,1,0),(521,'深水埗区',33,1,0),(522,'黄大仙区',33,1,0),(523,'湾仔区',33,1,0),(524,'油尖旺区',33,1,0),(525,'离岛区',33,1,0),(526,'葵青区',33,1,0),(527,'北区',33,1,0),(528,'西贡区',33,1,0),(529,'沙田区',33,1,0),(530,'屯门区',33,1,0),(531,'大埔区',33,1,0),(532,'荃湾区',33,1,0),(533,'元朗区',33,1,0),(534,'澳门特别行政区',34,1,0),(535,'美国',45055,1,0),(536,'加拿大',45055,1,0),(537,'澳大利亚',45055,1,0),(538,'新西兰',45055,1,0),(539,'英国',45055,1,0),(540,'法国',45055,1,0),(541,'德国',45055,1,0),(542,'捷克',45055,1,0),(543,'荷兰',45055,1,0),(544,'瑞士',45055,1,0),(545,'希腊',45055,1,0),(546,'挪威',45055,1,0),(547,'瑞典',45055,1,0),(548,'丹麦',45055,1,0),(549,'芬兰',45055,1,0),(550,'爱尔兰',45055,1,0),(551,'奥地利',45055,1,0),(552,'意大利',45055,1,0),(553,'乌克兰',45055,1,0),(554,'俄罗斯',45055,1,0),(555,'西班牙',45055,1,0),(556,'韩国',45055,1,0),(557,'新加坡',45055,1,0),(558,'马来西亚',45055,1,0),(559,'印度',45055,1,0),(560,'泰国',45055,1,0),(561,'日本',45055,1,0),(562,'巴西',45055,1,0),(563,'阿根廷',45055,1,0),(564,'南非',45055,1,0),(565,'埃及',45055,1,0),(566,'其他',36,1,0),(1126,'井陉县',73,1,0),(1127,'井陉矿区',73,1,0),(1128,'元氏县',73,1,0),(1129,'平山县',73,1,0),(1130,'新乐市',73,1,0),(1131,'新华区',73,1,0),(1132,'无极县',73,1,0),(1133,'晋州市',73,1,0),(1134,'栾城县',73,1,0),(1135,'桥东区',73,1,0),(1136,'桥西区',73,1,0),(1137,'正定县',73,1,0),(1138,'深泽县',73,1,0),(1139,'灵寿县',73,1,0),(1140,'藁城市',73,1,0),(1141,'行唐县',73,1,0),(1142,'裕华区',73,1,0),(1143,'赞皇县',73,1,0),(1144,'赵县',73,1,0),(1145,'辛集市',73,1,0),(1146,'长安区',73,1,0),(1147,'高邑县',73,1,0),(1148,'鹿泉市',73,1,0),(1149,'丰南区',74,1,0),(1150,'丰润区',74,1,0),(1151,'乐亭县',74,1,0),(1152,'古冶区',74,1,0),(1153,'唐海县',74,1,0),(1154,'开平区',74,1,0),(1155,'滦南县',74,1,0),(1156,'滦县',74,1,0),(1157,'玉田县',74,1,0),(1158,'路北区',74,1,0),(1159,'路南区',74,1,0),(1160,'迁安市',74,1,0),(1161,'迁西县',74,1,0),(1162,'遵化市',74,1,0),(1163,'北戴河区',75,1,0),(1164,'卢龙县',75,1,0),(1165,'山海关区',75,1,0),(1166,'抚宁县',75,1,0),(1167,'昌黎县',75,1,0),(1168,'海港区',75,1,0),(1169,'青龙满族自治县',75,1,0),(1170,'丛台区',76,1,0),(1171,'临漳县',76,1,0),(1172,'复兴区',76,1,0),(1173,'大名县',76,1,0),(1174,'峰峰矿区',76,1,0),(1175,'广平县',76,1,0),(1176,'成安县',76,1,0),(1177,'曲周县',76,1,0),(1178,'武安市',76,1,0),(1179,'永年县',76,1,0),(1180,'涉县',76,1,0),(1181,'磁县',76,1,0),(1182,'肥乡县',76,1,0),(1183,'邯山区',76,1,0),(1184,'邯郸县',76,1,0),(1185,'邱县',76,1,0),(1186,'馆陶县',76,1,0),(1187,'魏县',76,1,0),(1188,'鸡泽县',76,1,0),(1189,'临城县',77,1,0),(1190,'临西县',77,1,0),(1191,'任县',77,1,0),(1192,'内丘县',77,1,0),(1193,'南和县',77,1,0),(1194,'南宫市',77,1,0),(1195,'威县',77,1,0),(1196,'宁晋县',77,1,0),(1197,'巨鹿县',77,1,0),(1198,'平乡县',77,1,0),(1199,'广宗县',77,1,0),(1200,'新河县',77,1,0),(1201,'柏乡县',77,1,0),(1202,'桥东区',77,1,0),(1203,'桥西区',77,1,0),(1204,'沙河市',77,1,0),(1205,'清河县',77,1,0),(1206,'邢台县',77,1,0),(1207,'隆尧县',77,1,0),(1208,'北市区',78,1,0),(1209,'南市区',78,1,0),(1210,'博野县',78,1,0),(1211,'唐县',78,1,0),(1212,'安国市',78,1,0),(1213,'安新县',78,1,0),(1214,'定兴县',78,1,0),(1215,'定州市',78,1,0),(1216,'容城县',78,1,0),(1217,'徐水县',78,1,0),(1218,'新市区',78,1,0),(1219,'易县',78,1,0),(1220,'曲阳县',78,1,0),(1221,'望都县',78,1,0),(1222,'涞水县',78,1,0),(1223,'涞源县',78,1,0),(1224,'涿州市',78,1,0),(1225,'清苑县',78,1,0),(1226,'满城县',78,1,0),(1227,'蠡县',78,1,0),(1228,'阜平县',78,1,0),(1229,'雄县',78,1,0),(1230,'顺平县',78,1,0),(1231,'高碑店市',78,1,0),(1232,'高阳县',78,1,0),(1233,'万全县',79,1,0),(1234,'下花园区',79,1,0),(1235,'宣化区',79,1,0),(1236,'宣化县',79,1,0),(1237,'尚义县',79,1,0),(1238,'崇礼县',79,1,0),(1239,'康保县',79,1,0),(1240,'张北县',79,1,0),(1241,'怀安县',79,1,0),(1242,'怀来县',79,1,0),(1243,'桥东区',79,1,0),(1244,'桥西区',79,1,0),(1245,'沽源县',79,1,0),(1246,'涿鹿县',79,1,0),(1247,'蔚县',79,1,0),(1248,'赤城县',79,1,0),(1249,'阳原县',79,1,0),(1250,'丰宁满族自治县',80,1,0),(1251,'兴隆县',80,1,0),(1252,'双桥区',80,1,0),(1253,'双滦区',80,1,0),(1254,'围场满族蒙古族自治县',80,1,0),(1255,'宽城满族自治县',80,1,0),(1256,'平泉县',80,1,0),(1257,'承德县',80,1,0),(1258,'滦平县',80,1,0),(1259,'隆化县',80,1,0),(1260,'鹰手营子矿区',80,1,0),(1261,'冀州市',81,1,0),(1262,'安平县',81,1,0),(1263,'故城县',81,1,0),(1264,'景县',81,1,0),(1265,'枣强县',81,1,0),(1266,'桃城区',81,1,0),(1267,'武强县',81,1,0),(1268,'武邑县',81,1,0),(1269,'深州市',81,1,0),(1270,'阜城县',81,1,0),(1271,'饶阳县',81,1,0),(1272,'三河市',82,1,0),(1273,'固安县',82,1,0),(1274,'大厂回族自治县',82,1,0),(1275,'大城县',82,1,0),(1276,'安次区',82,1,0),(1277,'广阳区',82,1,0),(1278,'文安县',82,1,0),(1279,'永清县',82,1,0),(1280,'霸州市',82,1,0),(1281,'香河县',82,1,0),(1282,'东光县',83,1,0),(1283,'任丘市',83,1,0),(1284,'南皮县',83,1,0),(1285,'吴桥县',83,1,0),(1286,'孟村回族自治县',83,1,0),(1287,'新华区',83,1,0),(1288,'沧县',83,1,0),(1289,'河间市',83,1,0),(1290,'泊头市',83,1,0),(1291,'海兴县',83,1,0),(1292,'献县',83,1,0),(1293,'盐山县',83,1,0),(1294,'肃宁县',83,1,0),(1295,'运河区',83,1,0),(1296,'青县',83,1,0),(1297,'黄骅市',83,1,0),(1298,'万柏林区',84,1,0),(1299,'古交市',84,1,0),(1300,'娄烦县',84,1,0),(1301,'小店区',84,1,0),(1302,'尖草坪区',84,1,0),(1303,'晋源区',84,1,0),(1304,'杏花岭区',84,1,0),(1305,'清徐县',84,1,0),(1306,'迎泽区',84,1,0),(1307,'阳曲县',84,1,0),(1308,'南郊区',85,1,0),(1309,'城区',85,1,0),(1310,'大同县',85,1,0),(1311,'天镇县',85,1,0),(1312,'左云县',85,1,0),(1313,'广灵县',85,1,0),(1314,'新荣区',85,1,0),(1315,'浑源县',85,1,0),(1316,'灵丘县',85,1,0),(1317,'矿区',85,1,0),(1318,'阳高县',85,1,0),(1319,'城区',86,1,0),(1320,'平定县',86,1,0),(1321,'盂县',86,1,0),(1322,'矿区',86,1,0),(1323,'郊区',86,1,0),(1324,'城区',87,1,0),(1325,'壶关县',87,1,0),(1326,'屯留县',87,1,0),(1327,'平顺县',87,1,0),(1328,'武乡县',87,1,0),(1329,'沁县',87,1,0),(1330,'沁源县',87,1,0),(1331,'潞城市',87,1,0),(1332,'襄垣县',87,1,0),(1333,'郊区',87,1,0),(1334,'长子县',87,1,0),(1335,'长治县',87,1,0),(1336,'黎城县',87,1,0),(1337,'城区',88,1,0),(1338,'沁水县',88,1,0),(1339,'泽州县',88,1,0),(1340,'阳城县',88,1,0),(1341,'陵川县',88,1,0),(1342,'高平市',88,1,0),(1343,'右玉县',89,1,0),(1344,'山阴县',89,1,0),(1345,'平鲁区',89,1,0),(1346,'应县',89,1,0),(1347,'怀仁县',89,1,0),(1348,'朔城区',89,1,0),(1349,'介休市',90,1,0),(1350,'和顺县',90,1,0),(1351,'太谷县',90,1,0),(1352,'寿阳县',90,1,0),(1353,'左权县',90,1,0),(1354,'平遥县',90,1,0),(1355,'昔阳县',90,1,0),(1356,'榆次区',90,1,0),(1357,'榆社县',90,1,0),(1358,'灵石县',90,1,0),(1359,'祁县',90,1,0),(1360,'万荣县',91,1,0),(1361,'临猗县',91,1,0),(1362,'垣曲县',91,1,0),(1363,'夏县',91,1,0),(1364,'平陆县',91,1,0),(1365,'新绛县',91,1,0),(1366,'永济市',91,1,0),(1367,'河津市',91,1,0),(1368,'盐湖区',91,1,0),(1369,'稷山县',91,1,0),(1370,'绛县',91,1,0),(1371,'芮城县',91,1,0),(1372,'闻喜县',91,1,0),(1373,'五台县',92,1,0),(1374,'五寨县',92,1,0),(1375,'代县',92,1,0),(1376,'保德县',92,1,0),(1377,'偏关县',92,1,0),(1378,'原平市',92,1,0),(1379,'宁武县',92,1,0),(1380,'定襄县',92,1,0),(1381,'岢岚县',92,1,0),(1382,'忻府区',92,1,0),(1383,'河曲县',92,1,0),(1384,'神池县',92,1,0),(1385,'繁峙县',92,1,0),(1386,'静乐县',92,1,0),(1387,'乡宁县',93,1,0),(1388,'侯马市',93,1,0),(1389,'古县',93,1,0),(1390,'吉县',93,1,0),(1391,'大宁县',93,1,0),(1392,'安泽县',93,1,0),(1393,'尧都区',93,1,0),(1394,'曲沃县',93,1,0),(1395,'永和县',93,1,0),(1396,'汾西县',93,1,0),(1397,'洪洞县',93,1,0),(1398,'浮山县',93,1,0),(1399,'翼城县',93,1,0),(1400,'蒲县',93,1,0),(1401,'襄汾县',93,1,0),(1402,'隰县',93,1,0),(1403,'霍州市',93,1,0),(1404,'中阳县',94,1,0),(1405,'临县',94,1,0),(1406,'交口县',94,1,0),(1407,'交城县',94,1,0),(1408,'兴县',94,1,0),(1409,'孝义市',94,1,0),(1410,'岚县',94,1,0),(1411,'文水县',94,1,0),(1412,'方山县',94,1,0),(1413,'柳林县',94,1,0),(1414,'汾阳市',94,1,0),(1415,'石楼县',94,1,0),(1416,'离石区',94,1,0),(1417,'和林格尔县',95,1,0),(1418,'回民区',95,1,0),(1419,'土默特左旗',95,1,0),(1420,'托克托县',95,1,0),(1421,'新城区',95,1,0),(1422,'武川县',95,1,0),(1423,'清水河县',95,1,0),(1424,'玉泉区',95,1,0),(1425,'赛罕区',95,1,0),(1426,'东河区',96,1,0),(1427,'九原区',96,1,0),(1428,'固阳县',96,1,0),(1429,'土默特右旗',96,1,0),(1430,'昆都仑区',96,1,0),(1431,'白云矿区',96,1,0),(1432,'石拐区',96,1,0),(1433,'达尔罕茂明安联合旗',96,1,0),(1434,'青山区',96,1,0),(1435,'乌达区',97,1,0),(1436,'海勃湾区',97,1,0),(1437,'海南区',97,1,0),(1438,'元宝山区',98,1,0),(1439,'克什克腾旗',98,1,0),(1440,'喀喇沁旗',98,1,0),(1441,'宁城县',98,1,0),(1442,'巴林右旗',98,1,0),(1443,'巴林左旗',98,1,0),(1444,'敖汉旗',98,1,0),(1445,'松山区',98,1,0),(1446,'林西县',98,1,0),(1447,'红山区',98,1,0),(1448,'翁牛特旗',98,1,0),(1449,'阿鲁科尔沁旗',98,1,0),(1450,'奈曼旗',99,1,0),(1451,'库伦旗',99,1,0),(1452,'开鲁县',99,1,0),(1453,'扎鲁特旗',99,1,0),(1454,'科尔沁区',99,1,0),(1455,'科尔沁左翼中旗',99,1,0),(1456,'科尔沁左翼后旗',99,1,0),(1457,'霍林郭勒市',99,1,0),(1458,'东胜区',100,1,0),(1459,'乌审旗',100,1,0),(1460,'伊金霍洛旗',100,1,0),(1461,'准格尔旗',100,1,0),(1462,'杭锦旗',100,1,0),(1463,'达拉特旗',100,1,0),(1464,'鄂东胜区',100,1,0),(1465,'鄂托克前旗',100,1,0),(1466,'鄂托克旗',100,1,0),(1467,'扎兰屯市',101,1,0),(1468,'新巴尔虎右旗',101,1,0),(1469,'新巴尔虎左旗',101,1,0),(1470,'根河市',101,1,0),(1471,'海拉尔区',101,1,0),(1472,'满洲里市',101,1,0),(1473,'牙克石市',101,1,0),(1474,'莫力达瓦达斡尔族自治旗',101,1,0),(1475,'鄂伦春自治旗',101,1,0),(1476,'鄂温克族自治旗',101,1,0),(1477,'阿荣旗',101,1,0),(1478,'陈巴尔虎旗',101,1,0),(1479,'额尔古纳市',101,1,0),(1480,'临河区',102,1,0),(1481,'乌拉特中旗',102,1,0),(1482,'乌拉特前旗',102,1,0),(1483,'乌拉特后旗',102,1,0),(1484,'五原县',102,1,0),(1485,'杭锦后旗',102,1,0),(1486,'磴口县',102,1,0),(1487,'丰镇市',103,1,0),(1488,'兴和县',103,1,0),(1489,'凉城县',103,1,0),(1490,'化德县',103,1,0),(1491,'卓资县',103,1,0),(1492,'商都县',103,1,0),(1493,'四子王旗',103,1,0),(1494,'察哈尔右翼中旗',103,1,0),(1495,'察哈尔右翼前旗',103,1,0),(1496,'察哈尔右翼后旗',103,1,0),(1497,'集宁区',103,1,0),(1498,'乌兰浩特市',104,1,0),(1499,'扎赉特旗',104,1,0),(1500,'科尔沁右翼中旗',104,1,0),(1501,'科尔沁右翼前旗',104,1,0),(1502,'突泉县',104,1,0),(1503,'阿尔山市',104,1,0),(1504,'东乌珠穆沁旗',105,1,0),(1505,'二连浩特市',105,1,0),(1506,'多伦县',105,1,0),(1507,'太仆寺旗',105,1,0),(1508,'正蓝旗',105,1,0),(1509,'正镶白旗',105,1,0),(1510,'苏尼特右旗',105,1,0),(1511,'苏尼特左旗',105,1,0),(1512,'西乌珠穆沁旗',105,1,0),(1513,'锡林浩特市',105,1,0),(1514,'镶黄旗',105,1,0),(1515,'阿巴嘎旗',105,1,0),(1516,'阿拉善右旗',106,1,0),(1517,'阿拉善左旗',106,1,0),(1518,'额济纳旗',106,1,0),(1519,'东陵区',107,1,0),(1520,'于洪区',107,1,0),(1521,'和平区',107,1,0),(1522,'大东区',107,1,0),(1523,'康平县',107,1,0),(1524,'新民市',107,1,0),(1525,'沈北新区',107,1,0),(1526,'沈河区',107,1,0),(1527,'法库县',107,1,0),(1528,'皇姑区',107,1,0),(1529,'苏家屯区',107,1,0),(1530,'辽中县',107,1,0),(1531,'铁西区',107,1,0),(1532,'中山区',108,1,0),(1533,'庄河市',108,1,0),(1534,'旅顺口区',108,1,0),(1535,'普兰店市',108,1,0),(1536,'沙河口区',108,1,0),(1537,'瓦房店市',108,1,0),(1538,'甘井子区',108,1,0),(1539,'西岗区',108,1,0),(1540,'金州区',108,1,0),(1541,'长海县',108,1,0),(1542,'千山区',109,1,0),(1543,'台安县',109,1,0),(1544,'岫岩满族自治县',109,1,0),(1545,'海城市',109,1,0),(1546,'立山区',109,1,0),(1547,'铁东区',109,1,0),(1548,'铁西区',109,1,0),(1549,'东洲区',110,1,0),(1550,'抚顺县',110,1,0),(1551,'新宾满族自治县',110,1,0),(1552,'新抚区',110,1,0),(1553,'望花区',110,1,0),(1554,'清原满族自治县',110,1,0),(1555,'顺城区',110,1,0),(1556,'南芬区',111,1,0),(1557,'平山区',111,1,0),(1558,'明山区',111,1,0),(1559,'本溪满族自治县',111,1,0),(1560,'桓仁满族自治县',111,1,0),(1561,'溪湖区',111,1,0),(1562,'东港市',112,1,0),(1563,'元宝区',112,1,0),(1564,'凤城市',112,1,0),(1565,'宽甸满族自治县',112,1,0),(1566,'振兴区',112,1,0),(1567,'振安区',112,1,0),(1568,'义县',113,1,0),(1569,'凌河区',113,1,0),(1570,'凌海市',113,1,0),(1571,'北镇市',113,1,0),(1572,'古塔区',113,1,0),(1573,'太和区',113,1,0),(1574,'黑山县',113,1,0),(1575,'大石桥市',114,1,0),(1576,'盖州市',114,1,0),(1577,'站前区',114,1,0),(1578,'老边区',114,1,0),(1579,'西市区',114,1,0),(1580,'鲅鱼圈区',114,1,0),(1581,'太平区',115,1,0),(1582,'彰武县',115,1,0),(1583,'新邱区',115,1,0),(1584,'海州区',115,1,0),(1585,'清河门区',115,1,0),(1586,'细河区',115,1,0),(1587,'蒙古族自治县',115,1,0),(1588,'太子河区',116,1,0),(1589,'宏伟区',116,1,0),(1590,'弓长岭区',116,1,0),(1591,'文圣区',116,1,0),(1592,'灯塔市',116,1,0),(1593,'白塔区',116,1,0),(1594,'辽阳县',116,1,0),(1595,'兴隆台区',117,1,0),(1596,'双台子区',117,1,0),(1597,'大洼县',117,1,0),(1598,'盘山县',117,1,0),(1599,'开原市',118,1,0),(1600,'昌图县',118,1,0),(1601,'清河区',118,1,0),(1602,'西丰县',118,1,0),(1603,'调兵山市',118,1,0),(1604,'铁岭县',118,1,0),(1605,'银州区',118,1,0),(1606,'凌源市',119,1,0),(1607,'北票市',119,1,0),(1608,'双塔区',119,1,0),(1609,'喀喇沁左翼蒙古族自治县',119,1,0),(1610,'建平县',119,1,0),(1611,'朝阳县',119,1,0),(1612,'龙城区',119,1,0),(1613,'兴城市',120,1,0),(1614,'南票区',120,1,0),(1615,'建昌县',120,1,0),(1616,'绥中县',120,1,0),(1617,'连山区',120,1,0),(1618,'龙港区',120,1,0),(1619,'九台市',121,1,0),(1620,'二道区',121,1,0),(1621,'农安县',121,1,0),(1622,'南关区',121,1,0),(1623,'双阳区',121,1,0),(1624,'宽城区',121,1,0),(1625,'德惠市',121,1,0),(1626,'朝阳区',121,1,0),(1627,'榆树市',121,1,0),(1628,'绿园区',121,1,0),(1629,'丰满区',122,1,0),(1630,'昌邑区',122,1,0),(1631,'桦甸市',122,1,0),(1632,'永吉县',122,1,0),(1633,'磐石市',122,1,0),(1634,'舒兰市',122,1,0),(1635,'船营区',122,1,0),(1636,'蛟河市',122,1,0),(1637,'龙潭区',122,1,0),(1638,'伊通满族自治县',123,1,0),(1639,'公主岭市',123,1,0),(1640,'双辽市',123,1,0),(1641,'梨树县',123,1,0),(1642,'铁东区',123,1,0),(1643,'铁西区',123,1,0),(1644,'东丰县',124,1,0),(1645,'东辽县',124,1,0),(1646,'西安区',124,1,0),(1647,'龙山区',124,1,0),(1648,'东昌区',125,1,0),(1649,'二道江区',125,1,0),(1650,'柳河县',125,1,0),(1651,'梅河口市',125,1,0),(1652,'辉南县',125,1,0),(1653,'通化县',125,1,0),(1654,'集安市',125,1,0),(1655,'临江市',126,1,0),(1656,'八道江区',126,1,0),(1657,'抚松县',126,1,0),(1658,'江源区',126,1,0),(1659,'长白朝鲜族自治县',126,1,0),(1660,'靖宇县',126,1,0),(1661,'干安县',127,1,0),(1662,'前郭尔罗斯蒙古族自治县',127,1,0),(1663,'宁江区',127,1,0),(1664,'扶余县',127,1,0),(1665,'长岭县',127,1,0),(1666,'大安市',128,1,0),(1667,'洮北区',128,1,0),(1668,'洮南市',128,1,0),(1669,'通榆县',128,1,0),(1670,'镇赉县',128,1,0),(1671,'和龙市',129,1,0),(1672,'图们市',129,1,0),(1673,'安图县',129,1,0),(1674,'延吉市',129,1,0),(1675,'敦化市',129,1,0),(1676,'汪清县',129,1,0),(1677,'珲春市',129,1,0),(1678,'龙井市',129,1,0),(1679,'五常市',130,1,0),(1680,'依兰县',130,1,0),(1681,'南岗区',130,1,0),(1682,'双城市',130,1,0),(1683,'呼兰区',130,1,0),(1684,'哈尔滨市道里区',130,1,0),(1685,'宾县',130,1,0),(1686,'尚志市',130,1,0),(1687,'巴彦县',130,1,0),(1688,'平房区',130,1,0),(1689,'延寿县',130,1,0),(1690,'方正县',130,1,0),(1691,'木兰县',130,1,0),(1692,'松北区',130,1,0),(1693,'通河县',130,1,0),(1694,'道外区',130,1,0),(1695,'阿城区',130,1,0),(1696,'香坊区',130,1,0),(1697,'依安县',131,1,0),(1698,'克东县',131,1,0),(1699,'克山县',131,1,0),(1700,'富拉尔基区',131,1,0),(1701,'富裕县',131,1,0),(1702,'建华区',131,1,0),(1703,'拜泉县',131,1,0),(1704,'昂昂溪区',131,1,0),(1705,'梅里斯达斡尔族区',131,1,0),(1706,'泰来县',131,1,0),(1707,'甘南县',131,1,0),(1708,'碾子山区',131,1,0),(1709,'讷河市',131,1,0),(1710,'铁锋区',131,1,0),(1711,'龙江县',131,1,0),(1712,'龙沙区',131,1,0),(1713,'城子河区',132,1,0),(1714,'密山市',132,1,0),(1715,'恒山区',132,1,0),(1716,'梨树区',132,1,0),(1717,'滴道区',132,1,0),(1718,'虎林市',132,1,0),(1719,'鸡东县',132,1,0),(1720,'鸡冠区',132,1,0),(1721,'麻山区',132,1,0),(1722,'东山区',133,1,0),(1723,'兴安区',133,1,0),(1724,'兴山区',133,1,0),(1725,'南山区',133,1,0),(1726,'向阳区',133,1,0),(1727,'工农区',133,1,0),(1728,'绥滨县',133,1,0),(1729,'萝北县',133,1,0),(1730,'友谊县',134,1,0),(1731,'四方台区',134,1,0),(1732,'宝山区',134,1,0),(1733,'宝清县',134,1,0),(1734,'尖山区',134,1,0),(1735,'岭东区',134,1,0),(1736,'集贤县',134,1,0),(1737,'饶河县',134,1,0),(1738,'大同区',135,1,0),(1739,'杜尔伯特蒙古族自治县',135,1,0),(1740,'林甸县',135,1,0),(1741,'红岗区',135,1,0),(1742,'肇州县',135,1,0),(1743,'肇源县',135,1,0),(1744,'胡路区',135,1,0),(1745,'萨尔图区',135,1,0),(1746,'龙凤区',135,1,0),(1747,'上甘岭区',136,1,0),(1748,'乌伊岭区',136,1,0),(1749,'乌马河区',136,1,0),(1750,'五营区',136,1,0),(1751,'伊春区',136,1,0),(1752,'南岔区',136,1,0),(1753,'友好区',136,1,0),(1754,'嘉荫县',136,1,0),(1755,'带岭区',136,1,0),(1756,'新青区',136,1,0),(1757,'汤旺河区',136,1,0),(1758,'红星区',136,1,0),(1759,'美溪区',136,1,0),(1760,'翠峦区',136,1,0),(1761,'西林区',136,1,0),(1762,'金山屯区',136,1,0),(1763,'铁力市',136,1,0),(1764,'东风区',137,1,0),(1765,'前进区',137,1,0),(1766,'同江市',137,1,0),(1767,'向阳区',137,1,0),(1768,'富锦市',137,1,0),(1769,'抚远县',137,1,0),(1770,'桦南县',137,1,0),(1771,'桦川县',137,1,0),(1772,'汤原县',137,1,0),(1773,'郊区',137,1,0),(1774,'勃利县',138,1,0),(1775,'新兴区',138,1,0),(1776,'桃山区',138,1,0),(1777,'茄子河区',138,1,0),(1778,'东宁县',139,1,0),(1779,'东安区',139,1,0),(1780,'宁安市',139,1,0),(1781,'林口县',139,1,0),(1782,'海林市',139,1,0),(1783,'爱民区',139,1,0),(1784,'穆棱市',139,1,0),(1785,'绥芬河市',139,1,0),(1786,'西安区',139,1,0),(1787,'阳明区',139,1,0),(1788,'五大连池市',140,1,0),(1789,'北安市',140,1,0),(1790,'嫩江县',140,1,0),(1791,'孙吴县',140,1,0),(1792,'爱辉区',140,1,0),(1793,'车逊克县',140,1,0),(1794,'逊克县',140,1,0),(1795,'兰西县',141,1,0),(1796,'安达市',141,1,0),(1797,'庆安县',141,1,0),(1798,'明水县',141,1,0),(1799,'望奎县',141,1,0),(1800,'海伦市',141,1,0),(1801,'绥化市北林区',141,1,0),(1802,'绥棱县',141,1,0),(1803,'肇东市',141,1,0),(1804,'青冈县',141,1,0),(1805,'呼玛县',142,1,0),(1806,'塔河县',142,1,0),(1807,'大兴安岭地区加格达奇区',142,1,0),(1808,'大兴安岭地区呼中区',142,1,0),(1809,'大兴安岭地区新林区',142,1,0),(1810,'大兴安岭地区松岭区',142,1,0),(1811,'漠河县',142,1,0),(2027,'下关区',162,1,0),(2028,'六合区',162,1,0),(2029,'建邺区',162,1,0),(2030,'栖霞区',162,1,0),(2031,'江宁区',162,1,0),(2032,'浦口区',162,1,0),(2033,'溧水县',162,1,0),(2034,'玄武区',162,1,0),(2035,'白下区',162,1,0),(2036,'秦淮区',162,1,0),(2037,'雨花台区',162,1,0),(2038,'高淳县',162,1,0),(2039,'鼓楼区',162,1,0),(2040,'北塘区',163,1,0),(2041,'南长区',163,1,0),(2042,'宜兴市',163,1,0),(2043,'崇安区',163,1,0),(2044,'惠山区',163,1,0),(2045,'江阴市',163,1,0),(2046,'滨湖区',163,1,0),(2047,'锡山区',163,1,0),(2048,'丰县',164,1,0),(2049,'九里区',164,1,0),(2050,'云龙区',164,1,0),(2051,'新沂市',164,1,0),(2052,'沛县',164,1,0),(2053,'泉山区',164,1,0),(2054,'睢宁县',164,1,0),(2055,'贾汪区',164,1,0),(2056,'邳州市',164,1,0),(2057,'铜山县',164,1,0),(2058,'鼓楼区',164,1,0),(2059,'天宁区',165,1,0),(2060,'戚墅堰区',165,1,0),(2061,'新北区',165,1,0),(2062,'武进区',165,1,0),(2063,'溧阳市',165,1,0),(2064,'金坛市',165,1,0),(2065,'钟楼区',165,1,0),(2066,'吴中区',166,1,0),(2067,'吴江市',166,1,0),(2068,'太仓市',166,1,0),(2069,'常熟市',166,1,0),(2070,'平江区',166,1,0),(2071,'张家港市',166,1,0),(2072,'昆山市',166,1,0),(2073,'沧浪区',166,1,0),(2074,'相城区',166,1,0),(2075,'苏州工业园区',166,1,0),(2076,'虎丘区',166,1,0),(2077,'金阊区',166,1,0),(2078,'启东市',167,1,0),(2079,'如东县',167,1,0),(2080,'如皋市',167,1,0),(2081,'崇川区',167,1,0),(2082,'海安县',167,1,0),(2083,'海门市',167,1,0),(2084,'港闸区',167,1,0),(2085,'通州市',167,1,0),(2086,'东海县',168,1,0),(2087,'新浦区',168,1,0),(2088,'海州区',168,1,0),(2089,'灌云县',168,1,0),(2090,'灌南县',168,1,0),(2091,'赣榆县',168,1,0),(2092,'连云区',168,1,0),(2093,'楚州区',169,1,0),(2094,'洪泽县',169,1,0),(2095,'涟水县',169,1,0),(2096,'淮阴区',169,1,0),(2097,'清河区',169,1,0),(2098,'清浦区',169,1,0),(2099,'盱眙县',169,1,0),(2100,'金湖县',169,1,0),(2101,'东台市',170,1,0),(2102,'亭湖区',170,1,0),(2103,'响水县',170,1,0),(2104,'大丰市',170,1,0),(2105,'射阳县',170,1,0),(2106,'建湖县',170,1,0),(2107,'滨海县',170,1,0),(2108,'盐都区',170,1,0),(2109,'阜宁县',170,1,0),(2110,'仪征市',171,1,0),(2111,'宝应县',171,1,0),(2112,'广陵区',171,1,0),(2113,'江都市',171,1,0),(2114,'维扬区',171,1,0),(2115,'邗江区',171,1,0),(2116,'高邮市',171,1,0),(2117,'丹徒区',172,1,0),(2118,'丹阳市',172,1,0),(2119,'京口区',172,1,0),(2120,'句容市',172,1,0),(2121,'扬中市',172,1,0),(2122,'润州区',172,1,0),(2123,'兴化市',173,1,0),(2124,'姜堰市',173,1,0),(2125,'泰兴市',173,1,0),(2126,'海陵区',173,1,0),(2127,'靖江市',173,1,0),(2128,'高港区',173,1,0),(2129,'宿城区',174,1,0),(2130,'宿豫区',174,1,0),(2131,'沭阳县',174,1,0),(2132,'泗洪县',174,1,0),(2133,'泗阳县',174,1,0),(2134,'上城区',175,1,0),(2135,'下城区',175,1,0),(2136,'临安市',175,1,0),(2137,'余杭区',175,1,0),(2138,'富阳市',175,1,0),(2139,'建德市',175,1,0),(2140,'拱墅区',175,1,0),(2141,'桐庐县',175,1,0),(2142,'江干区',175,1,0),(2143,'淳安县',175,1,0),(2144,'滨江区',175,1,0),(2145,'萧山区',175,1,0),(2146,'西湖区',175,1,0),(2147,'余姚市',176,1,0),(2148,'北仑区',176,1,0),(2149,'奉化市',176,1,0),(2150,'宁海县',176,1,0),(2151,'慈溪市',176,1,0),(2152,'江东区',176,1,0),(2153,'江北区',176,1,0),(2154,'海曙区',176,1,0),(2155,'象山县',176,1,0),(2156,'鄞州区',176,1,0),(2157,'镇海区',176,1,0),(2158,'乐清市',177,1,0),(2159,'平阳县',177,1,0),(2160,'文成县',177,1,0),(2161,'永嘉县',177,1,0),(2162,'泰顺县',177,1,0),(2163,'洞头县',177,1,0),(2164,'瑞安市',177,1,0),(2165,'瓯海区',177,1,0),(2166,'苍南县',177,1,0),(2167,'鹿城区',177,1,0),(2168,'龙湾区',177,1,0),(2169,'南湖区',178,1,0),(2170,'嘉善县',178,1,0),(2171,'平湖市',178,1,0),(2172,'桐乡市',178,1,0),(2173,'海宁市',178,1,0),(2174,'海盐县',178,1,0),(2175,'秀洲区',178,1,0),(2176,'南浔区',179,1,0),(2177,'吴兴区',179,1,0),(2178,'安吉县',179,1,0),(2179,'德清县',179,1,0),(2180,'长兴县',179,1,0),(2181,'上虞市',180,1,0),(2182,'嵊州市',180,1,0),(2183,'新昌县',180,1,0),(2184,'绍兴县',180,1,0),(2185,'诸暨市',180,1,0),(2186,'越城区',180,1,0),(2187,'定海区',181,1,0),(2188,'岱山县',181,1,0),(2189,'嵊泗县',181,1,0),(2190,'普陀区',181,1,0),(2191,'常山县',182,1,0),(2192,'开化县',182,1,0),(2193,'柯城区',182,1,0),(2194,'江山市',182,1,0),(2195,'衢江区',182,1,0),(2196,'龙游县',182,1,0),(2197,'东阳市',183,1,0),(2198,'义乌市',183,1,0),(2199,'兰溪市',183,1,0),(2200,'婺城区',183,1,0),(2201,'武义县',183,1,0),(2202,'永康市',183,1,0),(2203,'浦江县',183,1,0),(2204,'磐安县',183,1,0),(2205,'金东区',183,1,0),(2206,'三门县',184,1,0),(2207,'临海市',184,1,0),(2208,'仙居县',184,1,0),(2209,'天台县',184,1,0),(2210,'椒江区',184,1,0),(2211,'温岭市',184,1,0),(2212,'玉环县',184,1,0),(2213,'路桥区',184,1,0),(2214,'黄岩区',184,1,0),(2215,'云和县',185,1,0),(2216,'庆元县',185,1,0),(2217,'景宁畲族自治县',185,1,0),(2218,'松阳县',185,1,0),(2219,'缙云县',185,1,0),(2220,'莲都区',185,1,0),(2221,'遂昌县',185,1,0),(2222,'青田县',185,1,0),(2223,'龙泉市',185,1,0),(2224,'包河区',186,1,0),(2225,'庐阳区',186,1,0),(2226,'瑶海区',186,1,0),(2227,'肥东县',186,1,0),(2228,'肥西县',186,1,0),(2229,'蜀山区',186,1,0),(2230,'长丰县',186,1,0),(2231,'三山区',187,1,0),(2232,'南陵县',187,1,0),(2233,'弋江区',187,1,0),(2234,'繁昌县',187,1,0),(2235,'芜湖县',187,1,0),(2236,'镜湖区',187,1,0),(2237,'鸠江区',187,1,0),(2238,'五河县',188,1,0),(2239,'固镇县',188,1,0),(2240,'怀远县',188,1,0),(2241,'淮上区',188,1,0),(2242,'禹会区',188,1,0),(2243,'蚌山区',188,1,0),(2244,'龙子湖区',188,1,0),(2245,'八公山区',189,1,0),(2246,'凤台县',189,1,0),(2247,'大通区',189,1,0),(2248,'潘集区',189,1,0),(2249,'田家庵区',189,1,0),(2250,'谢家集区',189,1,0),(2251,'当涂县',190,1,0),(2252,'花山区',190,1,0),(2253,'金家庄区',190,1,0),(2254,'雨山区',190,1,0),(2255,'杜集区',191,1,0),(2256,'濉溪县',191,1,0),(2257,'烈山区',191,1,0),(2258,'相山区',191,1,0),(2259,'狮子山区',192,1,0),(2260,'郊区',192,1,0),(2261,'铜官山区',192,1,0),(2262,'铜陵县',192,1,0),(2263,'大观区',193,1,0),(2264,'太湖县',193,1,0),(2265,'宜秀区',193,1,0),(2266,'宿松县',193,1,0),(2267,'岳西县',193,1,0),(2268,'怀宁县',193,1,0),(2269,'望江县',193,1,0),(2270,'枞阳县',193,1,0),(2271,'桐城市',193,1,0),(2272,'潜山县',193,1,0),(2273,'迎江区',193,1,0),(2274,'休宁县',194,1,0),(2275,'屯溪区',194,1,0),(2276,'徽州区',194,1,0),(2277,'歙县',194,1,0),(2278,'祁门县',194,1,0),(2279,'黄山区',194,1,0),(2280,'黟县',194,1,0),(2281,'全椒县',195,1,0),(2282,'凤阳县',195,1,0),(2283,'南谯区',195,1,0),(2284,'天长市',195,1,0),(2285,'定远县',195,1,0),(2286,'明光市',195,1,0),(2287,'来安县',195,1,0),(2288,'琅玡区',195,1,0),(2289,'临泉县',196,1,0),(2290,'太和县',196,1,0),(2291,'界首市',196,1,0),(2292,'阜南县',196,1,0),(2293,'颍东区',196,1,0),(2294,'颍州区',196,1,0),(2295,'颍泉区',196,1,0),(2296,'颖上县',196,1,0),(2297,'埇桥区',197,1,0),(2298,'泗县辖',197,1,0),(2299,'灵璧县',197,1,0),(2300,'砀山县',197,1,0),(2301,'萧县',197,1,0),(2302,'含山县',198,1,0),(2303,'和县',198,1,0),(2304,'居巢区',198,1,0),(2305,'庐江县',198,1,0),(2306,'无为县',198,1,0),(2307,'寿县',199,1,0),(2308,'舒城县',199,1,0),(2309,'裕安区',199,1,0),(2310,'金安区',199,1,0),(2311,'金寨县',199,1,0),(2312,'霍山县',199,1,0),(2313,'霍邱县',199,1,0),(2314,'利辛县',200,1,0),(2315,'涡阳县',200,1,0),(2316,'蒙城县',200,1,0),(2317,'谯城区',200,1,0),(2318,'东至县',201,1,0),(2319,'石台县',201,1,0),(2320,'贵池区',201,1,0),(2321,'青阳县',201,1,0),(2322,'宁国市',202,1,0),(2323,'宣州区',202,1,0),(2324,'广德县',202,1,0),(2325,'旌德县',202,1,0),(2326,'泾县',202,1,0),(2327,'绩溪县',202,1,0),(2328,'郎溪县',202,1,0),(2329,'仓山区',203,1,0),(2330,'台江区',203,1,0),(2331,'平潭县',203,1,0),(2332,'晋安区',203,1,0),(2333,'永泰县',203,1,0),(2334,'福清市',203,1,0),(2335,'罗源县',203,1,0),(2336,'连江县',203,1,0),(2337,'长乐市',203,1,0),(2338,'闽侯县',203,1,0),(2339,'闽清县',203,1,0),(2340,'马尾区',203,1,0),(2341,'鼓楼区',203,1,0),(2342,'同安区',204,1,0),(2343,'思明区',204,1,0),(2344,'海沧区',204,1,0),(2345,'湖里区',204,1,0),(2346,'翔安区',204,1,0),(2347,'集美区',204,1,0),(2348,'仙游县',205,1,0),(2349,'城厢区',205,1,0),(2350,'涵江区',205,1,0),(2351,'秀屿区',205,1,0),(2352,'荔城区',205,1,0),(2353,'三元区',206,1,0),(2354,'大田县',206,1,0),(2355,'宁化县',206,1,0),(2356,'将乐县',206,1,0),(2357,'尤溪县',206,1,0),(2358,'建宁县',206,1,0),(2359,'明溪县',206,1,0),(2360,'梅列区',206,1,0),(2361,'永安市',206,1,0),(2362,'沙县',206,1,0),(2363,'泰宁县',206,1,0),(2364,'清流县',206,1,0),(2365,'丰泽区',207,1,0),(2366,'南安市',207,1,0),(2367,'安溪县',207,1,0),(2368,'德化县',207,1,0),(2369,'惠安县',207,1,0),(2370,'晋江市',207,1,0),(2371,'永春县',207,1,0),(2372,'泉港区',207,1,0),(2373,'洛江区',207,1,0),(2374,'石狮市',207,1,0),(2375,'金门县',207,1,0),(2376,'鲤城区',207,1,0),(2377,'东山县',208,1,0),(2378,'云霄县',208,1,0),(2379,'华安县',208,1,0),(2380,'南靖县',208,1,0),(2381,'平和县',208,1,0),(2382,'漳浦县',208,1,0),(2383,'芗城区',208,1,0),(2384,'诏安县',208,1,0),(2385,'长泰县',208,1,0),(2386,'龙文区',208,1,0),(2387,'龙海市',208,1,0),(2388,'光泽县',209,1,0),(2389,'延平区',209,1,0),(2390,'建瓯市',209,1,0),(2391,'建阳市',209,1,0),(2392,'政和县',209,1,0),(2393,'松溪县',209,1,0),(2394,'武夷山市',209,1,0),(2395,'浦城县',209,1,0),(2396,'邵武市',209,1,0),(2397,'顺昌县',209,1,0),(2398,'上杭县',210,1,0),(2399,'新罗区',210,1,0),(2400,'武平县',210,1,0),(2401,'永定县',210,1,0),(2402,'漳平市',210,1,0),(2403,'连城县',210,1,0),(2404,'长汀县',210,1,0),(2405,'古田县',211,1,0),(2406,'周宁县',211,1,0),(2407,'寿宁县',211,1,0),(2408,'屏南县',211,1,0),(2409,'柘荣县',211,1,0),(2410,'福安市',211,1,0),(2411,'福鼎市',211,1,0),(2412,'蕉城区',211,1,0),(2413,'霞浦县',211,1,0),(2414,'东湖区',212,1,0),(2415,'南昌县',212,1,0),(2416,'安义县',212,1,0),(2417,'新建县',212,1,0),(2418,'湾里区',212,1,0),(2419,'西湖区',212,1,0),(2420,'进贤县',212,1,0),(2421,'青云谱区',212,1,0),(2422,'青山湖区',212,1,0),(2423,'乐平市',213,1,0),(2424,'昌江区',213,1,0),(2425,'浮梁县',213,1,0),(2426,'珠山区',213,1,0),(2427,'上栗县',214,1,0),(2428,'安源区',214,1,0),(2429,'湘东区',214,1,0),(2430,'芦溪县',214,1,0),(2431,'莲花县',214,1,0),(2432,'九江县',215,1,0),(2433,'修水县',215,1,0),(2434,'庐山区',215,1,0),(2435,'彭泽县',215,1,0),(2436,'德安县',215,1,0),(2437,'星子县',215,1,0),(2438,'武宁县',215,1,0),(2439,'永修县',215,1,0),(2440,'浔阳区',215,1,0),(2441,'湖口县',215,1,0),(2442,'瑞昌市',215,1,0),(2443,'都昌县',215,1,0),(2444,'分宜县',216,1,0),(2445,'渝水区',216,1,0),(2446,'余江县',217,1,0),(2447,'月湖区',217,1,0),(2448,'贵溪市',217,1,0),(2449,'上犹县',218,1,0),(2450,'于都县',218,1,0),(2451,'会昌县',218,1,0),(2452,'信丰县',218,1,0),(2453,'全南县',218,1,0),(2454,'兴国县',218,1,0),(2455,'南康市',218,1,0),(2456,'大余县',218,1,0),(2457,'宁都县',218,1,0),(2458,'安远县',218,1,0),(2459,'定南县',218,1,0),(2460,'寻乌县',218,1,0),(2461,'崇义县',218,1,0),(2462,'瑞金市',218,1,0),(2463,'石城县',218,1,0),(2464,'章贡区',218,1,0),(2465,'赣县',218,1,0),(2466,'龙南县',218,1,0),(2467,'万安县',219,1,0),(2468,'井冈山市',219,1,0),(2469,'吉安县',219,1,0),(2470,'吉州区',219,1,0),(2471,'吉水县',219,1,0),(2472,'安福县',219,1,0),(2473,'峡江县',219,1,0),(2474,'新干县',219,1,0),(2475,'永丰县',219,1,0),(2476,'永新县',219,1,0),(2477,'泰和县',219,1,0),(2478,'遂川县',219,1,0),(2479,'青原区',219,1,0),(2480,'万载县',220,1,0),(2481,'上高县',220,1,0),(2482,'丰城市',220,1,0),(2483,'奉新县',220,1,0),(2484,'宜丰县',220,1,0),(2485,'樟树市',220,1,0),(2486,'袁州区',220,1,0),(2487,'铜鼓县',220,1,0),(2488,'靖安县',220,1,0),(2489,'高安市',220,1,0),(2490,'东乡县',221,1,0),(2491,'临川区',221,1,0),(2492,'乐安县',221,1,0),(2493,'南丰县',221,1,0),(2494,'南城县',221,1,0),(2495,'宜黄县',221,1,0),(2496,'崇仁县',221,1,0),(2497,'广昌县',221,1,0),(2498,'资溪县',221,1,0),(2499,'金溪县',221,1,0),(2500,'黎川县',221,1,0),(2501,'万年县',222,1,0),(2502,'上饶县',222,1,0),(2503,'余干县',222,1,0),(2504,'信州区',222,1,0),(2505,'婺源县',222,1,0),(2506,'广丰县',222,1,0),(2507,'弋阳县',222,1,0),(2508,'德兴市',222,1,0),(2509,'横峰县',222,1,0),(2510,'玉山县',222,1,0),(2511,'鄱阳县',222,1,0),(2512,'铅山县',222,1,0),(2513,'历下区',223,1,0),(2514,'历城区',223,1,0),(2515,'商河县',223,1,0),(2516,'天桥区',223,1,0),(2517,'市中区',223,1,0),(2518,'平阴县',223,1,0),(2519,'槐荫区',223,1,0),(2520,'济阳县',223,1,0),(2521,'章丘市',223,1,0),(2522,'长清区',223,1,0),(2523,'即墨市',224,1,0),(2524,'四方区',224,1,0),(2525,'城阳区',224,1,0),(2526,'崂山区',224,1,0),(2527,'市北区',224,1,0),(2528,'市南区',224,1,0),(2529,'平度市',224,1,0),(2530,'李沧区',224,1,0),(2531,'胶南市',224,1,0),(2532,'胶州市',224,1,0),(2533,'莱西市',224,1,0),(2534,'黄岛区',224,1,0),(2535,'临淄区',225,1,0),(2536,'博山区',225,1,0),(2537,'周村区',225,1,0),(2538,'张店区',225,1,0),(2539,'桓台县',225,1,0),(2540,'沂源县',225,1,0),(2541,'淄川区',225,1,0),(2542,'高青县',225,1,0),(2543,'台儿庄区',226,1,0),(2544,'山亭区',226,1,0),(2545,'峄城区',226,1,0),(2546,'市中区',226,1,0),(2547,'滕州市',226,1,0),(2548,'薛城区',226,1,0),(2549,'东营区',227,1,0),(2550,'利津县',227,1,0),(2551,'垦利县',227,1,0),(2552,'广饶县',227,1,0),(2553,'河口区',227,1,0),(2554,'招远市',228,1,0),(2555,'栖霞市',228,1,0),(2556,'海阳市',228,1,0),(2557,'牟平区',228,1,0),(2558,'福山区',228,1,0),(2559,'芝罘区',228,1,0),(2560,'莱山区',228,1,0),(2561,'莱州市',228,1,0),(2562,'莱阳市',228,1,0),(2563,'蓬莱市',228,1,0),(2564,'长岛县',228,1,0),(2565,'龙口市',228,1,0),(2566,'临朐县',229,1,0),(2567,'坊子区',229,1,0),(2568,'奎文区',229,1,0),(2569,'安丘市',229,1,0),(2570,'寒亭区',229,1,0),(2571,'寿光市',229,1,0),(2572,'昌乐县',229,1,0),(2573,'昌邑市',229,1,0),(2574,'潍城区',229,1,0),(2575,'诸城市',229,1,0),(2576,'青州市',229,1,0),(2577,'高密市',229,1,0),(2578,'任城区',230,1,0),(2579,'兖州市',230,1,0),(2580,'嘉祥县',230,1,0),(2581,'市中区',230,1,0),(2582,'微山县',230,1,0),(2583,'曲阜市',230,1,0),(2584,'梁山县',230,1,0),(2585,'汶上县',230,1,0),(2586,'泗水县',230,1,0),(2587,'邹城市',230,1,0),(2588,'金乡县',230,1,0),(2589,'鱼台县',230,1,0),(2590,'东平县',231,1,0),(2591,'宁阳县',231,1,0),(2592,'岱岳区',231,1,0),(2593,'新泰市',231,1,0),(2594,'泰山区',231,1,0),(2595,'肥城市',231,1,0),(2596,'乳山市',232,1,0),(2597,'文登市',232,1,0),(2598,'环翠区',232,1,0),(2599,'荣成市',232,1,0),(2600,'东港区',233,1,0),(2601,'五莲县',233,1,0),(2602,'岚山区',233,1,0),(2603,'莒县',233,1,0),(2604,'莱城区',234,1,0),(2605,'钢城区',234,1,0),(2606,'临沭县',235,1,0),(2607,'兰山区',235,1,0),(2608,'平邑县',235,1,0),(2609,'沂南县',235,1,0),(2610,'沂水县',235,1,0),(2611,'河东区',235,1,0),(2612,'罗庄区',235,1,0),(2613,'苍山县',235,1,0),(2614,'莒南县',235,1,0),(2615,'蒙阴县',235,1,0),(2616,'费县',235,1,0),(2617,'郯城县',235,1,0),(2618,'临邑县',236,1,0),(2619,'乐陵市',236,1,0),(2620,'夏津县',236,1,0),(2621,'宁津县',236,1,0),(2622,'平原县',236,1,0),(2623,'庆云县',236,1,0),(2624,'德城区',236,1,0),(2625,'武城县',236,1,0),(2626,'禹城市',236,1,0),(2627,'陵县',236,1,0),(2628,'齐河县',236,1,0),(2629,'东昌府区',237,1,0),(2630,'东阿县',237,1,0),(2631,'临清市',237,1,0),(2632,'冠县',237,1,0),(2633,'茌平县',237,1,0),(2634,'莘县',237,1,0),(2635,'阳谷县',237,1,0),(2636,'高唐县',237,1,0),(2637,'博兴县',238,1,0),(2638,'惠民县',238,1,0),(2639,'无棣县',238,1,0),(2640,'沾化县',238,1,0),(2641,'滨城区',238,1,0),(2642,'邹平县',238,1,0),(2643,'阳信县',238,1,0),(2644,'东明县',239,1,0),(2645,'单县',239,1,0),(2646,'定陶县',239,1,0),(2647,'巨野县',239,1,0),(2648,'成武县',239,1,0),(2649,'曹县',239,1,0),(2650,'牡丹区',239,1,0),(2651,'郓城县',239,1,0),(2652,'鄄城县',239,1,0),(2653,'上街区',240,1,0),(2654,'中原区',240,1,0),(2655,'中牟县',240,1,0),(2656,'二七区',240,1,0),(2657,'巩义市',240,1,0),(2658,'惠济区',240,1,0),(2659,'新密市',240,1,0),(2660,'新郑市',240,1,0),(2661,'登封市',240,1,0),(2662,'管城回族区',240,1,0),(2663,'荥阳市',240,1,0),(2664,'金水区',240,1,0),(2665,'兰考县',241,1,0),(2666,'尉氏县',241,1,0),(2667,'开封县',241,1,0),(2668,'杞县',241,1,0),(2669,'禹王台区',241,1,0),(2670,'通许县',241,1,0),(2671,'金明区',241,1,0),(2672,'顺河回族区',241,1,0),(2673,'鼓楼区',241,1,0),(2674,'龙亭区',241,1,0),(2675,'伊川县',242,1,0),(2676,'偃师市',242,1,0),(2677,'吉利区',242,1,0),(2678,'孟津县',242,1,0),(2679,'宜阳县',242,1,0),(2680,'嵩县',242,1,0),(2681,'新安县',242,1,0),(2682,'栾川县',242,1,0),(2683,'汝阳县',242,1,0),(2684,'洛宁县',242,1,0),(2685,'洛龙区',242,1,0),(2686,'涧西区',242,1,0),(2687,'瀍河回族区',242,1,0),(2688,'老城区',242,1,0),(2689,'西工区',242,1,0),(2690,'卫东区',243,1,0),(2691,'叶县',243,1,0),(2692,'宝丰县',243,1,0),(2693,'新华区',243,1,0),(2694,'汝州市',243,1,0),(2695,'湛河区',243,1,0),(2696,'石龙区',243,1,0),(2697,'舞钢市',243,1,0),(2698,'郏县',243,1,0),(2699,'鲁山县',243,1,0),(2700,'内黄县',244,1,0),(2701,'北关区',244,1,0),(2702,'安阳县',244,1,0),(2703,'文峰区',244,1,0),(2704,'林州市',244,1,0),(2705,'殷都区',244,1,0),(2706,'汤阴县',244,1,0),(2707,'滑县',244,1,0),(2708,'龙安区',244,1,0),(2709,'山城区',245,1,0),(2710,'浚县',245,1,0),(2711,'淇县',245,1,0),(2712,'淇滨区',245,1,0),(2713,'鹤山区',245,1,0),(2714,'凤泉区',246,1,0),(2715,'卫滨区',246,1,0),(2716,'卫辉市',246,1,0),(2717,'原阳县',246,1,0),(2718,'封丘县',246,1,0),(2719,'延津县',246,1,0),(2720,'新乡县',246,1,0),(2721,'牧野区',246,1,0),(2722,'红旗区',246,1,0),(2723,'获嘉县',246,1,0),(2724,'辉县市',246,1,0),(2725,'长垣县',246,1,0),(2726,'中站区',247,1,0),(2727,'修武县',247,1,0),(2728,'博爱县',247,1,0),(2729,'孟州市',247,1,0),(2730,'山阳区',247,1,0),(2731,'武陟县',247,1,0),(2732,'沁阳市',247,1,0),(2733,'温县',247,1,0),(2734,'解放区',247,1,0),(2735,'马村区',247,1,0),(2736,'华龙区',248,1,0),(2737,'南乐县',248,1,0),(2738,'台前县',248,1,0),(2739,'清丰县',248,1,0),(2740,'濮阳县',248,1,0),(2741,'范县',248,1,0),(2742,'禹州市',249,1,0),(2743,'襄城县',249,1,0),(2744,'许昌县',249,1,0),(2745,'鄢陵县',249,1,0),(2746,'长葛市',249,1,0),(2747,'魏都区',249,1,0),(2748,'临颍县',250,1,0),(2749,'召陵区',250,1,0),(2750,'源汇区',250,1,0),(2751,'舞阳县',250,1,0),(2752,'郾城区',250,1,0),(2753,'义马市',251,1,0),(2754,'卢氏县',251,1,0),(2755,'渑池县',251,1,0),(2756,'湖滨区',251,1,0),(2757,'灵宝市',251,1,0),(2758,'陕县',251,1,0),(2759,'内乡县',252,1,0),(2760,'南召县',252,1,0),(2761,'卧龙区',252,1,0),(2762,'唐河县',252,1,0),(2763,'宛城区',252,1,0),(2764,'新野县',252,1,0),(2765,'方城县',252,1,0),(2766,'桐柏县',252,1,0),(2767,'淅川县',252,1,0),(2768,'社旗县',252,1,0),(2769,'西峡县',252,1,0),(2770,'邓州市',252,1,0),(2771,'镇平县',252,1,0),(2772,'夏邑县',253,1,0),(2773,'宁陵县',253,1,0),(2774,'柘城县',253,1,0),(2775,'民权县',253,1,0),(2776,'永城市',253,1,0),(2777,'睢县',253,1,0),(2778,'睢阳区',253,1,0),(2779,'粱园区',253,1,0),(2780,'虞城县',253,1,0),(2781,'光山县',254,1,0),(2782,'商城县',254,1,0),(2783,'固始县',254,1,0),(2784,'平桥区',254,1,0),(2785,'息县',254,1,0),(2786,'新县',254,1,0),(2787,'浉河区',254,1,0),(2788,'淮滨县',254,1,0),(2789,'潢川县',254,1,0),(2790,'罗山县',254,1,0),(2791,'商水县',255,1,0),(2792,'太康县',255,1,0),(2793,'川汇区',255,1,0),(2794,'扶沟县',255,1,0),(2795,'沈丘县',255,1,0),(2796,'淮阳县',255,1,0),(2797,'西华县',255,1,0),(2798,'郸城县',255,1,0),(2799,'项城市',255,1,0),(2800,'鹿邑县',255,1,0),(2801,'上蔡县',256,1,0),(2802,'平舆县',256,1,0),(2803,'新蔡县',256,1,0),(2804,'正阳县',256,1,0),(2805,'汝南县',256,1,0),(2806,'泌阳县',256,1,0),(2807,'确山县',256,1,0),(2808,'西平县',256,1,0),(2809,'遂平县',256,1,0),(2810,'驿城区',256,1,0),(2811,'济源市',257,1,0),(2812,'东西湖区',258,1,0),(2813,'新洲区',258,1,0),(2814,'武昌区',258,1,0),(2815,'汉南区',258,1,0),(2816,'汉阳区',258,1,0),(2817,'江夏区',258,1,0),(2818,'江岸区',258,1,0),(2819,'江汉区',258,1,0),(2820,'洪山区',258,1,0),(2821,'硚口区',258,1,0),(2822,'蔡甸区',258,1,0),(2823,'青山区',258,1,0),(2824,'黄陂区',258,1,0),(2825,'下陆区',259,1,0),(2826,'大冶市',259,1,0),(2827,'西塞山区',259,1,0),(2828,'铁山区',259,1,0),(2829,'阳新县',259,1,0),(2830,'黄石港区',259,1,0),(2831,'丹江口市',260,1,0),(2832,'张湾区',260,1,0),(2833,'房县',260,1,0),(2834,'竹山县',260,1,0),(2835,'竹溪县',260,1,0),(2836,'茅箭区',260,1,0),(2837,'郧县',260,1,0),(2838,'郧西县',260,1,0),(2839,'五峰土家族自治县',261,1,0),(2840,'伍家岗区',261,1,0),(2841,'兴山县',261,1,0),(2842,'夷陵区',261,1,0),(2843,'宜都市',261,1,0),(2844,'当阳市',261,1,0),(2845,'枝江市',261,1,0),(2846,'点军区',261,1,0),(2847,'秭归县',261,1,0),(2848,'虢亭区',261,1,0),(2849,'西陵区',261,1,0),(2850,'远安县',261,1,0),(2851,'长阳土家族自治县',261,1,0),(2852,'保康县',262,1,0),(2853,'南漳县',262,1,0),(2854,'宜城市',262,1,0),(2855,'枣阳市',262,1,0),(2856,'樊城区',262,1,0),(2857,'老河口市',262,1,0),(2858,'襄城区',262,1,0),(2859,'襄阳区',262,1,0),(2860,'谷城县',262,1,0),(2861,'华容区',263,1,0),(2862,'粱子湖',263,1,0),(2863,'鄂城区',263,1,0),(2864,'东宝区',264,1,0),(2865,'京山县',264,1,0),(2866,'掇刀区',264,1,0),(2867,'沙洋县',264,1,0),(2868,'钟祥市',264,1,0),(2869,'云梦县',265,1,0),(2870,'大悟县',265,1,0),(2871,'孝南区',265,1,0),(2872,'孝昌县',265,1,0),(2873,'安陆市',265,1,0),(2874,'应城市',265,1,0),(2875,'汉川市',265,1,0),(2876,'公安县',266,1,0),(2877,'松滋市',266,1,0),(2878,'江陵县',266,1,0),(2879,'沙市区',266,1,0),(2880,'洪湖市',266,1,0),(2881,'监利县',266,1,0),(2882,'石首市',266,1,0),(2883,'荆州区',266,1,0),(2884,'团风县',267,1,0),(2885,'武穴市',267,1,0),(2886,'浠水县',267,1,0),(2887,'红安县',267,1,0),(2888,'罗田县',267,1,0),(2889,'英山县',267,1,0),(2890,'蕲春县',267,1,0),(2891,'麻城市',267,1,0),(2892,'黄州区',267,1,0),(2893,'黄梅县',267,1,0),(2894,'咸安区',268,1,0),(2895,'嘉鱼县',268,1,0),(2896,'崇阳县',268,1,0),(2897,'赤壁市',268,1,0),(2898,'通城县',268,1,0),(2899,'通山县',268,1,0),(2900,'广水市',269,1,0),(2901,'曾都区',269,1,0),(2902,'利川市',270,1,0),(2903,'咸丰县',270,1,0),(2904,'宣恩县',270,1,0),(2905,'巴东县',270,1,0),(2906,'建始县',270,1,0),(2907,'恩施市',270,1,0),(2908,'来凤县',270,1,0),(2909,'鹤峰县',270,1,0),(2910,'仙桃市',271,1,0),(2911,'潜江市',272,1,0),(2912,'天门市',273,1,0),(2913,'神农架林区',274,1,0),(2914,'天心区',275,1,0),(2915,'宁乡县',275,1,0),(2916,'岳麓区',275,1,0),(2917,'开福区',275,1,0),(2918,'望城县',275,1,0),(2919,'浏阳市',275,1,0),(2920,'芙蓉区',275,1,0),(2921,'长沙县',275,1,0),(2922,'雨花区',275,1,0),(2923,'天元区',276,1,0),(2924,'攸县',276,1,0),(2925,'株洲县',276,1,0),(2926,'炎陵县',276,1,0),(2927,'石峰区',276,1,0),(2928,'芦淞区',276,1,0),(2929,'茶陵县',276,1,0),(2930,'荷塘区',276,1,0),(2931,'醴陵市',276,1,0),(2932,'岳塘区',277,1,0),(2933,'湘乡市',277,1,0),(2934,'湘潭县',277,1,0),(2935,'雨湖区',277,1,0),(2936,'韶山市',277,1,0),(2937,'南岳区',278,1,0),(2938,'常宁市',278,1,0),(2939,'珠晖区',278,1,0),(2940,'石鼓区',278,1,0),(2941,'祁东县',278,1,0),(2942,'耒阳市',278,1,0),(2943,'蒸湘区',278,1,0),(2944,'衡东县',278,1,0),(2945,'衡南县',278,1,0),(2946,'衡山县',278,1,0),(2947,'衡阳县',278,1,0),(2948,'雁峰区',278,1,0),(2949,'北塔区',279,1,0),(2950,'双清区',279,1,0),(2951,'城步苗族自治县',279,1,0),(2952,'大祥区',279,1,0),(2953,'新宁县',279,1,0),(2954,'新邵县',279,1,0),(2955,'武冈市',279,1,0),(2956,'洞口县',279,1,0),(2957,'绥宁县',279,1,0),(2958,'邵东县',279,1,0),(2959,'邵阳县',279,1,0),(2960,'隆回县',279,1,0),(2961,'临湘市',280,1,0),(2962,'云溪区',280,1,0),(2963,'华容县',280,1,0),(2964,'君山区',280,1,0),(2965,'岳阳县',280,1,0),(2966,'岳阳楼区',280,1,0),(2967,'平江县',280,1,0),(2968,'汨罗市',280,1,0),(2969,'湘阴县',280,1,0),(2970,'临澧县',281,1,0),(2971,'安乡县',281,1,0),(2972,'桃源县',281,1,0),(2973,'武陵区',281,1,0),(2974,'汉寿县',281,1,0),(2975,'津市市',281,1,0),(2976,'澧县',281,1,0),(2977,'石门县',281,1,0),(2978,'鼎城区',281,1,0),(2979,'慈利县',282,1,0),(2980,'桑植县',282,1,0),(2981,'武陵源区',282,1,0),(2982,'永定区',282,1,0),(2983,'南县',283,1,0),(2984,'安化县',283,1,0),(2985,'桃江县',283,1,0),(2986,'沅江市',283,1,0),(2987,'资阳区',283,1,0),(2988,'赫山区',283,1,0),(2989,'临武县',284,1,0),(2990,'北湖区',284,1,0),(2991,'嘉禾县',284,1,0),(2992,'安仁县',284,1,0),(2993,'宜章县',284,1,0),(2994,'桂东县',284,1,0),(2995,'桂阳县',284,1,0),(2996,'永兴县',284,1,0),(2997,'汝城县',284,1,0),(2998,'苏仙区',284,1,0),(2999,'资兴市',284,1,0),(3000,'东安县',285,1,0),(3001,'冷水滩区',285,1,0),(3002,'双牌县',285,1,0),(3003,'宁远县',285,1,0),(3004,'新田县',285,1,0),(3005,'江华瑶族自治县',285,1,0),(3006,'江永县',285,1,0),(3007,'祁阳县',285,1,0),(3008,'蓝山县',285,1,0),(3009,'道县',285,1,0),(3010,'零陵区',285,1,0),(3011,'中方县',286,1,0),(3012,'会同县',286,1,0),(3013,'新晃侗族自治县',286,1,0),(3014,'沅陵县',286,1,0),(3015,'洪江市/洪江区',286,1,0),(3016,'溆浦县',286,1,0),(3017,'芷江侗族自治县',286,1,0),(3018,'辰溪县',286,1,0),(3019,'通道侗族自治县',286,1,0),(3020,'靖州苗族侗族自治县',286,1,0),(3021,'鹤城区',286,1,0),(3022,'麻阳苗族自治县',286,1,0),(3023,'冷水江市',287,1,0),(3024,'双峰县',287,1,0),(3025,'娄星区',287,1,0),(3026,'新化县',287,1,0),(3027,'涟源市',287,1,0),(3028,'保靖县',288,1,0),(3029,'凤凰县',288,1,0),(3030,'古丈县',288,1,0),(3031,'吉首市',288,1,0),(3032,'永顺县',288,1,0),(3033,'泸溪县',288,1,0),(3034,'花垣县',288,1,0),(3035,'龙山县',288,1,0),(3036,'萝岗区',289,1,0),(3037,'南沙区',289,1,0),(3038,'从化市',289,1,0),(3039,'增城市',289,1,0),(3040,'天河区',289,1,0),(3041,'海珠区',289,1,0),(3042,'番禺区',289,1,0),(3043,'白云区',289,1,0),(3044,'花都区',289,1,0),(3045,'荔湾区',289,1,0),(3046,'越秀区',289,1,0),(3047,'黄埔区',289,1,0),(3048,'乐昌市',290,1,0),(3049,'乳源瑶族自治县',290,1,0),(3050,'仁化县',290,1,0),(3051,'南雄市',290,1,0),(3052,'始兴县',290,1,0),(3053,'新丰县',290,1,0),(3054,'曲江区',290,1,0),(3055,'武江区',290,1,0),(3056,'浈江区',290,1,0),(3057,'翁源县',290,1,0),(3058,'南山区',291,1,0),(3059,'宝安区',291,1,0),(3060,'盐田区',291,1,0),(3061,'福田区',291,1,0),(3062,'罗湖区',291,1,0),(3063,'龙岗区',291,1,0),(3064,'斗门区',292,1,0),(3065,'金湾区',292,1,0),(3066,'香洲区',292,1,0),(3067,'南澳县',293,1,0),(3068,'潮南区',293,1,0),(3069,'潮阳区',293,1,0),(3070,'澄海区',293,1,0),(3071,'濠江区',293,1,0),(3072,'金平区',293,1,0),(3073,'龙湖区',293,1,0),(3074,'三水区',294,1,0),(3075,'南海区',294,1,0),(3076,'禅城区',294,1,0),(3077,'顺德区',294,1,0),(3078,'高明区',294,1,0),(3079,'台山市',295,1,0),(3080,'开平市',295,1,0),(3081,'恩平市',295,1,0),(3082,'新会区',295,1,0),(3083,'江海区',295,1,0),(3084,'蓬江区',295,1,0),(3085,'鹤山市',295,1,0),(3086,'吴川市',296,1,0),(3087,'坡头区',296,1,0),(3088,'廉江市',296,1,0),(3089,'徐闻县',296,1,0),(3090,'赤坎区',296,1,0),(3091,'遂溪县',296,1,0),(3092,'雷州市',296,1,0),(3093,'霞山区',296,1,0),(3094,'麻章区',296,1,0),(3095,'信宜市',297,1,0),(3096,'化州市',297,1,0),(3097,'电白县',297,1,0),(3098,'茂南区',297,1,0),(3099,'茂港区',297,1,0),(3100,'高州市',297,1,0),(3101,'四会市',298,1,0),(3102,'封开县',298,1,0),(3103,'广宁县',298,1,0),(3104,'德庆县',298,1,0),(3105,'怀集县',298,1,0),(3106,'端州区',298,1,0),(3107,'高要市',298,1,0),(3108,'鼎湖区',298,1,0),(3109,'博罗县',299,1,0),(3110,'惠东县',299,1,0),(3111,'惠城区',299,1,0),(3112,'惠阳区',299,1,0),(3113,'龙门县',299,1,0),(3114,'丰顺县',300,1,0),(3115,'五华县',300,1,0),(3116,'兴宁市',300,1,0),(3117,'大埔县',300,1,0),(3118,'平远县',300,1,0),(3119,'梅县',300,1,0),(3120,'梅江区',300,1,0),(3121,'蕉岭县',300,1,0),(3122,'城区',301,1,0),(3123,'海丰县',301,1,0),(3124,'陆丰市',301,1,0),(3125,'陆河县',301,1,0),(3126,'东源县',302,1,0),(3127,'和平县',302,1,0),(3128,'源城区',302,1,0),(3129,'紫金县',302,1,0),(3130,'连平县',302,1,0),(3131,'龙川县',302,1,0),(3132,'江城区',303,1,0),(3133,'阳东县',303,1,0),(3134,'阳春市',303,1,0),(3135,'阳西县',303,1,0),(3136,'佛冈县',304,1,0),(3137,'清城区',304,1,0),(3138,'清新县',304,1,0),(3139,'英德市',304,1,0),(3140,'连南瑶族自治县',304,1,0),(3141,'连山壮族瑶族自治县',304,1,0),(3142,'连州市',304,1,0),(3143,'阳山县',304,1,0),(3144,'东莞市',305,1,0),(3145,'中山市',306,1,0),(3146,'湘桥区',307,1,0),(3147,'潮安县',307,1,0),(3148,'饶平县',307,1,0),(3149,'惠来县',308,1,0),(3150,'揭东县',308,1,0),(3151,'揭西县',308,1,0),(3152,'普宁市',308,1,0),(3153,'榕城区',308,1,0),(3154,'云城区',309,1,0),(3155,'云安县',309,1,0),(3156,'新兴县',309,1,0),(3157,'罗定市',309,1,0),(3158,'郁南县',309,1,0),(3159,'上林县',310,1,0),(3160,'兴宁区',310,1,0),(3161,'宾阳县',310,1,0),(3162,'横县',310,1,0),(3163,'武鸣县',310,1,0),(3164,'江南区',310,1,0),(3165,'良庆区',310,1,0),(3166,'西乡塘区',310,1,0),(3167,'邕宁区',310,1,0),(3168,'隆安县',310,1,0),(3169,'青秀区',310,1,0),(3170,'马山县',310,1,0),(3171,'三江侗族自治县',311,1,0),(3172,'城中区',311,1,0),(3173,'柳北区',311,1,0),(3174,'柳南区',311,1,0),(3175,'柳城县',311,1,0),(3176,'柳江县',311,1,0),(3177,'融安县',311,1,0),(3178,'融水苗族自治县',311,1,0),(3179,'鱼峰区',311,1,0),(3180,'鹿寨县',311,1,0),(3181,'七星区',312,1,0),(3182,'临桂县',312,1,0),(3183,'全州县',312,1,0),(3184,'兴安县',312,1,0),(3185,'叠彩区',312,1,0),(3186,'平乐县',312,1,0),(3187,'恭城瑶族自治县',312,1,0),(3188,'永福县',312,1,0),(3189,'灌阳县',312,1,0),(3190,'灵川县',312,1,0),(3191,'秀峰区',312,1,0),(3192,'荔浦县',312,1,0),(3193,'象山区',312,1,0),(3194,'资源县',312,1,0),(3195,'阳朔县',312,1,0),(3196,'雁山区',312,1,0),(3197,'龙胜各族自治县',312,1,0),(3198,'万秀区',313,1,0),(3199,'岑溪市',313,1,0),(3200,'苍梧县',313,1,0),(3201,'蒙山县',313,1,0),(3202,'藤县',313,1,0),(3203,'蝶山区',313,1,0),(3204,'长洲区',313,1,0),(3205,'合浦县',314,1,0),(3206,'海城区',314,1,0),(3207,'铁山港区',314,1,0),(3208,'银海区',314,1,0),(3209,'上思县',315,1,0),(3210,'东兴市',315,1,0),(3211,'港口区',315,1,0),(3212,'防城区',315,1,0),(3213,'浦北县',316,1,0),(3214,'灵山县',316,1,0),(3215,'钦北区',316,1,0),(3216,'钦南区',316,1,0),(3217,'平南县',317,1,0),(3218,'桂平市',317,1,0),(3219,'港北区',317,1,0),(3220,'港南区',317,1,0),(3221,'覃塘区',317,1,0),(3222,'兴业县',318,1,0),(3223,'北流市',318,1,0),(3224,'博白县',318,1,0),(3225,'容县',318,1,0),(3226,'玉州区',318,1,0),(3227,'陆川县',318,1,0),(3228,'乐业县',319,1,0),(3229,'凌云县',319,1,0),(3230,'右江区',319,1,0),(3231,'平果县',319,1,0),(3232,'德保县',319,1,0),(3233,'田东县',319,1,0),(3234,'田林县',319,1,0),(3235,'田阳县',319,1,0),(3236,'西林县',319,1,0),(3237,'那坡县',319,1,0),(3238,'隆林各族自治县',319,1,0),(3239,'靖西县',319,1,0),(3240,'八步区',320,1,0),(3241,'富川瑶族自治县',320,1,0),(3242,'昭平县',320,1,0),(3243,'钟山县',320,1,0),(3244,'东兰县',321,1,0),(3245,'凤山县',321,1,0),(3246,'南丹县',321,1,0),(3247,'大化瑶族自治县',321,1,0),(3248,'天峨县',321,1,0),(3249,'宜州市',321,1,0),(3250,'巴马瑶族自治县',321,1,0),(3251,'环江毛南族自治县',321,1,0),(3252,'罗城仫佬族自治县',321,1,0),(3253,'都安瑶族自治县',321,1,0),(3254,'金城江区',321,1,0),(3255,'兴宾区',322,1,0),(3256,'合山市',322,1,0),(3257,'忻城县',322,1,0),(3258,'武宣县',322,1,0),(3259,'象州县',322,1,0),(3260,'金秀瑶族自治县',322,1,0),(3261,'凭祥市',323,1,0),(3262,'大新县',323,1,0),(3263,'天等县',323,1,0),(3264,'宁明县',323,1,0),(3265,'扶绥县',323,1,0),(3266,'江州区',323,1,0),(3267,'龙州县',323,1,0),(3268,'琼山区',324,1,0),(3269,'秀英区',324,1,0),(3270,'美兰区',324,1,0),(3271,'龙华区',324,1,0),(3272,'三亚市',325,1,0),(3273,'五指山市',326,1,0),(3274,'琼海市',327,1,0),(3275,'儋州市',328,1,0),(3276,'文昌市',329,1,0),(3277,'万宁市',330,1,0),(3278,'东方市',331,1,0),(3279,'定安县',332,1,0),(3280,'屯昌县',333,1,0),(3281,'澄迈县',334,1,0),(3282,'临高县',335,1,0),(3283,'白沙黎族自治县',336,1,0),(3284,'昌江黎族自治县',337,1,0),(3285,'乐东黎族自治县',338,1,0),(3286,'陵水黎族自治县',339,1,0),(3287,'保亭黎族苗族自治县',340,1,0),(3288,'琼中黎族苗族自治县',341,1,0),(4209,'双流县',385,1,0),(4210,'大邑县',385,1,0),(4211,'崇州市',385,1,0),(4212,'彭州市',385,1,0),(4213,'成华区',385,1,0),(4214,'新津县',385,1,0),(4215,'新都区',385,1,0),(4216,'武侯区',385,1,0),(4217,'温江区',385,1,0),(4218,'蒲江县',385,1,0),(4219,'邛崃市',385,1,0),(4220,'郫县',385,1,0),(4221,'都江堰市',385,1,0),(4222,'金堂县',385,1,0),(4223,'金牛区',385,1,0),(4224,'锦江区',385,1,0),(4225,'青白江区',385,1,0),(4226,'青羊区',385,1,0),(4227,'龙泉驿区',385,1,0),(4228,'大安区',386,1,0),(4229,'富顺县',386,1,0),(4230,'沿滩区',386,1,0),(4231,'自流井区',386,1,0),(4232,'荣县',386,1,0),(4233,'贡井区',386,1,0),(4234,'东区',387,1,0),(4235,'仁和区',387,1,0),(4236,'盐边县',387,1,0),(4237,'米易县',387,1,0),(4238,'西区',387,1,0),(4239,'叙永县',388,1,0),(4240,'古蔺县',388,1,0),(4241,'合江县',388,1,0),(4242,'江阳区',388,1,0),(4243,'泸县',388,1,0),(4244,'纳溪区',388,1,0),(4245,'龙马潭区',388,1,0),(4246,'中江县',389,1,0),(4247,'什邡市',389,1,0),(4248,'广汉市',389,1,0),(4249,'旌阳区',389,1,0),(4250,'绵竹市',389,1,0),(4251,'罗江县',389,1,0),(4252,'三台县',390,1,0),(4253,'北川羌族自治县',390,1,0),(4254,'安县',390,1,0),(4255,'平武县',390,1,0),(4256,'梓潼县',390,1,0),(4257,'江油市',390,1,0),(4258,'涪城区',390,1,0),(4259,'游仙区',390,1,0),(4260,'盐亭县',390,1,0),(4261,'元坝区',391,1,0),(4262,'利州区',391,1,0),(4263,'剑阁县',391,1,0),(4264,'旺苍县',391,1,0),(4265,'朝天区',391,1,0),(4266,'苍溪县',391,1,0),(4267,'青川县',391,1,0),(4268,'大英县',392,1,0),(4269,'安居区',392,1,0),(4270,'射洪县',392,1,0),(4271,'船山区',392,1,0),(4272,'蓬溪县',392,1,0),(4273,'东兴区',393,1,0),(4274,'威远县',393,1,0),(4275,'市中区',393,1,0),(4276,'资中县',393,1,0),(4277,'隆昌县',393,1,0),(4278,'五通桥区',394,1,0),(4279,'井研县',394,1,0),(4280,'夹江县',394,1,0),(4281,'峨眉山市',394,1,0),(4282,'峨边彝族自治县',394,1,0),(4283,'市中区',394,1,0),(4284,'沐川县',394,1,0),(4285,'沙湾区',394,1,0),(4286,'犍为县',394,1,0),(4287,'金口河区',394,1,0),(4288,'马边彝族自治县',394,1,0),(4289,'仪陇县',395,1,0),(4290,'南充市嘉陵区',395,1,0),(4291,'南部县',395,1,0),(4292,'嘉陵区',395,1,0),(4293,'营山县',395,1,0),(4294,'蓬安县',395,1,0),(4295,'西充县',395,1,0),(4296,'阆中市',395,1,0),(4297,'顺庆区',395,1,0),(4298,'高坪区',395,1,0),(4299,'东坡区',396,1,0),(4300,'丹棱县',396,1,0),(4301,'仁寿县',396,1,0),(4302,'彭山县',396,1,0),(4303,'洪雅县',396,1,0),(4304,'青神县',396,1,0),(4305,'兴文县',397,1,0),(4306,'南溪县',397,1,0),(4307,'宜宾县',397,1,0),(4308,'屏山县',397,1,0),(4309,'江安县',397,1,0),(4310,'珙县',397,1,0),(4311,'筠连县',397,1,0),(4312,'翠屏区',397,1,0),(4313,'长宁县',397,1,0),(4314,'高县',397,1,0),(4315,'华蓥市',398,1,0),(4316,'岳池县',398,1,0),(4317,'广安区',398,1,0),(4318,'武胜县',398,1,0),(4319,'邻水县',398,1,0),(4320,'万源市',399,1,0),(4321,'大竹县',399,1,0),(4322,'宣汉县',399,1,0),(4323,'开江县',399,1,0),(4324,'渠县',399,1,0),(4325,'达县',399,1,0),(4326,'通川区',399,1,0),(4327,'名山县',400,1,0),(4328,'天全县',400,1,0),(4329,'宝兴县',400,1,0),(4330,'汉源县',400,1,0),(4331,'石棉县',400,1,0),(4332,'芦山县',400,1,0),(4333,'荥经县',400,1,0),(4334,'雨城区',400,1,0),(4335,'南江县',401,1,0),(4336,'巴州区',401,1,0),(4337,'平昌县',401,1,0),(4338,'通江县',401,1,0),(4339,'乐至县',402,1,0),(4340,'安岳县',402,1,0),(4341,'简阳市',402,1,0),(4342,'雁江区',402,1,0),(4343,'九寨沟县',403,1,0),(4344,'壤塘县',403,1,0),(4345,'小金县',403,1,0),(4346,'松潘县',403,1,0),(4347,'汶川县',403,1,0),(4348,'理县',403,1,0),(4349,'红原县',403,1,0),(4350,'若尔盖县',403,1,0),(4351,'茂县',403,1,0),(4352,'金川县',403,1,0),(4353,'阿坝县',403,1,0),(4354,'马尔康县',403,1,0),(4355,'黑水县',403,1,0),(4356,'丹巴县',404,1,0),(4357,'乡城县',404,1,0),(4358,'巴塘县',404,1,0),(4359,'康定县',404,1,0),(4360,'得荣县',404,1,0),(4361,'德格县',404,1,0),(4362,'新龙县',404,1,0),(4363,'泸定县',404,1,0),(4364,'炉霍县',404,1,0),(4365,'理塘县',404,1,0),(4366,'甘孜县',404,1,0),(4367,'白玉县',404,1,0),(4368,'石渠县',404,1,0),(4369,'稻城县',404,1,0),(4370,'色达县',404,1,0),(4371,'道孚县',404,1,0),(4372,'雅江县',404,1,0),(4373,'会东县',405,1,0),(4374,'会理县',405,1,0),(4375,'冕宁县',405,1,0),(4376,'喜德县',405,1,0),(4377,'宁南县',405,1,0),(4378,'布拖县',405,1,0),(4379,'德昌县',405,1,0),(4380,'昭觉县',405,1,0),(4381,'普格县',405,1,0),(4382,'木里藏族自治县',405,1,0),(4383,'甘洛县',405,1,0),(4384,'盐源县',405,1,0),(4385,'美姑县',405,1,0),(4386,'西昌',405,1,0),(4387,'越西县',405,1,0),(4388,'金阳县',405,1,0),(4389,'雷波县',405,1,0),(4390,'乌当区',406,1,0),(4391,'云岩区',406,1,0),(4392,'修文县',406,1,0),(4393,'南明区',406,1,0),(4394,'小河区',406,1,0),(4395,'开阳县',406,1,0),(4396,'息烽县',406,1,0),(4397,'清镇市',406,1,0),(4398,'白云区',406,1,0),(4399,'花溪区',406,1,0),(4400,'六枝特区',407,1,0),(4401,'水城县',407,1,0),(4402,'盘县',407,1,0),(4403,'钟山区',407,1,0),(4404,'习水县',408,1,0),(4405,'仁怀市',408,1,0),(4406,'余庆县',408,1,0),(4407,'凤冈县',408,1,0),(4408,'务川仡佬族苗族自治县',408,1,0),(4409,'桐梓县',408,1,0),(4410,'正安县',408,1,0),(4411,'汇川区',408,1,0),(4412,'湄潭县',408,1,0),(4413,'红花岗区',408,1,0),(4414,'绥阳县',408,1,0),(4415,'赤水市',408,1,0),(4416,'道真仡佬族苗族自治县',408,1,0),(4417,'遵义县',408,1,0),(4418,'关岭布依族苗族自治县',409,1,0),(4419,'平坝县',409,1,0),(4420,'普定县',409,1,0),(4421,'紫云苗族布依族自治县',409,1,0),(4422,'西秀区',409,1,0),(4423,'镇宁布依族苗族自治县',409,1,0),(4424,'万山特区',410,1,0),(4425,'印江土家族苗族自治县',410,1,0),(4426,'德江县',410,1,0),(4427,'思南县',410,1,0),(4428,'松桃苗族自治县',410,1,0),(4429,'江口县',410,1,0),(4430,'沿河土家族自治县',410,1,0),(4431,'玉屏侗族自治县',410,1,0),(4432,'石阡县',410,1,0),(4433,'铜仁市',410,1,0),(4434,'兴义市',411,1,0),(4435,'兴仁县',411,1,0),(4436,'册亨县',411,1,0),(4437,'安龙县',411,1,0),(4438,'普安县',411,1,0),(4439,'晴隆县',411,1,0),(4440,'望谟县',411,1,0),(4441,'贞丰县',411,1,0),(4442,'大方县',412,1,0),(4443,'威宁彝族回族苗族自治县',412,1,0),(4444,'毕节市',412,1,0),(4445,'纳雍县',412,1,0),(4446,'织金县',412,1,0),(4447,'赫章县',412,1,0),(4448,'金沙县',412,1,0),(4449,'黔西县',412,1,0),(4450,'三穗县',413,1,0),(4451,'丹寨县',413,1,0),(4452,'从江县',413,1,0),(4453,'凯里市',413,1,0),(4454,'剑河县',413,1,0),(4455,'台江县',413,1,0),(4456,'天柱县',413,1,0),(4457,'岑巩县',413,1,0),(4458,'施秉县',413,1,0),(4459,'榕江县',413,1,0),(4460,'锦屏县',413,1,0),(4461,'镇远县',413,1,0),(4462,'雷山县',413,1,0),(4463,'麻江县',413,1,0),(4464,'黄平县',413,1,0),(4465,'黎平县',413,1,0),(4466,'三都水族自治县',414,1,0),(4467,'平塘县',414,1,0),(4468,'惠水县',414,1,0),(4469,'独山县',414,1,0),(4470,'瓮安县',414,1,0),(4471,'福泉市',414,1,0),(4472,'罗甸县',414,1,0),(4473,'荔波县',414,1,0),(4474,'贵定县',414,1,0),(4475,'都匀市',414,1,0),(4476,'长顺县',414,1,0),(4477,'龙里县',414,1,0),(4478,'东川区',415,1,0),(4479,'五华区',415,1,0),(4480,'呈贡县',415,1,0),(4481,'安宁市',415,1,0),(4482,'官渡区',415,1,0),(4483,'宜良县',415,1,0),(4484,'富民县',415,1,0),(4485,'寻甸回族彝族自治县',415,1,0),(4486,'嵩明县',415,1,0),(4487,'晋宁县',415,1,0),(4488,'盘龙区',415,1,0),(4489,'石林彝族自治县',415,1,0),(4490,'禄劝彝族苗族自治县',415,1,0),(4491,'西山区',415,1,0),(4492,'会泽县',416,1,0),(4493,'宣威市',416,1,0),(4494,'富源县',416,1,0),(4495,'师宗县',416,1,0),(4496,'沾益县',416,1,0),(4497,'罗平县',416,1,0),(4498,'陆良县',416,1,0),(4499,'马龙县',416,1,0),(4500,'麒麟区',416,1,0),(4501,'元江哈尼族彝族傣族自治县',417,1,0),(4502,'华宁县',417,1,0),(4503,'峨山彝族自治县',417,1,0),(4504,'新平彝族傣族自治县',417,1,0),(4505,'易门县',417,1,0),(4506,'江川县',417,1,0),(4507,'澄江县',417,1,0),(4508,'红塔区',417,1,0),(4509,'通海县',417,1,0),(4510,'施甸县',418,1,0),(4511,'昌宁县',418,1,0),(4512,'腾冲县',418,1,0),(4513,'隆阳区',418,1,0),(4514,'龙陵县',418,1,0),(4515,'大关县',419,1,0),(4516,'威信县',419,1,0),(4517,'巧家县',419,1,0),(4518,'彝良县',419,1,0),(4519,'昭阳区',419,1,0),(4520,'水富县',419,1,0),(4521,'永善县',419,1,0),(4522,'盐津县',419,1,0),(4523,'绥江县',419,1,0),(4524,'镇雄县',419,1,0),(4525,'鲁甸县',419,1,0),(4526,'华坪县',420,1,0),(4527,'古城区',420,1,0),(4528,'宁蒗彝族自治县',420,1,0),(4529,'永胜县',420,1,0),(4530,'玉龙纳西族自治县',420,1,0),(4531,'临翔区',422,1,0),(4532,'云县',422,1,0),(4533,'凤庆县',422,1,0),(4534,'双江拉祜族佤族布朗族傣族自治县',422,1,0),(4535,'永德县',422,1,0),(4536,'沧源佤族自治县',422,1,0),(4537,'耿马傣族佤族自治县',422,1,0),(4538,'镇康县',422,1,0),(4539,'元谋县',423,1,0),(4540,'南华县',423,1,0),(4541,'双柏县',423,1,0),(4542,'大姚县',423,1,0),(4543,'姚安县',423,1,0),(4544,'楚雄市',423,1,0),(4545,'武定县',423,1,0),(4546,'永仁县',423,1,0),(4547,'牟定县',423,1,0),(4548,'禄丰县',423,1,0),(4549,'个旧市',424,1,0),(4550,'元阳县',424,1,0),(4551,'屏边苗族自治县',424,1,0),(4552,'建水县',424,1,0),(4553,'开远市',424,1,0),(4554,'弥勒县',424,1,0),(4555,'河口瑶族自治县',424,1,0),(4556,'泸西县',424,1,0),(4557,'石屏县',424,1,0),(4558,'红河县',424,1,0),(4559,'绿春县',424,1,0),(4560,'蒙自县',424,1,0),(4561,'金平苗族瑶族傣族自治县',424,1,0),(4562,'丘北县',425,1,0),(4563,'富宁县',425,1,0),(4564,'广南县',425,1,0),(4565,'文山县',425,1,0),(4566,'砚山县',425,1,0),(4567,'西畴县',425,1,0),(4568,'马关县',425,1,0),(4569,'麻栗坡县',425,1,0),(4570,'勐海县',426,1,0),(4571,'勐腊县',426,1,0),(4572,'景洪市',426,1,0),(4573,'云龙县',427,1,0),(4574,'剑川县',427,1,0),(4575,'南涧彝族自治县',427,1,0),(4576,'大理市',427,1,0),(4577,'宾川县',427,1,0),(4578,'巍山彝族回族自治县',427,1,0),(4579,'弥渡县',427,1,0),(4580,'永平县',427,1,0),(4581,'洱源县',427,1,0),(4582,'漾濞彝族自治县',427,1,0),(4583,'祥云县',427,1,0),(4584,'鹤庆县',427,1,0),(4585,'梁河县',428,1,0),(4586,'潞西市',428,1,0),(4587,'瑞丽市',428,1,0),(4588,'盈江县',428,1,0),(4589,'陇川县',428,1,0),(4590,'德钦县',430,1,0),(4591,'维西傈僳族自治县',430,1,0),(4592,'香格里拉县',430,1,0),(4593,'城关区',431,1,0),(4594,'堆龙德庆县',431,1,0),(4595,'墨竹工卡县',431,1,0),(4596,'尼木县',431,1,0),(4597,'当雄县',431,1,0),(4598,'曲水县',431,1,0),(4599,'林周县',431,1,0),(4600,'达孜县',431,1,0),(4601,'丁青县',432,1,0),(4602,'八宿县',432,1,0),(4603,'察雅县',432,1,0),(4604,'左贡县',432,1,0),(4605,'昌都县',432,1,0),(4606,'江达县',432,1,0),(4607,'洛隆县',432,1,0),(4608,'类乌齐县',432,1,0),(4609,'芒康县',432,1,0),(4610,'贡觉县',432,1,0),(4611,'边坝县',432,1,0),(4612,'乃东县',433,1,0),(4613,'加查县',433,1,0),(4614,'扎囊县',433,1,0),(4615,'措美县',433,1,0),(4616,'曲松县',433,1,0),(4617,'桑日县',433,1,0),(4618,'洛扎县',433,1,0),(4619,'浪卡子县',433,1,0),(4620,'琼结县',433,1,0),(4621,'贡嘎县',433,1,0),(4622,'错那县',433,1,0),(4623,'隆子县',433,1,0),(4624,'亚东县',434,1,0),(4625,'仁布县',434,1,0),(4626,'仲巴县',434,1,0),(4627,'南木林县',434,1,0),(4628,'吉隆县',434,1,0),(4629,'定日县',434,1,0),(4630,'定结县',434,1,0),(4631,'岗巴县',434,1,0),(4632,'康马县',434,1,0),(4633,'拉孜县',434,1,0),(4634,'日喀则市',434,1,0),(4635,'昂仁县',434,1,0),(4636,'江孜县',434,1,0),(4637,'白朗县',434,1,0),(4638,'聂拉木县',434,1,0),(4639,'萨嘎县',434,1,0),(4640,'萨迦县',434,1,0),(4641,'谢通门县',434,1,0),(4642,'嘉黎县',435,1,0),(4643,'安多县',435,1,0),(4644,'尼玛县',435,1,0),(4645,'巴青县',435,1,0),(4646,'比如县',435,1,0),(4647,'班戈县',435,1,0),(4648,'申扎县',435,1,0),(4649,'索县',435,1,0),(4650,'聂荣县',435,1,0),(4651,'那曲县',435,1,0),(4652,'噶尔县',436,1,0),(4653,'措勤县',436,1,0),(4654,'改则县',436,1,0),(4655,'日土县',436,1,0),(4656,'普兰县',436,1,0),(4657,'札达县',436,1,0),(4658,'革吉县',436,1,0),(4659,'墨脱县',437,1,0),(4660,'察隅县',437,1,0),(4661,'工布江达县',437,1,0),(4662,'朗县',437,1,0),(4663,'林芝县',437,1,0),(4664,'波密县',437,1,0),(4665,'米林县',437,1,0),(4666,'临潼区',438,1,0),(4667,'周至县',438,1,0),(4668,'户县',438,1,0),(4669,'新城区',438,1,0),(4670,'未央区',438,1,0),(4671,'灞桥区',438,1,0),(4672,'碑林区',438,1,0),(4673,'莲湖区',438,1,0),(4674,'蓝田县',438,1,0),(4675,'长安区',438,1,0),(4676,'阎良区',438,1,0),(4677,'雁塔区',438,1,0),(4678,'高陵县',438,1,0),(4679,'印台区',439,1,0),(4680,'宜君县',439,1,0),(4681,'王益区',439,1,0),(4682,'耀州区',439,1,0),(4683,'凤县',440,1,0),(4684,'凤翔县',440,1,0),(4685,'千阳县',440,1,0),(4686,'太白县',440,1,0),(4687,'岐山县',440,1,0),(4688,'扶风县',440,1,0),(4689,'渭滨区',440,1,0),(4690,'眉县',440,1,0),(4691,'金台区',440,1,0),(4692,'陇县',440,1,0),(4693,'陈仓区',440,1,0),(4694,'麟游县',440,1,0),(4695,'三原县',441,1,0),(4696,'干县',441,1,0),(4697,'兴平市',441,1,0),(4698,'彬县',441,1,0),(4699,'旬邑县',441,1,0),(4700,'杨陵区',441,1,0),(4701,'武功县',441,1,0),(4702,'永寿县',441,1,0),(4703,'泾阳县',441,1,0),(4704,'淳化县',441,1,0),(4705,'渭城区',441,1,0),(4706,'礼泉县',441,1,0),(4707,'秦都区',441,1,0),(4708,'长武县',441,1,0),(4709,'临渭区',442,1,0),(4710,'华县',442,1,0),(4711,'华阴市',442,1,0),(4712,'合阳县',442,1,0),(4713,'大荔县',442,1,0),(4714,'富平县',442,1,0),(4715,'潼关县',442,1,0),(4716,'澄城县',442,1,0),(4717,'白水县',442,1,0),(4718,'蒲城县',442,1,0),(4719,'韩城市',442,1,0),(4720,'吴起县',443,1,0),(4721,'子长县',443,1,0),(4722,'安塞县',443,1,0),(4723,'宜川县',443,1,0),(4724,'宝塔区',443,1,0),(4725,'富县',443,1,0),(4726,'延川县',443,1,0),(4727,'延长县',443,1,0),(4728,'志丹县',443,1,0),(4729,'洛川县',443,1,0),(4730,'甘泉县',443,1,0),(4731,'黄陵县',443,1,0),(4732,'黄龙县',443,1,0),(4733,'佛坪县',444,1,0),(4734,'勉县',444,1,0),(4735,'南郑县',444,1,0),(4736,'城固县',444,1,0),(4737,'宁强县',444,1,0),(4738,'汉台区',444,1,0),(4739,'洋县',444,1,0),(4740,'留坝县',444,1,0),(4741,'略阳县',444,1,0),(4742,'西乡县',444,1,0),(4743,'镇巴县',444,1,0),(4744,'佳县',445,1,0),(4745,'吴堡县',445,1,0),(4746,'子洲县',445,1,0),(4747,'定边县',445,1,0),(4748,'府谷县',445,1,0),(4749,'榆林市榆阳区',445,1,0),(4750,'横山县',445,1,0),(4751,'清涧县',445,1,0),(4752,'神木县',445,1,0),(4753,'米脂县',445,1,0),(4754,'绥德县',445,1,0),(4755,'靖边县',445,1,0),(4756,'宁陕县',446,1,0),(4757,'岚皋县',446,1,0),(4758,'平利县',446,1,0),(4759,'旬阳县',446,1,0),(4760,'汉滨区',446,1,0),(4761,'汉阴县',446,1,0),(4762,'白河县',446,1,0),(4763,'石泉县',446,1,0),(4764,'紫阳县',446,1,0),(4765,'镇坪县',446,1,0),(4766,'丹凤县',447,1,0),(4767,'商南县',447,1,0),(4768,'商州区',447,1,0),(4769,'山阳县',447,1,0),(4770,'柞水县',447,1,0),(4771,'洛南县',447,1,0),(4772,'镇安县',447,1,0),(4773,'七里河区',448,1,0),(4774,'城关区',448,1,0),(4775,'安宁区',448,1,0),(4776,'榆中县',448,1,0),(4777,'永登县',448,1,0),(4778,'皋兰县',448,1,0),(4779,'红古区',448,1,0),(4780,'西固区',448,1,0),(4781,'嘉峪关市',449,1,0),(4782,'永昌县',450,1,0),(4783,'金川区',450,1,0),(4784,'会宁县',451,1,0),(4785,'平川区',451,1,0),(4786,'景泰县',451,1,0),(4787,'白银区',451,1,0),(4788,'靖远县',451,1,0),(4789,'张家川回族自治县',452,1,0),(4790,'武山县',452,1,0),(4791,'清水县',452,1,0),(4792,'甘谷县',452,1,0),(4793,'秦安县',452,1,0),(4794,'秦州区',452,1,0),(4795,'麦积区',452,1,0),(4796,'凉州区',453,1,0),(4797,'古浪县',453,1,0),(4798,'天祝藏族自治县',453,1,0),(4799,'民勤县',453,1,0),(4800,'临泽县',454,1,0),(4801,'山丹县',454,1,0),(4802,'民乐县',454,1,0),(4803,'甘州区',454,1,0),(4804,'肃南裕固族自治县',454,1,0),(4805,'高台县',454,1,0),(4806,'华亭县',455,1,0),(4807,'崆峒区',455,1,0),(4808,'崇信县',455,1,0),(4809,'庄浪县',455,1,0),(4810,'泾川县',455,1,0),(4811,'灵台县',455,1,0),(4812,'静宁县',455,1,0),(4813,'敦煌市',456,1,0),(4814,'玉门市',456,1,0),(4815,'瓜州县（原安西县）',456,1,0),(4816,'肃北蒙古族自治县',456,1,0),(4817,'肃州区',456,1,0),(4818,'金塔县',456,1,0),(4819,'阿克塞哈萨克族自治县',456,1,0),(4820,'华池县',457,1,0),(4821,'合水县',457,1,0),(4822,'宁县',457,1,0),(4823,'庆城县',457,1,0),(4824,'正宁县',457,1,0),(4825,'环县',457,1,0),(4826,'西峰区',457,1,0),(4827,'镇原县',457,1,0),(4828,'临洮县',458,1,0),(4829,'安定区',458,1,0),(4830,'岷县',458,1,0),(4831,'渭源县',458,1,0),(4832,'漳县',458,1,0),(4833,'通渭县',458,1,0),(4834,'陇西县',458,1,0),(4835,'两当县',459,1,0),(4836,'宕昌县',459,1,0),(4837,'康县',459,1,0),(4838,'徽县',459,1,0),(4839,'成县',459,1,0),(4840,'文县',459,1,0),(4841,'武都区',459,1,0),(4842,'礼县',459,1,0),(4843,'西和县',459,1,0),(4844,'东乡族自治县',460,1,0),(4845,'临夏县',460,1,0),(4846,'临夏市',460,1,0),(4847,'和政县',460,1,0),(4848,'广河县',460,1,0),(4849,'康乐县',460,1,0),(4850,'永靖县',460,1,0),(4851,'积石山保安族东乡族撒拉族自治县',460,1,0),(4852,'临潭县',461,1,0),(4853,'卓尼县',461,1,0),(4854,'合作市',461,1,0),(4855,'夏河县',461,1,0),(4856,'玛曲县',461,1,0),(4857,'碌曲县',461,1,0),(4858,'舟曲县',461,1,0),(4859,'迭部县',461,1,0),(4860,'城东区',462,1,0),(4861,'城中区',462,1,0),(4862,'城北区',462,1,0),(4863,'城西区',462,1,0),(4864,'大通回族土族自治县',462,1,0),(4865,'湟中县',462,1,0),(4866,'湟源县',462,1,0),(4867,'乐都县',463,1,0),(4868,'互助土族自治县',463,1,0),(4869,'化隆回族自治县',463,1,0),(4870,'平安县',463,1,0),(4871,'循化撒拉族自治县',463,1,0),(4872,'民和回族土族自治县',463,1,0),(4873,'刚察县',464,1,0),(4874,'海晏县',464,1,0),(4875,'祁连县',464,1,0),(4876,'门源回族自治县',464,1,0),(4877,'同仁县',465,1,0),(4878,'尖扎县',465,1,0),(4879,'河南蒙古族自治县',465,1,0),(4880,'泽库县',465,1,0),(4881,'共和县',466,1,0),(4882,'兴海县',466,1,0),(4883,'同德县',466,1,0),(4884,'贵南县',466,1,0),(4885,'贵德县',466,1,0),(4886,'久治县',467,1,0),(4887,'玛多县',467,1,0),(4888,'玛沁县',467,1,0),(4889,'班玛县',467,1,0),(4890,'甘德县',467,1,0),(4891,'达日县',467,1,0),(4892,'囊谦县',468,1,0),(4893,'曲麻莱县',468,1,0),(4894,'杂多县',468,1,0),(4895,'治多县',468,1,0),(4896,'玉树县',468,1,0),(4897,'称多县',468,1,0),(4898,'乌兰县',469,1,0),(4899,'冷湖行委',469,1,0),(4900,'大柴旦行委',469,1,0),(4901,'天峻县',469,1,0),(4902,'德令哈市',469,1,0),(4903,'格尔木市',469,1,0),(4904,'茫崖行委',469,1,0),(4905,'都兰县',469,1,0),(4906,'兴庆区',470,1,0),(4907,'永宁县',470,1,0),(4908,'灵武市',470,1,0),(4909,'西夏区',470,1,0),(4910,'贺兰县',470,1,0),(4911,'金凤区',470,1,0),(4912,'大武口区',471,1,0),(4913,'平罗县',471,1,0),(4914,'惠农区',471,1,0),(4915,'利通区',472,1,0),(4916,'同心县',472,1,0),(4917,'盐池县',472,1,0),(4918,'青铜峡市',472,1,0),(4919,'原州区',473,1,0),(4920,'彭阳县',473,1,0),(4921,'泾源县',473,1,0),(4922,'西吉县',473,1,0),(4923,'隆德县',473,1,0),(4924,'中宁县',474,1,0),(4925,'沙坡头区',474,1,0),(4926,'海原县',474,1,0),(4927,'东山区',475,1,0),(4928,'乌鲁木齐县',475,1,0),(4929,'天山区',475,1,0),(4930,'头屯河区',475,1,0),(4931,'新市区',475,1,0),(4932,'水磨沟区',475,1,0),(4933,'沙依巴克区',475,1,0),(4934,'达坂城区',475,1,0),(4935,'乌尔禾区',476,1,0),(4936,'克拉玛依区',476,1,0),(4937,'独山子区',476,1,0),(4938,'白碱滩区',476,1,0),(4939,'吐鲁番市',477,1,0),(4940,'托克逊县',477,1,0),(4941,'鄯善县',477,1,0),(4942,'伊吾县',478,1,0),(4943,'哈密市',478,1,0),(4944,'巴里坤哈萨克自治县',478,1,0),(4945,'吉木萨尔县',479,1,0),(4946,'呼图壁县',479,1,0),(4947,'奇台县',479,1,0),(4948,'昌吉市',479,1,0),(4949,'木垒哈萨克自治县',479,1,0),(4950,'玛纳斯县',479,1,0),(4951,'米泉市',479,1,0),(4952,'阜康市',479,1,0),(4953,'博乐市',480,1,0),(4954,'温泉县',480,1,0),(4955,'精河县',480,1,0),(4956,'博湖县',481,1,0),(4957,'和硕县',481,1,0),(4958,'和静县',481,1,0),(4959,'尉犁县',481,1,0),(4960,'库尔勒市',481,1,0),(4961,'焉耆回族自治县',481,1,0),(4962,'若羌县',481,1,0),(4963,'轮台县',481,1,0),(4964,'乌什县',482,1,0),(4965,'库车县',482,1,0),(4966,'拜城县',482,1,0),(4967,'新和县',482,1,0),(4968,'柯坪县',482,1,0),(4969,'沙雅县',482,1,0),(4970,'温宿县',482,1,0),(4971,'阿克苏市',482,1,0),(4972,'阿瓦提县',482,1,0),(4973,'乌恰县',483,1,0),(4974,'阿克陶县',483,1,0),(4975,'阿合奇县',483,1,0),(4976,'阿图什市',483,1,0),(4977,'伽师县',484,1,0),(4978,'叶城县',484,1,0),(4979,'喀什市',484,1,0),(4980,'塔什库尔干塔吉克自治县',484,1,0),(4981,'岳普湖县',484,1,0),(4982,'巴楚县',484,1,0),(4983,'泽普县',484,1,0),(4984,'疏勒县',484,1,0),(4985,'疏附县',484,1,0),(4986,'英吉沙县',484,1,0),(4987,'莎车县',484,1,0),(4988,'麦盖提县',484,1,0),(4989,'于田县',485,1,0),(4990,'和田县',485,1,0),(4991,'和田市',485,1,0),(4992,'墨玉县',485,1,0),(4993,'民丰县',485,1,0),(4994,'洛浦县',485,1,0),(4995,'皮山县',485,1,0),(4996,'策勒县',485,1,0),(4997,'伊宁县',486,1,0),(4998,'伊宁市',486,1,0),(4999,'奎屯市',486,1,0),(5000,'察布查尔锡伯自治县',486,1,0),(5001,'尼勒克县',486,1,0),(5002,'巩留县',486,1,0),(5003,'新源县',486,1,0),(5004,'昭苏县',486,1,0),(5005,'特克斯县',486,1,0),(5006,'霍城县',486,1,0),(5007,'乌苏市',487,1,0),(5008,'和布克赛尔蒙古自治县',487,1,0),(5009,'塔城市',487,1,0),(5010,'托里县',487,1,0),(5011,'沙湾县',487,1,0),(5012,'裕民县',487,1,0),(5013,'额敏县',487,1,0),(5014,'吉木乃县',488,1,0),(5015,'哈巴河县',488,1,0),(5016,'富蕴县',488,1,0),(5017,'布尔津县',488,1,0),(5018,'福海县',488,1,0),(5019,'阿勒泰市',488,1,0),(5020,'青河县',488,1,0),(5021,'石河子市',489,1,0),(5022,'阿拉尔市',490,1,0),(5023,'图木舒克市',491,1,0),(5024,'五家渠市',492,1,0);
  
  /*Table structure for table `authassignment` */
  
  DROP TABLE IF EXISTS `authassignment`;
  
  CREATE TABLE `authassignment` (
    `item_name` varchar(64) NOT NULL,
    `user_id` varchar(64) NOT NULL,
    `created_at` int(11) DEFAULT NULL,
    PRIMARY KEY (`item_name`,`user_id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  /*Data for the table `authassignment` */
  
  /*Table structure for table `authitem` */
  
  DROP TABLE IF EXISTS `authitem`;
  
  CREATE TABLE `authitem` (
    `name` varchar(64) NOT NULL,
    `type` int(11) NOT NULL,
    `description` text,
    `rule_name` varchar(64) DEFAULT NULL,
    `data` text,
    `created_at` int(11) DEFAULT NULL,
    `updated_at` int(11) DEFAULT NULL,
    PRIMARY KEY (`name`),
    KEY `rule_name` (`rule_name`),
    KEY `type` (`type`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  /*Data for the table `authitem` */
  
  /*Table structure for table `authitemchild` */
  
  DROP TABLE IF EXISTS `authitemchild`;
  
  CREATE TABLE `authitemchild` (
    `parent` varchar(64) NOT NULL,
    `child` varchar(64) NOT NULL,
    PRIMARY KEY (`parent`,`child`),
    KEY `child` (`child`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  /*Data for the table `authitemchild` */
  
  /*Table structure for table `authrule` */
  
  DROP TABLE IF EXISTS `authrule`;
  
  CREATE TABLE `authrule` (
    `name` varchar(64) NOT NULL,
    `data` text,
    `created_at` int(11) DEFAULT NULL,
    `updated_at` int(11) DEFAULT NULL,
    PRIMARY KEY (`name`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  /*Data for the table `authrule` */
  
  /*Table structure for table `businessall` */
  
  DROP TABLE IF EXISTS `businessall`;
  
  CREATE TABLE `businessall` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `business_id` int(11) NOT NULL COMMENT '业务ID',
    `business_type` varchar(100) NOT NULL COMMENT '业务类型',
    `department_id` int(11) NOT NULL COMMENT '部门ID',
    `warehouse_id` int(11) DEFAULT NULL COMMENT '仓库ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) DEFAULT '0' COMMENT '审核人',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT '0' COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) DEFAULT NULL COMMENT '完成人',
    `operation_time` datetime DEFAULT NULL COMMENT 'Íê³ÉÊ±¼ä',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `config_id` int(11) NOT NULL DEFAULT '0',
    `is_complete` tinyint(2) NOT NULL DEFAULT '0' COMMENT '是否完成 0 未完成 1 已完成',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=87 DEFAULT CHARSET=utf8 COMMENT='所有流程历史表';
  
  /*Data for the table `businessall` */
  
  insert  into `businessall`(`id`,`business_id`,`business_type`,`department_id`,`warehouse_id`,`name`,`sn`,`create_admin_id`,`verify_admin_id`,`verify_time`,`approval_admin_id`,`approval_time`,`operation_admin_id`,`operation_time`,`status`,`create_time`,`config_id`,`is_complete`) values (1,3,'11',0,0,'老鼠肉','Wulsjlr20170207004',1,5,'2017-02-07 15:54:28',4,'2017-02-07 15:54:30',7,'2017-02-07 15:54:33',3,'2017-02-07 15:54:13',0,1),(2,2,'11',0,0,'蛇肉','Wulsjlr20170207004',1,5,'2017-02-07 15:54:45',4,'2017-02-07 15:54:49',7,'2017-02-07 15:54:51',3,'2017-02-07 15:54:11',0,1),(3,1,'11',0,0,'鸡肉','Wulsjlr20170207004',1,5,'2017-02-07 15:55:03',4,'2017-02-07 15:55:06',7,'2017-02-07 15:55:08',3,'2017-02-07 15:54:08',0,1),(4,1,'1',1,1,'仓库盘点','Caig20170207001',1,1,'2017-02-07 15:57:53',1,'2017-02-07 15:57:56',1,'2017-02-07 15:57:58',3,'2017-02-07 15:56:11',0,1),(5,2,'1',2,2,'部门盘点','Caig20170207002',1,1,'2017-02-07 15:57:29',1,'2017-02-07 15:57:32',1,'2017-02-07 15:57:34',3,'2017-02-07 15:56:41',0,1),(6,3,'1',2,3,'总盘点','Caig20170207003',1,1,'2017-02-07 15:57:19',1,'2017-02-07 15:57:22',1,'2017-02-07 15:57:24',3,'2017-02-07 15:57:15',0,1),(7,1,'2',2,3,'总盘点','Dingdxd20170207001',1,1,'2017-02-07 15:58:31',1,'2017-02-07 15:58:33',1,'2017-02-07 15:58:35',3,'2017-02-07 15:57:24',0,1),(8,2,'2',2,2,'部门盘点','Dingdxd20170207002',1,1,'2017-02-07 15:58:18',1,'2017-02-07 15:58:21',1,'2017-02-07 15:58:24',3,'2017-02-07 15:57:34',0,1),(9,3,'2',1,1,'仓库盘点','Dingdxd20170207003',1,1,'2017-02-07 15:58:07',1,'2017-02-07 15:58:10',1,'2017-02-07 15:58:12',3,'2017-02-07 15:57:58',0,1),(10,1,'3',1,1,'仓库盘点','Ruk20170207001',1,1,'2017-02-07 15:59:11',1,'2017-02-07 15:59:14',1,'2017-02-07 15:59:17',3,'2017-02-07 15:58:12',0,0),(11,1,'12',1,1,'仓库盘点','Zhif20170207001',1,5,NULL,4,NULL,7,NULL,0,'2017-02-07 15:58:12',0,0),(12,2,'3',2,2,'部门盘点','Ruk20170207002',1,1,'2017-02-07 15:59:01',1,'2017-02-07 15:59:04',1,'2017-02-07 15:59:06',3,'2017-02-07 15:58:24',0,0),(13,2,'12',2,2,'部门盘点','Zhif20170207002',1,5,NULL,4,NULL,7,NULL,0,'2017-02-07 15:58:24',0,0),(14,3,'3',2,3,'总盘点','Ruk20170207003',1,1,'2017-02-07 15:58:43',1,'2017-02-07 15:58:50',1,'2017-02-07 15:58:56',3,'2017-02-07 15:58:35',0,1),(15,3,'12',2,3,'总盘点','Zhif20170207003',1,1,'2017-02-07 16:23:33',1,'2017-02-07 16:23:37',1,'2017-02-07 16:23:39',3,'2017-02-07 15:58:35',0,1),(16,1,'20',1,1,'仓库盘点','Pandjh20170207001',1,1,'2017-02-08 09:50:37',1,'2017-02-07 15:59:42',1,'2017-02-07 15:59:44',99,'2017-02-07 15:59:34',0,1),(17,2,'18',0,0,'总盘点','Pandjh20170207002',1,1,'2017-02-08 09:50:37',1,'2017-02-07 16:06:51',1,'2017-02-07 16:06:54',99,'2017-02-07 16:06:42',0,1),(18,3,'19',1,0,'部门盘点','Pandjh20170207003',1,1,'2017-02-08 09:50:37',1,'2017-02-07 16:10:53',1,'2017-02-07 16:10:56',99,'2017-02-07 16:10:47',0,1),(19,1,'9',1,1,'耗损申请','Haos20170207001',1,1,'2017-02-07 16:23:14',4,NULL,7,'2017-02-07 16:23:07',1,'2017-02-07 16:23:07',0,1),(20,3,'5',1,1,'1','Chuk20170207001',1,5,NULL,4,NULL,7,'2017-02-07 16:34:41',0,'2017-02-07 16:34:41',0,1),(21,4,'4',1,1,'1','Tuic20170207001',1,5,NULL,4,NULL,7,NULL,0,'2017-02-07 16:36:49',0,1),(22,4,'1',1,1,'定时任务测试1','Caig20170207004',1,1,'2017-02-08 18:00:55',1,'2017-02-08 18:00:57',1,'2017-02-08 18:00:59',3,'2017-02-07 17:18:24',0,0),(23,5,'1',1,1,'定时2','Caig20170207005',1,1,'2017-02-08 18:00:45',1,'2017-02-08 18:00:47',1,'2017-02-08 18:00:50',3,'2017-02-07 17:18:50',0,0),(24,4,'5',1,1,'定时1','Chuk20170207002',1,5,NULL,4,NULL,7,'2017-02-07 17:19:20',0,'2017-02-07 17:19:20',0,1),(25,5,'5',1,1,'定时2','Chuk20170207003',1,5,NULL,4,NULL,7,'2017-02-07 17:19:36',0,'2017-02-07 17:19:36',0,1),(26,1,'7',1,1,'调仓2','Diaoc20170207001',1,5,NULL,4,NULL,7,'2017-02-07 17:19:56',0,'2017-02-07 17:19:56',0,1),(27,2,'7',1,1,'调仓2','Diaoc20170207002',1,5,NULL,4,NULL,7,'2017-02-07 17:20:09',0,'2017-02-07 17:20:09',0,1),(28,3,'7',1,1,'调仓3','Diaoc20170207003',1,5,NULL,4,NULL,7,'2017-02-07 17:20:34',0,'2017-02-07 17:20:34',0,1),(29,5,'4',1,1,'退仓1','Tuic20170207002',1,5,NULL,4,NULL,7,NULL,0,'2017-02-07 17:21:45',0,1),(30,6,'20',1,1,'盘点打印','Pandjh20170208001',1,1,'2017-02-13 14:49:46',4,NULL,7,NULL,99,'2017-02-08 17:47:11',0,1),(31,7,'20',2,2,'盘点打印2','Pandjh20170208002',1,1,'2017-02-13 14:49:46',4,NULL,7,NULL,99,'2017-02-08 17:48:10',0,1),(32,8,'20',2,3,'盘点打印3','Pandjh20170208003',1,1,'2017-02-13 14:49:46',4,NULL,7,NULL,99,'2017-02-08 17:48:25',0,1),(33,9,'20',1,1,'盘点打印4','Pandjh20170208004',1,1,'2017-02-13 14:49:46',1,'2017-02-08 17:48:50',1,'2017-02-08 17:48:53',99,'2017-02-08 17:48:39',0,1),(34,20,'11',0,0,'桌子','Wulsjlr20170208018',1,5,'2017-02-08 17:52:44',4,'2017-02-08 17:52:47',7,'2017-02-08 17:52:49',3,'2017-02-08 17:52:29',0,1),(35,19,'11',0,0,'椅子','Wulsjlr20170208018',1,5,'2017-02-08 17:53:00',4,'2017-02-08 17:53:02',7,'2017-02-08 17:53:04',3,'2017-02-08 17:52:28',0,1),(36,18,'11',0,0,'橱柜','Wulsjlr20170208018',1,5,'2017-02-08 17:53:16',4,'2017-02-08 17:53:18',7,'2017-02-08 17:53:21',3,'2017-02-08 17:52:25',0,1),(37,17,'11',0,0,'办公桌','Wulsjlr20170208018',1,5,'2017-02-08 17:53:32',4,'2017-02-08 17:53:35',7,'2017-02-08 17:53:41',3,'2017-02-08 17:52:24',0,1),(38,16,'11',0,0,'轮椅','Wulsjlr20170208018',1,5,'2017-02-08 17:53:53',4,'2017-02-08 17:53:56',7,'2017-02-08 17:53:58',3,'2017-02-08 17:52:23',0,1),(39,15,'11',0,0,'海鱼','Wulsjlr20170208018',1,5,'2017-02-08 17:54:11',4,'2017-02-08 17:54:13',7,'2017-02-08 17:54:16',3,'2017-02-08 17:52:21',0,1),(40,14,'11',0,0,'海虾','Wulsjlr20170208018',1,5,'2017-02-08 17:54:31',4,'2017-02-08 17:54:33',7,'2017-02-08 17:54:36',3,'2017-02-08 17:52:19',0,1),(41,13,'11',0,0,'海马','Wulsjlr20170208018',1,5,'2017-02-08 17:54:48',4,'2017-02-08 17:54:52',7,'2017-02-08 17:54:55',3,'2017-02-08 17:52:17',0,1),(42,12,'11',0,0,'海龟','Wulsjlr20170208018',1,5,'2017-02-08 17:55:08',4,'2017-02-08 17:55:10',7,'2017-02-08 17:55:13',3,'2017-02-08 17:52:15',0,1),(43,11,'11',0,0,'海章鱼','Wulsjlr20170208018',1,5,'2017-02-08 17:55:26',4,'2017-02-08 17:55:29',7,'2017-02-08 17:55:31',3,'2017-02-08 17:52:13',0,1),(44,10,'11',0,0,'毛巾','Wulsjlr20170208018',1,5,'2017-02-08 17:55:45',4,'2017-02-08 17:55:48',7,'2017-02-08 17:55:51',3,'2017-02-08 17:52:11',0,1),(45,9,'11',0,0,'牙刷','Wulsjlr20170208018',1,5,'2017-02-08 17:56:04',4,'2017-02-08 17:56:06',7,'2017-02-08 17:56:09',3,'2017-02-08 17:52:10',0,1),(46,8,'11',0,0,'茶缸','Wulsjlr20170208018',1,5,'2017-02-08 17:56:24',4,'2017-02-08 17:56:26',7,'2017-02-08 17:56:28',3,'2017-02-08 17:52:07',0,1),(47,7,'11',0,0,'杯子','Wulsjlr20170208018',1,5,'2017-02-08 17:56:39',4,'2017-02-08 17:56:42',7,'2017-02-08 17:56:45',3,'2017-02-08 17:52:06',0,1),(48,6,'11',0,0,'小刀','Wulsjlr20170208018',1,5,'2017-02-08 17:56:57',4,'2017-02-08 17:57:00',7,'2017-02-08 17:57:03',3,'2017-02-08 17:52:04',0,1),(49,5,'11',0,0,'猫肉','Wulsjlr20170208018',1,5,'2017-02-08 17:57:15',4,'2017-02-08 17:57:18',7,'2017-02-08 17:57:21',3,'2017-02-08 17:52:02',0,1),(50,4,'11',0,0,'狗肉','Wulsjlr20170208018',1,5,'2017-02-08 17:57:33',4,'2017-02-08 17:57:35',7,'2017-02-08 17:57:37',3,'2017-02-08 17:52:00',0,1),(51,8,'1',1,1,'库存','Caig20170208001',1,1,'2017-02-08 18:00:35',1,'2017-02-08 18:00:37',1,'2017-02-08 18:00:40',3,'2017-02-08 17:58:06',0,1),(52,9,'1',2,2,'库存','Caig20170208002',1,1,'2017-02-08 18:00:25',1,'2017-02-08 18:00:27',1,'2017-02-08 18:00:30',3,'2017-02-08 17:58:29',0,1),(53,10,'1',2,3,'库存','Caig20170208003',1,1,'2017-02-08 18:00:16',1,'2017-02-08 18:00:18',1,'2017-02-08 18:00:20',3,'2017-02-08 17:58:56',0,1),(54,11,'1',2,3,'库存','Caig20170208004',1,1,'2017-02-08 18:00:04',1,'2017-02-08 18:00:06',1,'2017-02-08 18:00:09',3,'2017-02-08 17:59:20',0,1),(55,4,'2',2,3,'库存','Dingdxd20170208001',1,1,'2017-02-08 18:01:21',1,'2017-02-08 18:01:23',1,'2017-02-08 18:01:53',3,'2017-02-08 18:00:09',0,1),(56,5,'2',2,3,'库存','Dingdxd20170208002',1,1,'2017-02-08 18:02:00',1,'2017-02-08 18:02:02',1,'2017-02-08 18:02:05',3,'2017-02-08 18:00:20',0,1),(57,6,'2',2,2,'库存','Dingdxd20170208003',1,1,'2017-02-08 18:02:10',1,'2017-02-08 18:02:12',1,'2017-02-08 18:02:15',3,'2017-02-08 18:00:30',0,1),(58,7,'2',1,1,'库存','Dingdxd20170208004',1,1,'2017-02-08 18:02:21',1,'2017-02-08 18:02:23',1,'2017-02-08 18:02:25',3,'2017-02-08 18:00:40',0,1),(59,8,'2',1,1,'定时2','Dingdxd20170208005',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:00:50',0,0),(60,9,'2',1,1,'定时任务测试1','Dingdxd20170208006',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:00:59',0,0),(63,6,'3',2,3,'库存','Ruk20170208001',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:01:53',0,0),(64,6,'12',2,3,'库存','Zhif20170208001',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:01:53',0,0),(65,7,'3',2,3,'库存','Ruk20170208002',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:02:04',0,0),(66,7,'12',2,3,'库存','Zhif20170208002',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:02:04',0,0),(67,8,'3',2,2,'库存','Ruk20170208003',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:02:15',0,0),(68,8,'12',2,2,'库存','Zhif20170208003',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:02:15',0,0),(69,9,'3',1,1,'库存','Ruk20170208004',1,1,'2017-02-08 18:02:35',1,'2017-02-08 18:02:38',7,NULL,2,'2017-02-08 18:02:25',0,0),(70,9,'12',1,1,'库存','Zhif20170208004',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:02:25',0,0),(71,12,'1',1,1,'152','Caig20170209001',1,1,'2017-02-09 14:46:00',4,'2017-02-09 14:44:59',7,'2017-02-09 14:44:59',10,'2017-02-09 14:44:59',0,1),(72,11,'28',0,0,'1321','ZZDD20170222001',1,NULL,NULL,NULL,NULL,1,NULL,1,'2017-02-22 00:00:00',0,0),(73,12,'28',0,0,'321','ZZDD20170222001',1,NULL,NULL,NULL,NULL,1,NULL,1,'2017-02-22 00:00:00',0,0),(74,13,'28',0,0,'123wode','ZZDD20170222003',1,NULL,NULL,NULL,NULL,1,NULL,1,'2017-02-22 00:00:00',0,0),(75,14,'28',0,0,'132','ZZDD20170222004',1,NULL,NULL,NULL,NULL,1,NULL,0,'2017-02-22 00:00:00',0,0),(83,23,'28',0,0,'321','ZZDD20170223002',1,NULL,NULL,NULL,NULL,1,NULL,0,'2017-02-23 00:00:00',0,0),(84,24,'28',0,0,'321wode','ZZDD20170223003',1,NULL,NULL,NULL,NULL,2,NULL,0,'2017-02-23 00:00:00',0,0),(85,25,'28',0,0,'321','ZZDD20170223004',1,NULL,NULL,NULL,NULL,1,NULL,0,'2017-02-24 00:00:00',0,0),(86,26,'28',0,0,'我爱你','ZZDD20170223004',2,NULL,NULL,NULL,NULL,2,NULL,0,'2017-02-23 00:00:00',0,0);
  
  /*Table structure for table `businesslog` */
  
  DROP TABLE IF EXISTS `businesslog`;
  
  CREATE TABLE `businesslog` (
    `id` int(11) NOT NULL,
    `business_id` int(11) NOT NULL COMMENT '业务ID',
    `business_type` varchar(40) NOT NULL COMMENT '业务类型 对应表名',
    `content` varchar(1000) NOT NULL COMMENT '操作内容',
    `status` tinyint(1) NOT NULL COMMENT '0 无效 1有效 99删除',
    `create_time` datetime NOT NULL COMMENT '创建时间',
    `admin_id` int(11) NOT NULL COMMENT '操作人用户ID'
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='业务日志表';
  
  /*Data for the table `businesslog` */
  
  /*Table structure for table `businessremind` */
  
  DROP TABLE IF EXISTS `businessremind`;
  
  CREATE TABLE `businessremind` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `business_id` int(11) NOT NULL COMMENT '业务ID',
    `business_type` varchar(40) NOT NULL COMMENT '业务类型',
    `business_state` tinyint(2) NOT NULL DEFAULT '0' COMMENT '业务状态',
    `status` tinyint(1) NOT NULL COMMENT '0 无效 1有效 99删除',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `admin_id` int(11) NOT NULL COMMENT '接受人用户ID',
    `content` varchar(255) DEFAULT NULL COMMENT '提醒内容',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=174 DEFAULT CHARSET=utf8 COMMENT='业务流程表';
  
  /*Data for the table `businessremind` */
  
  insert  into `businessremind`(`id`,`business_id`,`business_type`,`business_state`,`status`,`create_time`,`admin_id`,`content`) values (1,3,'product',0,1,'2017-02-07 15:54:24',5,'老鼠肉需要您的审核'),(2,3,'product',1,1,'2017-02-07 15:54:28',4,'老鼠肉需要您的批准'),(3,3,'product',2,1,'2017-02-07 15:54:30',7,'老鼠肉需要您的执行'),(4,2,'product',0,1,'2017-02-07 15:54:42',5,'蛇肉需要您的审核'),(5,2,'product',1,1,'2017-02-07 15:54:45',4,'蛇肉需要您的批准'),(6,2,'product',2,1,'2017-02-07 15:54:49',7,'蛇肉需要您的执行'),(7,1,'product',0,1,'2017-02-07 15:55:01',5,'鸡肉需要您的审核'),(8,1,'product',1,1,'2017-02-07 15:55:03',4,'鸡肉需要您的批准'),(9,1,'product',2,1,'2017-02-07 15:55:06',7,'鸡肉需要您的执行'),(10,1,'wplanning',0,1,'2017-02-07 15:56:11',5,'仓库盘点需要您的审核'),(11,2,'wplanning',0,1,'2017-02-07 15:56:41',5,'部门盘点需要您的审核'),(12,3,'wplanning',0,1,'2017-02-07 15:57:15',5,'总盘点需要您的审核'),(13,3,'wplanning',1,1,'2017-02-07 15:57:19',4,'总盘点需要您的批准'),(14,3,'wplanning',2,1,'2017-02-07 15:57:22',7,'总盘点需要您的批准'),(15,1,'wprocurement',0,1,'2017-02-07 15:57:24',5,'总盘点需要您的审核'),(16,2,'wplanning',1,1,'2017-02-07 15:57:29',4,'部门盘点需要您的批准'),(17,2,'wplanning',2,1,'2017-02-07 15:57:32',7,'部门盘点需要您的批准'),(18,2,'wprocurement',0,1,'2017-02-07 15:57:34',5,'部门盘点需要您的审核'),(19,1,'wplanning',1,1,'2017-02-07 15:57:53',4,'仓库盘点需要您的批准'),(20,1,'wplanning',2,1,'2017-02-07 15:57:56',7,'仓库盘点需要您的批准'),(21,3,'wprocurement',0,1,'2017-02-07 15:57:58',5,'仓库盘点需要您的审核'),(22,3,'wprocurement',1,1,'2017-02-07 15:58:07',4,'仓库盘点需要您的批准'),(23,3,'wprocurement',2,1,'2017-02-07 15:58:10',7,'仓库盘点需要您的批准'),(24,1,'wbuying',0,1,'2017-02-07 15:58:12',5,'仓库盘点需要您的审核'),(25,1,'oprocurement',0,0,'2017-02-07 15:58:12',5,'仓库盘点需要您的审核'),(26,2,'wprocurement',1,1,'2017-02-07 15:58:18',4,'部门盘点需要您的批准'),(27,2,'wprocurement',2,1,'2017-02-07 15:58:21',7,'部门盘点需要您的批准'),(28,2,'wbuying',0,1,'2017-02-07 15:58:24',5,'部门盘点需要您的审核'),(29,2,'oprocurement',0,0,'2017-02-07 15:58:24',5,'部门盘点需要您的审核'),(30,1,'wprocurement',1,1,'2017-02-07 15:58:31',4,'总盘点需要您的批准'),(31,1,'wprocurement',2,1,'2017-02-07 15:58:33',7,'总盘点需要您的批准'),(32,3,'wbuying',0,1,'2017-02-07 15:58:35',5,'总盘点需要您的审核'),(33,3,'oprocurement',0,1,'2017-02-07 15:58:35',5,'总盘点需要您的审核'),(34,3,'wbuying',1,1,'2017-02-07 15:58:43',4,'总盘点需要您的批准'),(35,3,'wbuying',2,1,'2017-02-07 15:58:50',7,'总盘点需要您的批准'),(36,2,'wbuying',1,1,'2017-02-07 15:59:01',4,'部门盘点需要您的批准'),(37,2,'wbuying',2,1,'2017-02-07 15:59:04',7,'部门盘点需要您的批准'),(38,1,'wbuying',1,1,'2017-02-07 15:59:11',4,'仓库盘点需要您的批准'),(39,1,'wbuying',2,1,'2017-02-07 15:59:14',7,'仓库盘点需要您的批准'),(40,1,'warehousecheckplanning',0,1,'2017-02-07 15:59:34',5,'仓库盘点需要您的审核'),(41,1,'warehousecheckplanning',1,1,'2017-02-07 15:59:39',4,'仓库盘点需要您的批准'),(42,1,'warehousecheckplanning',2,1,'2017-02-07 15:59:42',7,'仓库盘点需要您的批准'),(43,2,'checkplanning',0,1,'2017-02-07 16:06:42',5,'总盘点需要您的审核'),(44,2,'checkplanning',1,1,'2017-02-07 16:06:48',4,'总盘点需要您的批准'),(45,2,'checkplanning',2,1,'2017-02-07 16:06:51',7,'总盘点需要您的批准'),(46,3,'departmentcheckplanning',0,1,'2017-02-07 16:10:47',5,'部门盘点需要您的审核'),(47,3,'departmentcheckplanning',1,1,'2017-02-07 16:10:51',4,'部门盘点需要您的批准'),(48,3,'departmentcheckplanning',2,1,'2017-02-07 16:10:53',7,'部门盘点需要您的批准'),(49,1,'wwastage',0,1,'2017-02-07 16:23:08',5,'耗损申请需要您的审核'),(50,1,'wwastage',1,0,'2017-02-07 16:23:14',4,'耗损申请需要您的批准'),(51,3,'oprocurement',1,1,'2017-02-07 16:23:33',4,'总盘点需要您的批准'),(52,3,'oprocurement',2,1,'2017-02-07 16:23:37',7,'总盘点需要您的批准'),(53,3,'wcheckout',0,0,'2017-02-07 16:34:41',5,'1需要您的审核'),(54,4,'wback',0,0,'2017-02-07 16:36:49',5,'1需要您的审核'),(55,4,'wplanning',0,1,'2017-02-07 17:18:24',5,'定时任务测试1需要您的审核'),(56,5,'wplanning',0,1,'2017-02-07 17:18:50',5,'定时2需要您的审核'),(57,4,'wcheckout',0,0,'2017-02-07 17:19:20',5,'定时1需要您的审核'),(58,5,'wcheckout',0,0,'2017-02-07 17:19:36',5,'定时2需要您的审核'),(59,1,'wtransfer',0,0,'2017-02-07 17:19:56',5,'调仓2需要您的审核'),(60,2,'wtransfer',0,0,'2017-02-07 17:20:10',5,'调仓2需要您的审核'),(61,3,'wtransfer',0,0,'2017-02-07 17:20:34',5,'调仓3需要您的审核'),(62,5,'wback',0,0,'2017-02-07 17:21:45',5,'退仓1需要您的审核'),(63,6,'warehousecheckplanning',0,1,'2017-02-08 17:47:11',5,'盘点打印需要您的审核'),(64,7,'warehousecheckplanning',0,1,'2017-02-08 17:48:10',5,'盘点打印2需要您的审核'),(65,8,'warehousecheckplanning',0,1,'2017-02-08 17:48:25',5,'盘点打印3需要您的审核'),(66,9,'warehousecheckplanning',0,1,'2017-02-08 17:48:39',5,'盘点打印4需要您的审核'),(67,9,'warehousecheckplanning',1,1,'2017-02-08 17:48:46',4,'盘点打印4需要您的批准'),(68,9,'warehousecheckplanning',2,1,'2017-02-08 17:48:50',7,'盘点打印4需要您的批准'),(69,20,'product',0,1,'2017-02-08 17:52:42',5,'桌子需要您的审核'),(70,20,'product',1,1,'2017-02-08 17:52:44',4,'桌子需要您的批准'),(71,20,'product',2,1,'2017-02-08 17:52:47',7,'桌子需要您的执行'),(72,19,'product',0,1,'2017-02-08 17:52:57',5,'椅子需要您的审核'),(73,19,'product',1,1,'2017-02-08 17:53:00',4,'椅子需要您的批准'),(74,19,'product',2,1,'2017-02-08 17:53:02',7,'椅子需要您的执行'),(75,18,'product',0,1,'2017-02-08 17:53:13',5,'橱柜需要您的审核'),(76,18,'product',1,1,'2017-02-08 17:53:16',4,'橱柜需要您的批准'),(77,18,'product',2,1,'2017-02-08 17:53:18',7,'橱柜需要您的执行'),(78,17,'product',0,1,'2017-02-08 17:53:30',5,'办公桌需要您的审核'),(79,17,'product',1,1,'2017-02-08 17:53:32',4,'办公桌需要您的批准'),(80,17,'product',2,1,'2017-02-08 17:53:35',7,'办公桌需要您的执行'),(81,16,'product',0,1,'2017-02-08 17:53:50',5,'轮椅需要您的审核'),(82,16,'product',1,1,'2017-02-08 17:53:53',4,'轮椅需要您的批准'),(83,16,'product',2,1,'2017-02-08 17:53:56',7,'轮椅需要您的执行'),(84,15,'product',0,1,'2017-02-08 17:54:08',5,'海鱼需要您的审核'),(85,15,'product',1,1,'2017-02-08 17:54:11',4,'海鱼需要您的批准'),(86,15,'product',2,1,'2017-02-08 17:54:13',7,'海鱼需要您的执行'),(87,14,'product',0,1,'2017-02-08 17:54:28',5,'海虾需要您的审核'),(88,14,'product',1,1,'2017-02-08 17:54:31',4,'海虾需要您的批准'),(89,14,'product',2,1,'2017-02-08 17:54:33',7,'海虾需要您的执行'),(90,13,'product',0,1,'2017-02-08 17:54:46',5,'海马需要您的审核'),(91,13,'product',1,1,'2017-02-08 17:54:48',4,'海马需要您的批准'),(92,13,'product',2,1,'2017-02-08 17:54:52',7,'海马需要您的执行'),(93,12,'product',0,1,'2017-02-08 17:55:04',5,'海龟需要您的审核'),(94,12,'product',1,1,'2017-02-08 17:55:08',4,'海龟需要您的批准'),(95,12,'product',2,1,'2017-02-08 17:55:10',7,'海龟需要您的执行'),(96,11,'product',0,1,'2017-02-08 17:55:23',5,'海章鱼需要您的审核'),(97,11,'product',1,1,'2017-02-08 17:55:26',4,'海章鱼需要您的批准'),(98,11,'product',2,1,'2017-02-08 17:55:29',7,'海章鱼需要您的执行'),(99,10,'product',0,1,'2017-02-08 17:55:43',5,'毛巾需要您的审核'),(100,10,'product',1,1,'2017-02-08 17:55:45',4,'毛巾需要您的批准'),(101,10,'product',2,1,'2017-02-08 17:55:48',7,'毛巾需要您的执行'),(102,9,'product',0,1,'2017-02-08 17:56:01',5,'牙刷需要您的审核'),(103,9,'product',1,1,'2017-02-08 17:56:04',4,'牙刷需要您的批准'),(104,9,'product',2,1,'2017-02-08 17:56:06',7,'牙刷需要您的执行'),(105,8,'product',0,1,'2017-02-08 17:56:21',5,'茶缸需要您的审核'),(106,8,'product',1,1,'2017-02-08 17:56:24',4,'茶缸需要您的批准'),(107,8,'product',2,1,'2017-02-08 17:56:26',7,'茶缸需要您的执行'),(108,7,'product',0,1,'2017-02-08 17:56:37',5,'杯子需要您的审核'),(109,7,'product',1,1,'2017-02-08 17:56:39',4,'杯子需要您的批准'),(110,7,'product',2,1,'2017-02-08 17:56:42',7,'杯子需要您的执行'),(111,6,'product',0,1,'2017-02-08 17:56:55',5,'小刀需要您的审核'),(112,6,'product',1,1,'2017-02-08 17:56:57',4,'小刀需要您的批准'),(113,6,'product',2,1,'2017-02-08 17:57:00',7,'小刀需要您的执行'),(114,5,'product',0,1,'2017-02-08 17:57:13',5,'猫肉需要您的审核'),(115,5,'product',1,1,'2017-02-08 17:57:15',4,'猫肉需要您的批准'),(116,5,'product',2,1,'2017-02-08 17:57:18',7,'猫肉需要您的执行'),(117,4,'product',0,1,'2017-02-08 17:57:30',5,'狗肉需要您的审核'),(118,4,'product',1,1,'2017-02-08 17:57:33',4,'狗肉需要您的批准'),(119,4,'product',2,1,'2017-02-08 17:57:35',7,'狗肉需要您的执行'),(120,8,'wplanning',0,1,'2017-02-08 17:58:06',5,'库存需要您的审核'),(121,9,'wplanning',0,1,'2017-02-08 17:58:29',5,'库存需要您的审核'),(122,10,'wplanning',0,1,'2017-02-08 17:58:56',5,'库存需要您的审核'),(123,11,'wplanning',0,1,'2017-02-08 17:59:20',5,'库存需要您的审核'),(124,11,'wplanning',1,1,'2017-02-08 18:00:04',4,'库存需要您的批准'),(125,11,'wplanning',2,1,'2017-02-08 18:00:06',7,'库存需要您的批准'),(126,4,'wprocurement',0,1,'2017-02-08 18:00:09',5,'库存需要您的审核'),(127,10,'wplanning',1,1,'2017-02-08 18:00:16',4,'库存需要您的批准'),(128,10,'wplanning',2,1,'2017-02-08 18:00:18',7,'库存需要您的批准'),(129,5,'wprocurement',0,1,'2017-02-08 18:00:20',5,'库存需要您的审核'),(130,9,'wplanning',1,1,'2017-02-08 18:00:25',4,'库存需要您的批准'),(131,9,'wplanning',2,1,'2017-02-08 18:00:27',7,'库存需要您的批准'),(132,6,'wprocurement',0,1,'2017-02-08 18:00:30',5,'库存需要您的审核'),(133,8,'wplanning',1,1,'2017-02-08 18:00:35',4,'库存需要您的批准'),(134,8,'wplanning',2,1,'2017-02-08 18:00:37',7,'库存需要您的批准'),(135,7,'wprocurement',0,1,'2017-02-08 18:00:40',5,'库存需要您的审核'),(136,5,'wplanning',1,1,'2017-02-08 18:00:45',4,'定时2需要您的批准'),(137,5,'wplanning',2,1,'2017-02-08 18:00:47',7,'定时2需要您的批准'),(138,8,'wprocurement',0,0,'2017-02-08 18:00:50',5,'定时2需要您的审核'),(139,4,'wplanning',1,1,'2017-02-08 18:00:55',4,'定时任务测试1需要您的批准'),(140,4,'wplanning',2,1,'2017-02-08 18:00:57',7,'定时任务测试1需要您的批准'),(141,9,'wprocurement',0,0,'2017-02-08 18:00:59',5,'定时任务测试1需要您的审核'),(142,4,'wprocurement',1,1,'2017-02-08 18:01:21',4,'库存需要您的批准'),(143,4,'wprocurement',2,1,'2017-02-08 18:01:23',7,'库存需要您的批准'),(146,6,'wbuying',0,0,'2017-02-08 18:01:53',5,'库存需要您的审核'),(147,6,'oprocurement',0,0,'2017-02-08 18:01:53',5,'库存需要您的审核'),(148,5,'wprocurement',1,1,'2017-02-08 18:02:00',4,'库存需要您的批准'),(149,5,'wprocurement',2,1,'2017-02-08 18:02:02',7,'库存需要您的批准'),(150,7,'wbuying',0,0,'2017-02-08 18:02:04',5,'库存需要您的审核'),(151,7,'oprocurement',0,0,'2017-02-08 18:02:05',5,'库存需要您的审核'),(152,6,'wprocurement',1,1,'2017-02-08 18:02:10',4,'库存需要您的批准'),(153,6,'wprocurement',2,1,'2017-02-08 18:02:12',7,'库存需要您的批准'),(154,8,'wbuying',0,0,'2017-02-08 18:02:15',5,'库存需要您的审核'),(155,8,'oprocurement',0,0,'2017-02-08 18:02:15',5,'库存需要您的审核'),(156,7,'wprocurement',1,1,'2017-02-08 18:02:21',4,'库存需要您的批准'),(157,7,'wprocurement',2,1,'2017-02-08 18:02:23',7,'库存需要您的批准'),(158,9,'wbuying',0,1,'2017-02-08 18:02:25',5,'库存需要您的审核'),(159,9,'oprocurement',0,0,'2017-02-08 18:02:25',5,'库存需要您的审核'),(160,9,'wbuying',1,1,'2017-02-08 18:02:35',4,'库存需要您的批准'),(161,9,'wbuying',2,0,'2017-02-08 18:02:38',7,'库存需要您的批准'),(162,12,'wplanning',0,1,'2017-02-09 14:44:59',5,'152需要您的审核'),(163,15,'order',1,1,'2017-02-22 19:47:48',1,'213需要您的执行'),(164,16,'order',1,1,'2017-02-22 21:01:49',1,'123需要您的执行'),(165,17,'order',1,1,'2017-02-23 11:39:47',1,'123421需要您的执行'),(166,18,'order',1,1,'2017-02-23 11:44:23',1,'4321需要您的执行'),(167,19,'order',1,1,'2017-02-23 11:47:05',1,'321需要您的执行'),(168,21,'order',2,1,'2017-02-23 11:48:16',2,'321需要您的执行'),(169,22,'order',1,1,'2017-02-23 11:49:58',2,'213需要您的执行'),(170,23,'order',0,0,'2017-02-23 15:04:46',1,'321需要您的执行'),(171,24,'order',0,0,'2017-02-23 15:14:26',2,'321wode需要您的执行'),(172,25,'order',0,0,'2017-02-23 15:28:00',1,'321需要您的执行'),(173,26,'order',0,0,'2017-02-23 15:31:28',2,'我爱你需要您的执行');
  
  /*Table structure for table `checkflow` */
  
  DROP TABLE IF EXISTS `checkflow`;
  
  CREATE TABLE `checkflow` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `check_planning_id` int(11) NOT NULL COMMENT '盘点计划ID',
    `type` tinyint(2) NOT NULL COMMENT '盘点类型',
    `name` varchar(40) NOT NULL COMMENT '表单名',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `total_buying_amount` decimal(10,2) NOT NULL COMMENT '盘点前总购买金额',
    `check_buying_amount` decimal(10,2) NOT NULL COMMENT '审核后总购买金额',
    `status` tinyint(2) NOT NULL COMMENT '状态',
    `config_id` int(11) NOT NULL COMMENT '流程ID',
    `create_admin_id` int(11) NOT NULL COMMENT '制表人ID',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `verify_admin_id` int(11) DEFAULT NULL COMMENT '审核人ID',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT NULL COMMENT '批准人ID',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) DEFAULT NULL COMMENT '执行人ID',
    `operation_time` datetime DEFAULT NULL COMMENT '执行时间',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `department_id` int(11) DEFAULT NULL COMMENT '盘点部门ID',
    `warehouse_id` int(11) DEFAULT NULL COMMENT '盘点仓库ID',
    `is_buckle` tinyint(2) NOT NULL DEFAULT '0' COMMENT '是否扣仓【0：否 1：是】',
    `end_time` date NOT NULL COMMENT '盘点结束时间',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='盘点流程表';
  
  /*Data for the table `checkflow` */
  
  /*Table structure for table `checkflowamount` */
  
  DROP TABLE IF EXISTS `checkflowamount`;
  
  CREATE TABLE `checkflowamount` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `check_flow_id` int(11) NOT NULL COMMENT '盘点流程ID',
    `check_department_id` int(11) NOT NULL COMMENT '盘点部门ID',
    `amount` decimal(10,2) NOT NULL COMMENT '盘点前部门余额',
    `check_amount` decimal(10,2) NOT NULL COMMENT '盘点后部门余额',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='盘点流程金额详情表';
  
  /*Data for the table `checkflowamount` */
  
  /*Table structure for table `checkflowproduct` */
  
  DROP TABLE IF EXISTS `checkflowproduct`;
  
  CREATE TABLE `checkflowproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `check_flow_id` int(11) NOT NULL COMMENT '盘点流程ID',
    `pstock_id` int(11) DEFAULT '0' COMMENT '仓库库存ID',
    `batches` varchar(40) DEFAULT NULL COMMENT '批次号',
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '盘点前库存 ',
    `buying_number` int(11) NOT NULL COMMENT '盘点后库存 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '盘点后总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `barcode` varchar(40) NOT NULL COMMENT '条形码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` int(11) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `warehouse_id` int(11) NOT NULL COMMENT '存放库区ID',
    `department_id` int(11) NOT NULL COMMENT '所属部门ID',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='盘点物料表';
  
  /*Data for the table `checkflowproduct` */
  
  /*Table structure for table `checkplanningflow` */
  
  DROP TABLE IF EXISTS `checkplanningflow`;
  
  CREATE TABLE `checkplanningflow` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(40) NOT NULL COMMENT '盘点名称',
    `sn` varchar(40) NOT NULL COMMENT '单号',
    `type` tinyint(2) NOT NULL COMMENT '类型 【1：盘点计划 2：部门盘点 3：仓库盘点】',
    `supplier_id` int(11) DEFAULT '0' COMMENT '盘点供应商ID',
    `is_check_amount` tinyint(2) DEFAULT '0' COMMENT '是否盘点资金0【否】1【是】',
    `check_time` date NOT NULL COMMENT '预计盘点时间',
    `end_time` date NOT NULL COMMENT '结束日期',
    `product_name` varchar(40) DEFAULT NULL COMMENT '盘点商品名称：默认为空为全部',
    `product_cate_id` int(11) DEFAULT '0' COMMENT '盘点商品分类 0【全部】',
    `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `config_id` int(11) NOT NULL COMMENT '配置流程ID',
    `create_admin_id` int(11) NOT NULL COMMENT '制表人ID',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `verify_admin_id` int(11) DEFAULT NULL COMMENT '审核人ID',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT NULL COMMENT '批准人ID',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) DEFAULT NULL COMMENT '执行人ID',
    `operation_time` datetime DEFAULT NULL COMMENT '执行时间',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `remark` varchar(255) DEFAULT NULL COMMENT '申请原因',
    `department_id` int(11) DEFAULT NULL COMMENT '部门ID',
    `warehouse_id` int(11) DEFAULT NULL COMMENT '仓库ID',
    `is_proof` tinyint(2) DEFAULT '0' COMMENT '是否校对',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='盘点计划流程';
  
  /*Data for the table `checkplanningflow` */
  
  insert  into `checkplanningflow`(`id`,`name`,`sn`,`type`,`supplier_id`,`is_check_amount`,`check_time`,`end_time`,`product_name`,`product_cate_id`,`status`,`config_id`,`create_admin_id`,`create_time`,`verify_admin_id`,`verify_time`,`approval_admin_id`,`approval_time`,`operation_admin_id`,`operation_time`,`failCause`,`timing_type`,`remark`,`department_id`,`warehouse_id`,`is_proof`) values (1,'仓库盘点','Pandjh20170207001',3,0,0,'2017-02-07','2017-02-07','',0,99,19,1,'2017-02-07 15:59:34',5,'2017-02-07 15:59:39',4,'2017-02-07 15:59:42',7,'2017-02-07 15:59:44','过期挂起',0,'1',1,1,0),(2,'总盘点','Pandjh20170207002',1,0,1,'2017-02-07','2017-02-07','',0,99,17,1,'2017-02-07 16:06:42',5,'2017-02-07 16:06:48',4,'2017-02-07 16:06:51',7,'2017-02-07 16:06:54','过期挂起',0,'',0,0,0),(3,'部门盘点','Pandjh20170207003',2,0,0,'2017-02-07','2017-02-07','',0,99,18,1,'2017-02-07 16:10:47',5,'2017-02-07 16:10:51',4,'2017-02-07 16:10:53',7,'2017-02-07 16:10:56','过期挂起',0,'',1,0,0),(6,'盘点打印','Pandjh20170208001',3,NULL,0,'2017-02-08','2017-02-08','',NULL,99,19,1,'2017-02-08 17:47:11',5,NULL,4,NULL,7,NULL,'过期挂起',0,'1',1,1,0),(7,'盘点打印2','Pandjh20170208002',3,NULL,0,'2017-02-08','2017-02-08','',NULL,99,19,1,'2017-02-08 17:48:10',5,NULL,4,NULL,7,NULL,'过期挂起',0,'1',2,2,0),(8,'盘点打印3','Pandjh20170208003',3,NULL,0,'2017-02-08','2017-02-08','',NULL,99,19,1,'2017-02-08 17:48:25',5,NULL,4,NULL,7,NULL,'过期挂起',0,'1',2,3,0),(9,'盘点打印4','Pandjh20170208004',3,NULL,0,'2017-02-08','2017-02-08','',NULL,99,19,1,'2017-02-08 17:48:39',5,'2017-02-08 17:48:46',4,'2017-02-08 17:48:50',7,'2017-02-08 17:48:53','过期挂起',0,'4',1,1,0);
  
  /*Table structure for table `checkplanningflowdata` */
  
  DROP TABLE IF EXISTS `checkplanningflowdata`;
  
  CREATE TABLE `checkplanningflowdata` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `check_planning_flow_id` int(11) NOT NULL COMMENT '盘点计划ID',
    `data_id` int(11) NOT NULL COMMENT '盘点的部门或仓库ID',
    `data_name` varchar(50) NOT NULL COMMENT '数据名称',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='盘点计划数据表';
  
  /*Data for the table `checkplanningflowdata` */
  
  insert  into `checkplanningflowdata`(`id`,`check_planning_flow_id`,`data_id`,`data_name`) values (1,1,1,'总仓库'),(2,2,1,'总部'),(3,2,2,'南山分店'),(4,2,3,'宝安分店'),(5,3,1,'总仓库'),(8,6,1,'总仓库'),(9,7,2,'南山分店销售仓库1'),(10,8,3,'南山分店销售仓库2'),(11,9,1,'总仓库');
  
  /*Table structure for table `combination` */
  
  DROP TABLE IF EXISTS `combination`;
  
  CREATE TABLE `combination` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `payment` tinyint(2) NOT NULL COMMENT '支付方式',
    `deposit` float(10,2) DEFAULT '0.00' COMMENT '定金',
    `warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库ID',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `approval_time` date NOT NULL COMMENT '批准时间',
    `operation_time` date NOT NULL COMMENT '验收时间',
    `operation_cause` varchar(255) DEFAULT NULL COMMENT '验收说明',
    `supplier_id` int(11) NOT NULL DEFAULT '0' COMMENT '供应商ID',
    `common` varchar(255) DEFAULT NULL COMMENT '用途说明',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='组合物料模板';
  
  /*Data for the table `combination` */
  
  insert  into `combination`(`id`,`name`,`sn`,`total_amount`,`payment`,`deposit`,`warehouse_id`,`create_admin_id`,`create_time`,`approval_time`,`operation_time`,`operation_cause`,`supplier_id`,`common`) values (5,'组合出库','Weiz20170207001',47.78,1,1.00,1,1,'2017-02-07 16:28:31','2017-02-07','2017-02-07','1',0,'2');
  
  /*Table structure for table `combinationproduct` */
  
  DROP TABLE IF EXISTS `combinationproduct`;
  
  CREATE TABLE `combinationproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `order_template_id` int(11) NOT NULL COMMENT '订单ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '货品价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` varchar(20) NOT NULL COMMENT '物料类别',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `pstock_id` int(11) DEFAULT NULL COMMENT '库存ID',
    `batches` varchar(40) DEFAULT NULL COMMENT '批次号',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='组合模板物料表';
  
  /*Data for the table `combinationproduct` */
  
  insert  into `combinationproduct`(`id`,`product_id`,`order_template_id`,`name`,`price`,`purchase_price`,`sale_price`,`product_number`,`total_amount`,`supplier_id`,`supplier_product_id`,`num`,`spec`,`unit`,`material_type`,`status`,`pstock_id`,`batches`) values (3,2,5,'蛇肉',8.89,8.89,9.78,1,8.89,4,2,'3223223','D040','D40','1',1,8,'Ruk20170207001'),(4,3,5,'老鼠肉',38.89,38.89,42.78,1,38.89,4,3,'12311312','D030','D30','1',1,7,'Ruk20170207001');
  
  /*Table structure for table `commonremark` */
  
  DROP TABLE IF EXISTS `commonremark`;
  
  CREATE TABLE `commonremark` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `flow_id` int(11) NOT NULL COMMENT '流程ID',
    `flow_type` tinyint(4) NOT NULL COMMENT '流程类型',
    `remark` varchar(255) DEFAULT NULL COMMENT '操作说明',
    `type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '类型 1【审核】2【批准】3【执行】',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=136 DEFAULT CHARSET=utf8 COMMENT='通用操作说明表';
  
  /*Data for the table `commonremark` */
  
  insert  into `commonremark`(`id`,`flow_id`,`flow_type`,`remark`,`type`) values (1,3,11,'',1),(2,3,11,'',2),(3,3,11,'',3),(4,2,11,'',1),(5,2,11,'',2),(6,2,11,'',3),(7,1,11,'',1),(8,1,11,'',2),(9,1,11,'',3),(10,3,1,'',1),(11,3,1,'',2),(12,3,1,'',3),(13,2,1,'',1),(14,2,1,'',2),(15,2,1,'',3),(16,1,1,'',1),(17,1,1,'',2),(18,1,1,'',3),(19,3,2,'',1),(20,3,2,'',2),(21,3,2,'',3),(22,2,2,'',1),(23,2,2,'',2),(24,2,2,'',3),(25,1,2,'',1),(26,1,2,'',2),(27,1,2,'',3),(28,3,3,'',1),(29,3,3,'',2),(30,3,3,'',3),(31,2,3,'',1),(32,2,3,'',2),(33,2,3,'',3),(34,1,3,'',1),(35,1,3,'',2),(36,1,3,'',3),(37,1,20,'',1),(38,1,20,'',2),(39,1,20,'',3),(40,2,18,'',1),(41,2,18,'',2),(42,2,18,'',3),(43,3,19,'',1),(44,3,19,'',2),(45,3,19,'',3),(46,1,9,'',1),(47,3,12,'',1),(48,3,12,'',2),(49,3,12,'',3),(50,9,20,'',1),(51,9,20,'',2),(52,9,20,'',3),(53,20,11,'',1),(54,20,11,'',2),(55,20,11,'',3),(56,19,11,'',1),(57,19,11,'',2),(58,19,11,'',3),(59,18,11,'',1),(60,18,11,'',2),(61,18,11,'',3),(62,17,11,'',1),(63,17,11,'',2),(64,17,11,'',3),(65,16,11,'',1),(66,16,11,'',2),(67,16,11,'',3),(68,15,11,'',1),(69,15,11,'',2),(70,15,11,'',3),(71,14,11,'',1),(72,14,11,'',2),(73,14,11,'',3),(74,13,11,'',1),(75,13,11,'',2),(76,13,11,'',3),(77,12,11,'',1),(78,12,11,'',2),(79,12,11,'',3),(80,11,11,'',1),(81,11,11,'',2),(82,11,11,'',3),(83,10,11,'',1),(84,10,11,'',2),(85,10,11,'',3),(86,9,11,'',1),(87,9,11,'',2),(88,9,11,'',3),(89,8,11,'',1),(90,8,11,'',2),(91,8,11,'',3),(92,7,11,'',1),(93,7,11,'',2),(94,7,11,'',3),(95,6,11,'',1),(96,6,11,'',2),(97,6,11,'',3),(98,5,11,'',1),(99,5,11,'',2),(100,5,11,'',3),(101,4,11,'',1),(102,4,11,'',2),(103,4,11,'',3),(104,11,1,'',1),(105,11,1,'',2),(106,11,1,'',3),(107,10,1,'',1),(108,10,1,'',2),(109,10,1,'',3),(110,9,1,'',1),(111,9,1,'',2),(112,9,1,'',3),(113,8,1,'',1),(114,8,1,'',2),(115,8,1,'',3),(116,5,1,'',1),(117,5,1,'',2),(118,5,1,'',3),(119,4,1,'',1),(120,4,1,'',2),(121,4,1,'',3),(122,4,2,'',1),(123,4,2,'',2),(124,4,2,'',3),(125,5,2,'',1),(126,5,2,'',2),(127,5,2,'',3),(128,6,2,'',1),(129,6,2,'',2),(130,6,2,'',3),(131,7,2,'',1),(132,7,2,'',2),(133,7,2,'',3),(134,9,3,'',1),(135,9,3,'',2);
  
  /*Table structure for table `computer` */
  
  DROP TABLE IF EXISTS `computer`;
  
  CREATE TABLE `computer` (
    `id` int(6) NOT NULL AUTO_INCREMENT,
    `name` varchar(40) NOT NULL COMMENT '计算机名称',
    `mac` varchar(20) NOT NULL COMMENT 'mac地址',
    `type` varchar(20) DEFAULT NULL COMMENT '类型',
    `position` varchar(20) DEFAULT NULL COMMENT '位置',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0无效 1有效 99删除',
    `create_time` datetime DEFAULT NULL,
    `role_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属角色 0：全部',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='计算机表';
  
  /*Data for the table `computer` */
  
  insert  into `computer`(`id`,`name`,`mac`,`type`,`position`,`status`,`create_time`,`role_id`) values (1,'总控制台','00-00-00-00-00-01','控制台','服务器',1,'2017-01-01 09:00:00',0),(2,'1','54-EE-75-01-36-5B','','',1,NULL,0),(4,'2','A4-17-31-7A-9C-F7','','',1,'2017-02-08 15:37:29',0),(5,'3','A4-17-31-7A-9C-F7',NULL,NULL,1,'2017-02-13 17:35:07',0);
  
  /*Table structure for table `config` */
  
  DROP TABLE IF EXISTS `config`;
  
  CREATE TABLE `config` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `set_name` varchar(100) NOT NULL COMMENT '设置名称',
    `set_value` varchar(1000) NOT NULL COMMENT '设置值',
    `set_desc` varchar(1000) NOT NULL COMMENT '描述',
    `group_id` tinyint(1) NOT NULL DEFAULT '0' COMMENT '分组 1 logo 2名称',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 COMMENT='配置表';
  
  /*Data for the table `config` */
  
  insert  into `config`(`id`,`set_name`,`set_value`,`set_desc`,`group_id`) values (1,'admin_ver_password','e10adc3949ba59abbe56e057f20f883e','',3),(2,'admin_business_password','e10adc3949ba59abbe56e057f20f883e','超级管理员业务密码',3),(3,'business_business_password','e10adc3949ba59abbe56e057f20f883e','业务管理员业务密码',3),(4,'flow_business_password','e10adc3949ba59abbe56e057f20f883e','流程管理员业务密码',3),(5,'company','zrh','公司名称',2),(6,'logo','upload/201702071545472716.jpg','logo',1),(7,'commonSet','0','11',0),(8,'flowType_1','1','11',0),(9,'flowType_2','1','11',0),(10,'flowType_3','1','11',0),(11,'flowType_4','1','11',0),(12,'flowType_5','1','11',0),(13,'flowType_6','1','11',0),(14,'flowType_7','1','11',0),(15,'flowType_8','1','11',0),(16,'flowType_9','1','11',0),(17,'flowType_11','1','11',0),(18,'flowType_12','1','11',0),(19,'flowType_13','1','11',0),(20,'flowType_15','1','11',0),(21,'flowType_16','1','11',0),(22,'flowType_18','1','11',0),(23,'flowType_19','1','11',0),(24,'flowType_20','1','11',0),(25,'flowType_21','1','11',0),(26,'flowType_22','1','11',0),(27,'flowType_23','1','11',0),(28,'flowType_24','1','11',0),(29,'flowType_25','1','11',0),(30,'flowType_26','1','11',0),(31,'flowType_27','1','11',0);
  
  /*Table structure for table `department` */
  
  DROP TABLE IF EXISTS `department`;
  
  CREATE TABLE `department` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(100) NOT NULL COMMENT '名称',
    `parent_id` int(11) DEFAULT '0' COMMENT '上级部门ID',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1有效 99删除',
    `create_time` datetime DEFAULT NULL COMMENT '创建时间',
    `number` varchar(40) DEFAULT NULL COMMENT '部门编号',
    `acronym` varchar(20) NOT NULL COMMENT '部门缩写',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='部门表';
  
  /*Data for the table `department` */
  
  insert  into `department`(`id`,`name`,`parent_id`,`status`,`create_time`,`number`,`acronym`) values (1,'总部',0,1,'2016-08-23 16:52:27','001','js'),(2,'南山分店',0,1,'2017-02-07 15:46:44','NSB','NSB'),(3,'宝安分店',0,1,'2017-02-07 15:46:44','BAB','BAB'),(4,'test',1,0,'2017-02-07 16:17:20','1','1');
  
  /*Table structure for table `departmentbalance` */
  
  DROP TABLE IF EXISTS `departmentbalance`;
  
  CREATE TABLE `departmentbalance` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `department_id` int(11) NOT NULL COMMENT '部门ID',
    `balance` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `income_amount` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `expenses_amount` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='部门余额表';
  
  /*Data for the table `departmentbalance` */
  
  /*Table structure for table `departmentbalancelog` */
  
  DROP TABLE IF EXISTS `departmentbalancelog`;
  
  CREATE TABLE `departmentbalancelog` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) DEFAULT NULL COMMENT '名称',
    `department_id` int(11) NOT NULL COMMENT '部门ID',
    `business_id` int(11) NOT NULL COMMENT '业务ID',
    `business_type` tinyint(2) NOT NULL COMMENT '业务类型 对应表名',
    `balance` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT '变动金额',
    `current_balance` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT '当前金额',
    `mod` tinyint(1) NOT NULL DEFAULT '1' COMMENT '进出：1 进 2出',
    `content` varchar(1000) NOT NULL COMMENT '操作内容',
    `status` tinyint(1) NOT NULL COMMENT '0 无效 1有效 99删除',
    `create_time` datetime NOT NULL COMMENT '创建时间',
    `create_admin_id` int(11) NOT NULL COMMENT '创建用户ID',
    `verify_admin_id` int(11) DEFAULT NULL COMMENT '审核用户ID',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT NULL COMMENT '批准用户ID',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) DEFAULT NULL COMMENT '完成用户ID',
    `operation_time` datetime DEFAULT NULL COMMENT '完成时间',
    `config_id` int(11) NOT NULL COMMENT '流程ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='资金流水日志表';
  
  /*Data for the table `departmentbalancelog` */
  
  /*Table structure for table `flowcondition` */
  
  DROP TABLE IF EXISTS `flowcondition`;
  
  CREATE TABLE `flowcondition` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `config_id` int(11) NOT NULL COMMENT '流程ID',
    `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 价格范围 2时间范围 3空间位置4 供应商范围 5商品类别',
    `name` varchar(255) NOT NULL,
    `upper_limit` varchar(100) DEFAULT NULL COMMENT '上限',
    `lower_limit` varchar(100) DEFAULT NULL COMMENT '下线',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0无效 1有效 99删除',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=utf8 COMMENT='流程条件设置';
  
  /*Data for the table `flowcondition` */
  
  insert  into `flowcondition`(`id`,`config_id`,`type`,`name`,`upper_limit`,`lower_limit`,`status`) values (3,2,1,'流程条件','99999999','1',1),(4,2,2,'流程条件','2017-02-07','2017-01-07',1),(5,3,1,'流程条件','99999999','1',1),(6,3,2,'流程条件','2017-02-07','2017-01-07',1),(11,6,1,'流程条件','99999999','1',1),(12,6,2,'流程条件','2017-02-07','2017-01-07',1),(13,7,1,'流程条件','99999999','1',1),(14,7,2,'流程条件','2017-02-07','2017-01-07',1),(15,8,1,'流程条件','99999999','1',1),(16,8,2,'流程条件','2017-02-07','2017-01-07',1),(17,9,1,'流程条件','99999999','1',1),(18,9,2,'流程条件','2017-02-07','2017-01-07',1),(19,10,1,'流程条件','99999999','1',1),(20,10,2,'流程条件','2017-02-07','2017-01-07',1),(21,11,1,'流程条件','99999999','1',1),(22,11,2,'流程条件','2017-02-07','2017-01-07',1),(27,14,1,'流程条件','99999999','1',1),(28,14,2,'流程条件','2017-02-07','2017-01-07',1),(29,15,1,'流程条件','99999999','1',1),(30,15,2,'流程条件','2017-02-07','2017-01-07',1),(31,16,1,'流程条件','99999999','1',1),(32,16,2,'流程条件','2017-02-07','2017-01-07',1),(33,17,1,'流程条件','99999999','1',1),(34,17,2,'流程条件','2017-02-07','2017-01-07',1),(35,18,1,'流程条件','99999999','1',1),(36,18,2,'流程条件','2017-02-07','2017-01-07',1),(39,20,1,'流程条件','99999999','1',1),(40,20,2,'流程条件','2017-02-07','2017-01-07',1),(41,21,1,'流程条件','99999999','1',1),(42,21,2,'流程条件','2017-02-07','2017-01-07',1),(43,22,1,'流程条件','99999999','1',1),(44,22,2,'流程条件','2017-02-07','2017-01-07',1),(45,23,1,'流程条件','99999999','1',1),(46,23,2,'流程条件','2017-02-07','2017-01-07',1),(47,24,1,'流程条件','99999999','1',1),(48,24,2,'流程条件','2017-02-07','2017-01-07',1),(49,19,1,'流程条件','9999','1',1),(50,19,2,'流程条件','2017-02-28','2017-01-07',1),(51,19,3,'流程条件',NULL,'',1),(52,19,4,'流程条件',NULL,'',1),(53,19,5,'流程条件',NULL,'',1),(54,12,1,'流程条件','99999999','1',1),(55,12,2,'流程条件','2017-02-28','2017-01-07',1),(56,12,3,'流程条件',NULL,'',1),(57,12,4,'流程条件',NULL,'',1),(58,12,5,'流程条件',NULL,'',1),(59,1,1,'流程条件','99999999','1',1),(60,1,2,'流程条件','2017-02-28','2017-01-07',1),(61,1,3,'流程条件',NULL,'',1),(62,1,4,'流程条件',NULL,'',1),(63,1,5,'流程条件',NULL,'',1),(64,4,1,'流程条件','99999999','1',1),(65,4,2,'流程条件','2017-02-28','2017-01-07',1),(66,4,3,'流程条件',NULL,'',1),(67,4,4,'流程条件',NULL,'',1),(68,4,5,'流程条件',NULL,'',1),(69,5,1,'流程条件','99999999','1',1),(70,5,2,'流程条件','2017-02-28','2017-01-07',1),(71,5,3,'流程条件',NULL,'',1),(72,5,4,'流程条件',NULL,'',1),(73,5,5,'流程条件',NULL,'',1),(74,13,1,'流程条件','99999999','1',1),(75,13,2,'流程条件','2017-02-28','2017-01-07',1),(76,13,3,'流程条件',NULL,'',1),(77,13,4,'流程条件',NULL,'',1),(78,13,5,'流程条件',NULL,'',1);
  
  /*Table structure for table `flowconfig` */
  
  DROP TABLE IF EXISTS `flowconfig`;
  
  CREATE TABLE `flowconfig` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '流程名称',
    `type` varchar(20) NOT NULL COMMENT 'purchase,checkout等',
    `operation_role_id` int(11) DEFAULT NULL COMMENT '操作角色',
    `operation_name` varchar(40) DEFAULT NULL COMMENT '执行操作名',
    `operation_department_id` int(11) DEFAULT NULL COMMENT '操作部门',
    `verify_role_id` int(11) DEFAULT NULL COMMENT '审核角色',
    `verify_name` varchar(40) DEFAULT NULL COMMENT '审核操作名',
    `verify_department_id` int(11) DEFAULT NULL COMMENT '审核部门',
    `approval_role_id` int(11) DEFAULT NULL COMMENT '批准角色',
    `approval_name` varchar(40) DEFAULT NULL COMMENT '批准操作名',
    `approval_department_id` int(11) DEFAULT NULL COMMENT '批准部门',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0无效 1有效 99删除',
    `create_role_id` int(11) DEFAULT NULL COMMENT '创建角色',
    `create_name` varchar(40) DEFAULT NULL COMMENT '创建名',
    `create_department_id` int(11) DEFAULT NULL COMMENT '创建部门',
    `create_admin_id` int(11) DEFAULT '1' COMMENT '创建人',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COMMENT='流程配置表';
  
  /*Data for the table `flowconfig` */
  
  insert  into `flowconfig`(`id`,`name`,`type`,`operation_role_id`,`operation_name`,`operation_department_id`,`verify_role_id`,`verify_name`,`verify_department_id`,`approval_role_id`,`approval_name`,`approval_department_id`,`status`,`create_role_id`,`create_name`,`create_department_id`,`create_admin_id`) values (1,'采购生成计划','1',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(2,'采购例行计划','24',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(3,'采购例外计划','25',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(4,'采购下订','2',7,'执行',2,5,'审核',2,6,'批准',2,1,7,'创建',2,1),(5,'订单入库','3',7,'执行',2,5,'审核',2,6,'批准',2,1,7,'创建',2,1),(6,'退仓申请','4',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(7,'出库申请','5',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(8,'转货申请','6',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(9,'调仓申请','7',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(10,'物料退货申请','8',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(11,'物料耗损申请','9',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(12,'新增物料','11',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(13,'订单支付','12',7,'执行',2,5,'审核',2,6,'批准',2,1,7,'创建',2,1),(14,'销存入账','13',7,'执行',2,5,'审核',2,6,'批准',2,1,7,'创建',2,1),(15,'业务收支','15',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(16,'退货收款','16',7,'执行',2,5,'审核',2,6,'批准',2,1,7,'创建',2,1),(17,'总盘点计划','18',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(18,'部门盘点计划','19',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(19,'仓库盘点计划','20',7,'执行',2,5,'审核',2,6,'批准',2,1,4,'创建',2,1),(20,'总盘点计划校对','21',7,'执行',2,5,'审核',2,6,'批准',2,0,7,'创建',2,1),(21,'部门盘点计划校对','22',7,'执行',2,5,'审核',2,6,'批准',2,1,7,'创建',2,1),(22,'仓库盘点计划校对','23',7,'执行',2,5,'审核',2,6,'批准',2,1,7,'创建',2,1),(23,'物料修改','26',7,'执行',2,5,'审核',2,6,'批准',2,0,4,'创建',2,1),(24,'销存盘点','27',7,'执行',2,5,'审核',2,6,'批准',2,0,4,'创建',2,1);
  
  /*Table structure for table `flowconfigstep` */
  
  DROP TABLE IF EXISTS `flowconfigstep`;
  
  CREATE TABLE `flowconfigstep` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(200) NOT NULL COMMENT '流程类名称',
    `create_step` tinyint(2) NOT NULL COMMENT '创建步骤 0【无】 1【有】',
    `verify_step` tinyint(2) NOT NULL COMMENT '审核步骤 0【无】 1【有】',
    `approval_step` tinyint(2) NOT NULL COMMENT '批准步骤 0【无】 1【有】',
    `operation_step` tinyint(2) NOT NULL COMMENT '执行步骤 0【无】 1【有】',
    `business_begin_table` int(11) DEFAULT '0' COMMENT '业务操作表单',
    `business_end_table` int(11) DEFAULT '0' COMMENT '业务终止表单',
    `config_sn` tinyint(2) NOT NULL COMMENT '流程类标识',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='业务流程类步骤表';
  
  /*Data for the table `flowconfigstep` */
  
  /*Table structure for table `menu` */
  
  DROP TABLE IF EXISTS `menu`;
  
  CREATE TABLE `menu` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '菜单 ID',
    `parent_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '父级菜单\n\n最多3级',
    `depth` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '层级',
    `arr_parant` varchar(255) NOT NULL DEFAULT '0' COMMENT '父级链',
    `name` varchar(45) NOT NULL COMMENT '菜单名',
    `url` varchar(255) NOT NULL DEFAULT '' COMMENT '菜单指向链接\n\n不为空表示为最终菜单\n为空时表示为菜单节点',
    `params` varchar(255) NOT NULL DEFAULT '' COMMENT '地址参数',
    `icon` varchar(120) NOT NULL DEFAULT '' COMMENT '菜单 Icon 样式名',
    `auth` varchar(64) NOT NULL DEFAULT '' COMMENT '所需权限\n\n填最上一级权限',
    `is_open` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否默认开启\n0: 不开启\n1: 开启',
    `is_show` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否显示\n0: 不显示\n1: 显示',
    `sort` bigint(20) unsigned NOT NULL DEFAULT '99' COMMENT '排序',
    PRIMARY KEY (`id`),
    KEY `is_show` (`is_show`),
    KEY `parent_id` (`parent_id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=83 DEFAULT CHARSET=utf8 COMMENT='后台菜单表';
  
  /*Data for the table `menu` */
  
  insert  into `menu`(`id`,`parent_id`,`depth`,`arr_parant`,`name`,`url`,`params`,`icon`,`auth`,`is_open`,`is_show`,`sort`) values (1,0,1,'0','查询统计','stats/realtime','id=1','icon-1','',0,1,0),(2,0,1,'0','销存管理','invoicing/realtime','','icon-2','invoicing_realtime',1,1,0),(3,0,1,'0','业务操作','wplanning/index','','icon-3','warehouseplanning',1,1,0),(4,0,1,'0','业务设置','flowconfig/index','','icon-4','flowconfig_index',1,1,0),(5,0,1,'0','部门基础数据','department/index','','icon-5','',0,1,0),(6,0,1,'0','业务基础数据','supplier/index','','icon-6','',0,1,0),(7,0,1,'0','系统基础数据','system/logo','','icon-7','',1,1,0),(8,1,2,'0,1','实时库存统计','stats/realtime','','','stats_realtime',1,1,0),(9,1,2,'0,1','历史表单统计','stats/index','','','',0,1,0),(13,6,2,'0,6','供应商设置','supplier/index','','','supplier_index',1,1,1),(14,7,2,'0,7','logo设置','system/logo','','','system_logo',1,1,0),(15,7,2,'0,7','公司名称','system/company','','','system_company',1,1,0),(16,7,2,'0,7','业务计算机设置','computer/index','','',' computer_index',1,1,0),(17,5,2,'0,5','部门管理','department/index','','','department_index',1,1,0),(18,5,2,'0,5','角色管理','role/index','','','role_index',1,1,0),(19,5,2,'0,5','员工管理','admin/index','','','admin_index',1,1,0),(20,7,2,'0,7','事件日志','adminlog/index','','','adminlog_index',1,1,0),(21,1,2,'0,1','业务表单统计查询','stats/purchase','','','stats_bussiness',1,1,0),(22,3,2,'0,3','采购计划','wplanning/index','','','wplanning_index',1,1,0),(23,3,2,'0,3','采购下定','wprocurement/index','','','wprocurement',1,1,0),(24,3,2,'0,3','库存管理','pstock/index','','','pstock_index',1,1,0),(25,24,3,'0,3,24','库存管理','pstock/index','','','pstock_index',1,1,1),(26,7,2,'0,7','数据库备份及恢复','import/index','','','database',1,1,0),(28,26,3,'0,7,26','备份及还原数据','import/index','','','export_index',1,1,0),(29,6,2,'0,6','物料管理','product/index','','','product_index',1,1,3),(30,6,2,'0,6','供应商出品管理','supplierproduct/index','','','supplierproduct_index',1,1,2),(31,4,2,'0,4','业务流程列表','flowconfig/index','','','flowconfig_index',1,1,1),(33,6,2,'0,6','仓库分区','warehouse/index','','','warehouse_index',1,1,4),(34,6,2,'0,6','地区列表','area/index','','','area_index',1,1,5),(35,24,3,'0,3,24','入库记录','wbuying/index','','','wbuying_index',1,1,2),(36,24,3,'0,3,24','退仓记录','wback/index','','','wback_index',1,1,5),(37,24,3,'0,3,24','出库记录','wcheckout/index','','','wcheckout_index',1,1,3),(38,24,3,'0,3,24','调仓记录','wtransfer/index','','','wtransfer_index',1,1,4),(39,24,3,'0,3,24','转货记录','wtransferdep/index','','','wtransferdep_index',1,1,6),(40,24,3,'0,3,24','耗损记录','wwastage/index','','','wwastage_index',1,1,10),(41,24,3,'0,3,24','退货记录','wmaterial/index','','','wmaterial_index',1,1,7),(42,24,3,'0,3,24','出入库日志','wgateway/index','','','wgateway_index',1,1,11),(43,4,2,'0,4','订单模版管理','ordertemplate/index','','','ordertemplate_index',1,1,3),(44,7,2,'0,7','开业清库','system/default','','','system_default',1,1,0),(45,7,2,'0,7','配置数据','config/index','','','system_config',1,1,0),(46,7,2,'0,7','管理员权限','system/auth','','','system_auth',1,1,0),(47,21,3,'0,1,21','采购入库报表','stats/purchase','','','stats_purchase',1,1,0),(48,21,3,'0,1,21','物料出入报表','stats/product','','','stats_product',1,1,0),(49,21,3,'0,1,21','供应商供货','stats/supply','','','stats_supply',1,1,0),(50,21,3,'0,1,21','供应商结算','stats/settlement','','','stats_settlement',1,1,0),(52,21,3,'0,1,21','毛利','stats/grossprofit','','','stats_grossProfit',1,1,0),(53,21,3,'0,1,21','利润报表','stats/profit','','','stats_profit',1,1,0),(54,2,2,'0,2','实时销存管理','invoicing/realtime','','','invoicing_realtime',1,1,0),(55,2,2,'0,2','销存商品管理','invoicing/product','','','invoicing_product',1,1,0),(56,2,2,'0,2','销存库存管理','invoicing/stock','','','invoicing_stock',1,1,0),(57,2,2,'0,2','部门盘点管理','departmentcheckplanning/index','','','invoicing_check',1,1,0),(58,3,2,'0,3','盘点管理','checkplanning/index','','','checkplanning_index',1,1,0),(59,3,2,'0,3','资金管理','oprocurement/index','','','oprocurement_index',1,1,0),(60,59,3,'0,3,59','销存入账','wsale/index','','','wsale_index',1,1,3),(61,59,3,'0,3,59','订单支付','oprocurement/index','','','oprocurement_index',1,1,1),(62,59,3,'0,3,59','资金流水日志','departmentbalancelog/index','','','departmentbalancelog_index',1,1,5),(63,59,3,'0,3,59','业务收支流水','abnormalbalance/index','','','abnormalbalance_index',1,1,3),(64,58,3,'0,3,58','盘点计划管理','checkplanning/index','','','checkplanning_index',1,1,0),(65,4,2,'0,4','组合出库模版管理','combination/index','','','combination_index',1,1,4),(66,6,2,'0,6','流程步骤设置','flowconfigstep/index','','','flowconfigstep',1,1,6),(68,6,2,'0,6','物料分类管理','productcategory/index','','','productcategory_index',1,1,7),(69,54,3,'0,2,54','实时销存','invoicingsale/index','','','invoicingsale_index',1,1,2),(70,5,2,'0,5','权限管理','rolejurisdiction/setrole','','','rolejurisdiction_setrole',0,1,0),(71,54,3,'0,2,54','销存核实','invoicing/realtime','','','invoicing_realtime',1,1,1),(72,59,3,'0,3,59','退货收款','omaterialreturn/index','','','omaterialreturn_index ',1,1,4),(73,58,3,'0,3,58','盘点计划校队','checkproof/index','','','checkproof_index',1,1,0),(74,57,3,'0,2,57','部门盘点计划','departmentcheckplanning/index','','','departmetncheckplanning_index',1,1,0),(75,57,3,'0,2,57','部门盘点计划校队','departmentcheckproof/index','','','departmetncheckproof_index',1,1,0),(76,24,3,'0,3,24','仓库盘点计划','warehousecheckplanning/index','','','warehousecheckplanning_index',1,1,8),(77,24,3,'0,3,24','仓库盘点校对','warehousecheckproof/index','','','warehousecheckproof_index',1,1,9),(78,29,3,'0,6,29','物料列表','product/index','','','product_index',1,1,1),(79,29,3,'0,6,29','物料修改列表','productupdate/index','','','productupdate_index',1,1,2),(80,29,3,'0,6,29','物料修改日志流水','productupdate/log','','','productupdate_log',1,1,3),(81,54,3,'0,2,54','销存盘点','salecheck/index','','','salecheck_index',1,1,3),(82,2,2,'0,2','制作订单','order/index','','','order_index',1,1,2);
  
  /*Table structure for table `menu_copy` */
  
  DROP TABLE IF EXISTS `menu_copy`;
  
  CREATE TABLE `menu_copy` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '菜单 ID',
    `parent_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '父级菜单\n\n最多3级',
    `depth` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '层级',
    `arr_parant` varchar(255) NOT NULL DEFAULT '0' COMMENT '父级链',
    `name` varchar(45) NOT NULL COMMENT '菜单名',
    `url` varchar(255) NOT NULL DEFAULT '' COMMENT '菜单指向链接\n\n不为空表示为最终菜单\n为空时表示为菜单节点',
    `params` varchar(255) NOT NULL DEFAULT '' COMMENT '地址参数',
    `icon` varchar(120) NOT NULL DEFAULT '' COMMENT '菜单 Icon 样式名',
    `auth` varchar(64) NOT NULL DEFAULT '' COMMENT '所需权限\n\n填最上一级权限',
    `is_open` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否默认开启\n0: 不开启\n1: 开启',
    `is_show` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否显示\n0: 不显示\n1: 显示',
    `sort` bigint(20) unsigned NOT NULL DEFAULT '99' COMMENT '排序',
    PRIMARY KEY (`id`),
    KEY `is_show` (`is_show`),
    KEY `parent_id` (`parent_id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=83 DEFAULT CHARSET=utf8 COMMENT='后台菜单表';
  
  /*Data for the table `menu_copy` */
  
  insert  into `menu_copy`(`id`,`parent_id`,`depth`,`arr_parant`,`name`,`url`,`params`,`icon`,`auth`,`is_open`,`is_show`,`sort`) values (1,0,1,'0','查询统计','stats/realtime','id=1','icon-1','',0,1,0),(2,0,1,'0','销存管理','invoicing/realtime','','icon-2','invoicing_realtime',1,1,0),(3,0,1,'0','业务操作','wplanning/index','','icon-3','warehouseplanning',1,1,0),(4,0,1,'0','业务设置','flowconfig/index','','icon-4','flowconfig_index',1,1,0),(5,0,1,'0','部门基础数据','department/index','','icon-5','',0,1,0),(6,0,1,'0','业务基础数据','supplier/index','','icon-6','',0,1,0),(7,0,1,'0','系统基础数据','system/logo','','icon-7','',1,1,0),(8,1,2,'0,1','实时库存统计','stats/realtime','','','stats_realtime',1,1,0),(9,1,2,'0,1','历史表单统计','stats/index','','','',0,1,0),(13,6,2,'0,6','供应商设置','supplier/index','','','supplier_index',1,1,1),(14,7,2,'0,7','logo设置','system/logo','','','system_logo',1,1,0),(15,7,2,'0,7','公司名称','system/company','','','system_company',1,1,0),(16,7,2,'0,7','业务计算机设置','computer/index','','',' computer_index',1,1,0),(17,5,2,'0,5','部门管理','department/index','','','department_index',1,1,0),(18,5,2,'0,5','角色管理','role/index','','','role_index',1,1,0),(19,5,2,'0,5','员工管理','admin/index','','','admin_index',1,1,0),(20,7,2,'0,7','事件日志','adminlog/index','','','adminlog_index',1,1,0),(21,1,2,'0,1','业务表单统计查询','stats/purchase','','','stats_bussiness',1,1,0),(22,3,2,'0,3','采购计划','wplanning/index','','','wplanning_index',1,1,0),(23,3,2,'0,3','采购下定','wprocurement/index','','','wprocurement',1,1,0),(24,3,2,'0,3','库存管理','pstock/index','','','pstock_index',1,1,0),(25,24,3,'0,3,24','库存管理','pstock/index','','','pstock_index',1,1,1),(26,7,2,'0,7','数据库备份及恢复','import/index','','','database',1,1,0),(28,26,3,'0,7,26','备份及还原数据','import/index','','','export_index',1,1,0),(29,6,2,'0,6','物料管理','product/index','','','product_index',1,1,3),(30,6,2,'0,6','供应商出品管理','supplierproduct/index','','','supplierproduct_index',1,1,2),(31,4,2,'0,4','业务流程列表','flowconfig/index','','','flowconfig_index',1,1,1),(33,6,2,'0,6','仓库分区','warehouse/index','','','warehouse_index',1,1,4),(34,6,2,'0,6','地区列表','area/index','','','area_index',1,1,5),(35,24,3,'0,3,24','入库记录','wbuying/index','','','wbuying_index',1,1,2),(36,24,3,'0,3,24','退仓记录','wback/index','','','wback_index',1,1,5),(37,24,3,'0,3,24','出库记录','wcheckout/index','','','wcheckout_index',1,1,3),(38,24,3,'0,3,24','调仓记录','wtransfer/index','','','wtransfer_index',1,1,4),(39,24,3,'0,3,24','转货记录','wtransferdep/index','','','wtransferdep_index',1,1,6),(40,24,3,'0,3,24','耗损记录','wwastage/index','','','wwastage_index',1,1,10),(41,24,3,'0,3,24','退货记录','wmaterial/index','','','wmaterial_index',1,1,7),(42,24,3,'0,3,24','出入库日志','wgateway/index','','','wgateway_index',1,1,11),(43,4,2,'0,4','订单模版管理','ordertemplate/index','','','ordertemplate_index',1,1,3),(44,7,2,'0,7','开业清库','system/default','','','system_default',1,1,0),(45,7,2,'0,7','配置数据','config/index','','','system_config',1,1,0),(46,7,2,'0,7','管理员权限','system/auth','','','system_auth',1,1,0),(47,21,3,'0,1,21','采购入库报表','stats/purchase','','','stats_purchase',1,1,0),(48,21,3,'0,1,21','物料出入报表','stats/product','','','stats_product',1,1,0),(49,21,3,'0,1,21','供应商供货','stats/supply','','','stats_supply',1,1,0),(50,21,3,'0,1,21','供应商结算','stats/settlement','','','stats_settlement',1,1,0),(52,21,3,'0,1,21','毛利','stats/grossprofit','','','stats_grossProfit',1,1,0),(53,21,3,'0,1,21','利润报表','stats/profit','','','stats_profit',1,1,0),(54,2,2,'0,2','实时销存管理','invoicing/realtime','','','invoicing_realtime',1,1,0),(55,2,2,'0,2','销存商品管理','invoicing/product','','','invoicing_product',1,1,0),(56,2,2,'0,2','销存库存管理','invoicing/stock','','','invoicing_stock',1,1,0),(57,2,2,'0,2','部门盘点管理','departmentcheckplanning/index','','','invoicing_check',1,1,0),(58,3,2,'0,3','盘点管理','checkplanning/index','','','checkplanning_index',1,1,0),(59,3,2,'0,3','资金管理','oprocurement/index','','','oprocurement_index',1,1,0),(60,59,3,'0,3,59','销存入账','wsale/index','','','wsale_index',1,1,3),(61,59,3,'0,3,59','订单支付','oprocurement/index','','','oprocurement_index',1,1,1),(62,59,3,'0,3,59','资金流水日志','departmentbalancelog/index','','','departmentbalancelog_index',1,1,5),(63,59,3,'0,3,59','业务收支流水','abnormalbalance/index','','','abnormalbalance_index',1,1,3),(64,58,3,'0,3,58','盘点计划管理','checkplanning/index','','','checkplanning_index',1,1,0),(65,4,2,'0,4','组合出库模版管理','combination/index','','','combination_index',1,1,4),(66,6,2,'0,6','流程步骤设置','flowconfigstep/index','','','flowconfigstep',1,1,6),(68,6,2,'0,6','物料分类管理','productcategory/index','','','productcategory_index',1,1,7),(69,54,3,'0,2,54','实时销存','invoicingsale/index','','','invoicingsale_index',1,1,2),(70,5,2,'0,5','权限管理','rolejurisdiction/setrole','','','rolejurisdiction_setrole',0,1,0),(71,54,3,'0,2,54','销存核实','invoicing/realtime','','','invoicing_realtime',1,1,1),(72,59,3,'0,3,59','退货收款','omaterialreturn/index','','','omaterialreturn_index ',1,1,4),(73,58,3,'0,3,58','盘点计划校队','checkproof/index','','','checkproof_index',1,1,0),(74,57,3,'0,2,57','部门盘点计划','departmentcheckplanning/index','','','departmetncheckplanning_index',1,1,0),(75,57,3,'0,2,57','部门盘点计划校队','departmentcheckproof/index','','','departmetncheckproof_index',1,1,0),(76,24,3,'0,3,24','仓库盘点计划','warehousecheckplanning/index','','','warehousecheckplanning_index',1,1,8),(77,24,3,'0,3,24','仓库盘点校对','warehousecheckproof/index','','','warehousecheckproof_index',1,1,9),(78,29,3,'0,6,29','物料列表','product/index','','','product_index',1,1,1),(79,29,3,'0,6,29','物料修改列表','productupdate/index','','','productupdate_index',1,1,2),(80,29,3,'0,6,29','物料修改日志流水','productupdate/log','','','productupdate_log',1,1,3),(81,54,3,'0,2,54','销存盘点','salecheck/index','','','salecheck_index',1,1,3),(82,2,2,'0,2','制作订单','order/index','','','order_index',1,1,2);
  
  /*Table structure for table `ordermaterialreturn` */
  
  DROP TABLE IF EXISTS `ordermaterialreturn`;
  
  CREATE TABLE `ordermaterialreturn` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `procurement_id` int(11) NOT NULL COMMENT '退货id',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `order_sn` varchar(40) NOT NULL COMMENT '订单编号',
    `warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库ID',
    `supplier_id` int(11) NOT NULL DEFAULT '0' COMMENT '供应商ID',
    `planning_date` date NOT NULL COMMENT '计划退货时间',
    `payment` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 预付 2定金 3后付',
    `deposit` float(10,2) DEFAULT '0.00' COMMENT '定金',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `payment_term` date DEFAULT NULL COMMENT '计划退款时间',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '审核人',
    `approval_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '批准人',
    `operation_admin_id` int(11) NOT NULL COMMENT '下单操作人',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `config_id` int(11) NOT NULL,
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `remark` varchar(255) DEFAULT NULL COMMENT '退货原因',
    `operation_time` datetime DEFAULT NULL,
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `department_id` int(11) DEFAULT NULL COMMENT '部门ID',
    `pay_state` tinyint(2) DEFAULT '0' COMMENT '支付状态 0【未支付】1【定金支付】2【全额支付】',
    `pay_deposit_time` datetime DEFAULT NULL COMMENT '部分支付时间',
    `pay_all_time` datetime DEFAULT NULL COMMENT '全部支付时间',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='退货退款表';
  
  /*Data for the table `ordermaterialreturn` */
  
  /*Table structure for table `ordermaterialreturnproduct` */
  
  DROP TABLE IF EXISTS `ordermaterialreturnproduct`;
  
  CREATE TABLE `ordermaterialreturnproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `order_procurement_id` int(11) NOT NULL COMMENT '退货退款ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '货品价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `product_number` int(11) NOT NULL COMMENT '退货数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '类型 1：正常 2：例行 3：例外',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='退货退款物料表';
  
  /*Data for the table `ordermaterialreturnproduct` */
  
  /*Table structure for table `orderprocurement` */
  
  DROP TABLE IF EXISTS `orderprocurement`;
  
  CREATE TABLE `orderprocurement` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `procurement_id` int(11) NOT NULL COMMENT '采购计划id',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `order_sn` varchar(40) NOT NULL COMMENT '订单编号',
    `warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库ID',
    `supplier_id` int(11) NOT NULL DEFAULT '0' COMMENT '供应商ID',
    `planning_date` date NOT NULL COMMENT '计划下单时间',
    `payment` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 预付 2定金 3后付',
    `deposit` float(10,2) DEFAULT '0.00' COMMENT '定金',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `payment_term` date DEFAULT NULL COMMENT '付款期',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '审核人',
    `approval_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '批准人',
    `operation_admin_id` int(11) NOT NULL COMMENT '下单操作人',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `config_id` int(11) NOT NULL,
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `operation_time` datetime DEFAULT NULL,
    `department_id` int(11) DEFAULT '0',
    `pay_state` tinyint(2) DEFAULT '0' COMMENT '支付状态 0【未支付】1【定金支付】2【全额支付】',
    `pay_deposit_time` datetime DEFAULT NULL COMMENT '部门支付时间',
    `pay_all_time` datetime DEFAULT NULL COMMENT '全部支付时间',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `buckle_amount` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '扣项',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='采购下定支付表';
  
  /*Data for the table `orderprocurement` */
  
  insert  into `orderprocurement`(`id`,`name`,`procurement_id`,`sn`,`order_sn`,`warehouse_id`,`supplier_id`,`planning_date`,`payment`,`deposit`,`total_amount`,`payment_term`,`create_admin_id`,`verify_admin_id`,`approval_admin_id`,`operation_admin_id`,`status`,`create_time`,`config_id`,`failCause`,`timing_type`,`operation_time`,`department_id`,`pay_state`,`pay_deposit_time`,`pay_all_time`,`verify_time`,`approval_time`,`buckle_amount`) values (1,'仓库盘点',1,'Zhif20170207001','Ojs20170207155611001',1,4,'2017-02-07',3,100.00,6767.00,'2017-02-07',1,5,4,7,0,'2017-02-07 15:58:12',13,'',0,NULL,1,0,NULL,NULL,NULL,NULL,0.00),(2,'部门盘点',2,'Zhif20170207002','ONSB20170207155641001',2,4,'2017-02-07',3,100.00,6767.00,'2017-02-07',1,5,4,7,0,'2017-02-07 15:58:24',13,'',0,NULL,2,0,NULL,NULL,NULL,NULL,0.00),(3,'总盘点',3,'Zhif20170207003','ONSB20170207155715001',3,4,'2017-02-07',3,100100.00,6767.00,'2017-02-07',1,5,4,7,3,'2017-02-07 15:58:35',13,'',0,'2017-02-07 16:23:39',2,0,NULL,NULL,'2017-02-07 16:23:33','2017-02-07 16:23:37',0.00),(6,'库存',6,'Zhif20170208001','ONSB20170208175920001',3,3,'2017-02-08',3,0.00,5178.86,'2017-02-08',1,5,4,7,0,'2017-02-08 18:01:53',13,NULL,0,NULL,2,0,NULL,NULL,NULL,NULL,0.00),(7,'库存',7,'Zhif20170208002','ONSB20170208175856001',3,4,'2017-02-08',3,0.00,5714.28,'2017-02-08',1,5,4,7,0,'2017-02-08 18:02:04',13,NULL,0,NULL,2,0,NULL,NULL,NULL,NULL,0.00),(8,'库存',8,'Zhif20170208003','ONSB20170208175829001',2,2,'2017-02-08',3,12.00,14333.00,'2017-02-08',1,5,4,7,0,'2017-02-08 18:02:15',13,NULL,0,NULL,2,0,NULL,NULL,NULL,NULL,0.00),(9,'库存',9,'Zhif20170208004','Ojs20170208175806001',1,1,'2017-02-08',3,12.00,3474.53,'2017-02-08',1,5,4,7,0,'2017-02-08 18:02:25',13,NULL,0,NULL,1,0,NULL,NULL,NULL,NULL,0.00);
  
  /*Table structure for table `orderprocurementproduct` */
  
  DROP TABLE IF EXISTS `orderprocurementproduct`;
  
  CREATE TABLE `orderprocurementproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `order_procurement_id` int(11) NOT NULL COMMENT '采购下定ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '货品价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `product_number` int(11) NOT NULL COMMENT '采购数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8 COMMENT='采购下定支付物料表';
  
  /*Data for the table `orderprocurementproduct` */
  
  insert  into `orderprocurementproduct`(`id`,`product_id`,`order_procurement_id`,`name`,`price`,`purchase_price`,`product_number`,`total_amount`,`supplier_id`,`supplier_product_id`,`num`,`spec`,`unit`,`material_type`,`status`) values (1,3,1,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1),(2,2,1,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1),(3,1,1,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1),(4,3,2,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1),(5,2,2,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1),(6,1,2,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1),(7,3,3,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1),(8,2,3,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1),(9,1,3,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1),(20,10,6,'毛巾',15.11,15.11,56,846.16,3,11,'433333333333','B010','B10',2,1),(21,9,6,'牙刷',15.11,15.11,56,846.16,3,12,'4323','B020','B20',2,1),(22,8,6,'茶缸',20.22,20.22,65,1314.30,3,13,'342234','B030','B30',2,1),(23,7,6,'杯子',18.12,18.12,56,1014.72,3,14,'31141','B040','B40',2,1),(24,6,6,'小刀',20.67,20.67,56,1157.52,3,15,'3413413','B050','B50',2,1),(25,5,7,'猫肉',18.89,18.89,45,850.05,4,16,'34111','D010','D10',1,1),(26,4,7,'狗肉',28.89,28.89,54,1560.06,4,17,'3113413','D020','D20',1,1),(27,3,7,'老鼠肉',38.89,38.89,45,1750.05,4,18,'12311312','D030','D30',1,1),(28,2,7,'蛇肉',8.89,8.89,54,480.06,4,19,'3223223','D040','D40',1,1),(29,1,7,'鸡肉',19.89,19.89,54,1074.06,4,20,'2321','D050','D50',1,1),(30,20,8,'桌子',110.10,110.10,22,2422.20,2,1,'121','A010','A10',3,1),(31,19,8,'椅子',120.20,120.20,22,2644.40,2,2,'32','A020','A20',3,1),(32,18,8,'橱柜',130.30,130.30,22,2866.60,2,3,'2323','A030','A30',3,1),(33,17,8,'办公桌',140.40,140.40,22,3088.80,2,4,'1221','A040','A40',3,1),(34,16,8,'轮椅',150.50,150.50,22,3311.00,2,5,'233333333113','A050','A50',3,1),(35,15,9,'海鱼',28.89,28.89,21,606.69,1,6,'32323232','C010','C10',4,1),(36,14,9,'海虾',38.89,38.89,21,816.69,1,7,'1212121212','C020','C20',4,1),(37,13,9,'海马',48.89,48.89,12,586.68,1,8,'1222222222222222','C030','C30',4,1),(38,12,9,'海龟',58.89,58.89,12,706.68,1,9,'2311313','C040','C40',4,1),(39,11,9,'海章鱼',68.89,68.89,11,757.79,1,10,'31314','C050','C50',4,1);
  
  /*Table structure for table `ordertemplate` */
  
  DROP TABLE IF EXISTS `ordertemplate`;
  
  CREATE TABLE `ordertemplate` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `payment` tinyint(2) NOT NULL COMMENT '支付方式',
    `deposit` float(10,2) DEFAULT NULL COMMENT '定金',
    `warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库ID',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `approval_time` date NOT NULL COMMENT '批准时间',
    `operation_time` date NOT NULL COMMENT '验收时间',
    `operation_cause` varchar(255) DEFAULT NULL COMMENT '验收说明',
    `supplier_id` int(11) NOT NULL DEFAULT '0' COMMENT '供应商ID',
    `common` varchar(255) DEFAULT NULL COMMENT '用途说明',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='订单模板';
  
  /*Data for the table `ordertemplate` */
  
  insert  into `ordertemplate`(`id`,`name`,`sn`,`total_amount`,`payment`,`deposit`,`warehouse_id`,`create_admin_id`,`create_time`,`approval_time`,`operation_time`,`operation_cause`,`supplier_id`,`common`) values (1,'1','Weiz20170208001',31.66,3,1.00,0,2,'2017-02-08 15:08:19','2017-02-08','2017-02-08','1',4,'1');
  
  /*Table structure for table `ordertemplateproduct` */
  
  DROP TABLE IF EXISTS `ordertemplateproduct`;
  
  CREATE TABLE `ordertemplateproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `order_template_id` int(11) NOT NULL COMMENT '订单ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '货品价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '数量 ',
    `buying_number` int(11) NOT NULL COMMENT '转货数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `product_cate_id` int(11) NOT NULL COMMENT '物料分类ID',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='订单模板物料表';
  
  /*Data for the table `ordertemplateproduct` */
  
  insert  into `ordertemplateproduct`(`id`,`product_id`,`order_template_id`,`name`,`price`,`purchase_price`,`sale_price`,`product_number`,`buying_number`,`total_amount`,`supplier_id`,`supplier_product_id`,`num`,`spec`,`unit`,`material_type`,`status`,`product_cate_id`) values (1,2,1,'蛇肉',8.89,8.89,9.78,0,1,9.78,4,2,'D04','D040','D40',1,1,1),(2,1,1,'鸡肉',19.89,19.89,21.88,0,1,21.88,4,1,'D05','D050','D50',1,1,1);
  
  /*Table structure for table `product` */
  
  DROP TABLE IF EXISTS `product`;
  
  CREATE TABLE `product` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) DEFAULT NULL COMMENT '名称',
    `product_category_id` int(11) NOT NULL COMMENT '物料分类ID',
    `barcode` varchar(50) DEFAULT NULL COMMENT '条形码',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '进货参考价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商物料ID',
    `num` varchar(40) NOT NULL COMMENT '物料编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `inventory_warning` int(11) NOT NULL DEFAULT '0' COMMENT '库存警告',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT ' 录入操作；2、录入审核；3、录入批准【用于历史物料数据记录表】；4、修改操作；5、修改审核；6、修改批准【用于历史物料数据记录表】 99删除',
    `create_admin_id` int(11) NOT NULL COMMENT '创建人',
    `create_time` datetime DEFAULT NULL COMMENT '创建时间',
    `verify_admin_id` int(11) DEFAULT NULL COMMENT '审核人ID',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT NULL COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `modify_status` tinyint(1) NOT NULL COMMENT '1 录入操作；2、录入审核；3、录入批准【用于历史物料数据记录表】；4、修改操作；5、修改审核；6、修改批准【用于历史物料数据记录表】',
    `operation_admin_id` int(11) DEFAULT NULL COMMENT '完成操作人',
    `operation_time` datetime DEFAULT NULL COMMENT '完成时间',
    `config_id` int(11) NOT NULL COMMENT '流程ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `is_batches` tinyint(2) DEFAULT '0' COMMENT '是否需要批次号 【0：不需要 1：需要】',
    `is_update` tinyint(2) NOT NULL DEFAULT '0' COMMENT '是否修改 0：否 1：是',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COMMENT='物料表';
  
  /*Data for the table `product` */
  
  insert  into `product`(`id`,`name`,`product_category_id`,`barcode`,`purchase_price`,`sale_price`,`supplier_id`,`supplier_product_id`,`num`,`spec`,`unit`,`material_type`,`inventory_warning`,`status`,`create_admin_id`,`create_time`,`verify_admin_id`,`verify_time`,`approval_admin_id`,`approval_time`,`modify_status`,`operation_admin_id`,`operation_time`,`config_id`,`failCause`,`timing_type`,`is_batches`,`is_update`) values (1,'鸡肉',1,'2321',19.89,21.88,4,20,'D05','D050','D50',1,0,1,1,'2017-02-07 15:54:08',5,'2017-02-07 15:55:03',4,'2017-02-07 15:55:06',3,7,'2017-02-07 15:55:08',12,'',0,1,0),(2,'蛇肉',1,'3223223',8.89,9.78,4,19,'D04','D040','D40',1,0,1,1,'2017-02-07 15:54:11',5,'2017-02-07 15:54:45',4,'2017-02-07 15:54:49',3,7,'2017-02-07 15:54:51',12,'',0,1,0),(3,'老鼠肉',1,'12311312',38.89,42.78,4,18,'D03','D030','D30',1,11,1,1,'2017-02-07 15:54:13',5,'2017-02-07 15:54:28',4,'2017-02-07 15:54:30',3,7,'2017-02-07 15:54:33',12,'',0,1,0),(4,'狗肉',1,'3113413',28.89,31.78,4,17,'D02','D020','D20',1,0,1,1,'2017-02-08 17:52:00',5,'2017-02-08 17:57:33',4,'2017-02-08 17:57:35',3,7,'2017-02-08 17:57:37',12,NULL,0,1,0),(5,'猫肉',1,'34111',18.89,20.78,4,16,'D01','D010','D10',1,0,1,1,'2017-02-08 17:52:02',5,'2017-02-08 17:57:15',4,'2017-02-08 17:57:18',3,7,'2017-02-08 17:57:21',12,NULL,0,1,0),(6,'小刀',2,'3413413',20.67,24.80,3,15,'B05','B050','B50',1,0,1,1,'2017-02-08 17:52:04',5,'2017-02-08 17:56:57',4,'2017-02-08 17:57:00',3,7,'2017-02-08 17:57:03',12,NULL,0,1,0),(7,'杯子',2,'31141',18.12,21.74,3,14,'B04','B040','B40',1,0,1,1,'2017-02-08 17:52:06',5,'2017-02-08 17:56:39',4,'2017-02-08 17:56:42',3,7,'2017-02-08 17:56:45',12,NULL,0,1,0),(8,'茶缸',2,'342234',20.22,24.26,3,13,'B03','B030','B30',1,0,1,1,'2017-02-08 17:52:07',5,'2017-02-08 17:56:24',4,'2017-02-08 17:56:26',3,7,'2017-02-08 17:56:28',12,NULL,0,1,0),(9,'牙刷',2,'4323',15.11,18.13,3,12,'B02','B020','B20',1,0,1,1,'2017-02-08 17:52:10',5,'2017-02-08 17:56:04',4,'2017-02-08 17:56:06',3,7,'2017-02-08 17:56:09',12,NULL,0,1,0),(10,'毛巾',2,'433333333333',15.11,18.13,3,11,'B01','B010','B10',1,0,1,1,'2017-02-08 17:52:11',5,'2017-02-08 17:55:45',4,'2017-02-08 17:55:48',3,7,'2017-02-08 17:55:51',12,NULL,0,1,0),(11,'海章鱼',4,'31314',68.89,96.45,1,10,'C05','C050','C50',1,0,1,1,'2017-02-08 17:52:13',5,'2017-02-08 17:55:26',4,'2017-02-08 17:55:29',3,7,'2017-02-08 17:55:31',12,NULL,0,1,0),(12,'海龟',4,'2311313',58.89,82.45,1,9,'C04','C040','C40',1,0,1,1,'2017-02-08 17:52:15',5,'2017-02-08 17:55:08',4,'2017-02-08 17:55:10',3,7,'2017-02-08 17:55:13',12,NULL,0,1,0),(13,'海马',4,'1222222222222222',48.89,68.45,1,8,'C03','C030','C30',1,0,1,1,'2017-02-08 17:52:17',5,'2017-02-08 17:54:48',4,'2017-02-08 17:54:52',3,7,'2017-02-08 17:54:55',12,NULL,0,1,0),(14,'海虾',4,'1212121212',38.89,54.45,1,7,'C02','C020','C20',1,0,1,1,'2017-02-08 17:52:19',5,'2017-02-08 17:54:31',4,'2017-02-08 17:54:33',3,7,'2017-02-08 17:54:36',12,NULL,0,1,0),(15,'海鱼',4,'32323232',28.89,40.45,1,6,'C01','C010','C10',1,0,1,1,'2017-02-08 17:52:21',5,'2017-02-08 17:54:11',4,'2017-02-08 17:54:13',3,7,'2017-02-08 17:54:16',12,NULL,0,1,0),(16,'轮椅',3,'233333333113',150.50,195.65,2,5,'A05','A050','A50',1,0,1,1,'2017-02-08 17:52:23',5,'2017-02-08 17:53:53',4,'2017-02-08 17:53:56',3,7,'2017-02-08 17:53:58',12,NULL,0,0,0),(17,'办公桌',3,'1221',140.40,182.52,2,4,'A04','A040','A40',1,0,1,1,'2017-02-08 17:52:24',5,'2017-02-08 17:53:32',4,'2017-02-08 17:53:35',3,7,'2017-02-08 17:53:41',12,NULL,0,0,0),(18,'橱柜',3,'2323',130.30,169.39,2,3,'A03','A030','A30',1,0,1,1,'2017-02-08 17:52:25',5,'2017-02-08 17:53:16',4,'2017-02-08 17:53:18',3,7,'2017-02-08 17:53:21',12,NULL,0,0,0),(19,'椅子',3,'32',120.20,156.26,2,2,'A02','A020','A20',1,0,1,1,'2017-02-08 17:52:28',5,'2017-02-08 17:53:00',4,'2017-02-08 17:53:02',3,7,'2017-02-08 17:53:04',12,NULL,0,0,0),(20,'桌子',3,'121',110.10,143.13,2,1,'A01','A010','A10',1,0,1,1,'2017-02-08 17:52:29',5,'2017-02-08 17:52:44',4,'2017-02-08 17:52:47',3,7,'2017-02-08 17:52:49',12,NULL,0,0,0);
  
  /*Table structure for table `productcategory` */
  
  DROP TABLE IF EXISTS `productcategory`;
  
  CREATE TABLE `productcategory` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类 ID',
    `parent_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '父级分类 ID',
    `name` varchar(60) NOT NULL COMMENT '分类名称',
    `slug` varchar(60) NOT NULL DEFAULT '' COMMENT '分类缩写',
    `factor` int(11) unsigned NOT NULL DEFAULT '100' COMMENT '定价系数100 计算公式：进价 * 系数 /100',
    `status` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '状态',
    `sort` bigint(20) unsigned NOT NULL DEFAULT '99' COMMENT '排序',
    `is_batches` tinyint(2) NOT NULL DEFAULT '0' COMMENT '是否需要批次号 【0：不需要 1：需要】',
    PRIMARY KEY (`id`),
    KEY `parentid` (`parent_id`) USING BTREE,
    KEY `status` (`status`) USING BTREE
  ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='物料分类表';
  
  /*Data for the table `productcategory` */
  
  insert  into `productcategory`(`id`,`parent_id`,`name`,`slug`,`factor`,`status`,`sort`,`is_batches`) values (1,0,'生鲜','slug',110,1,1,1),(2,0,'商品','slug',120,1,1,1),(3,0,'固定资产','slug',130,1,1,0),(4,0,'海鲜','slug',140,1,1,1);
  
  /*Table structure for table `productinvoicingsale` */
  
  DROP TABLE IF EXISTS `productinvoicingsale`;
  
  CREATE TABLE `productinvoicingsale` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(100) DEFAULT NULL COMMENT '销存表单号',
    `sn` varchar(50) DEFAULT NULL COMMENT '销存单号',
    `department_id` int(11) DEFAULT NULL COMMENT '部门ID',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `warehouse_id` int(11) DEFAULT NULL COMMENT '仓库ID',
    `status` tinyint(2) DEFAULT NULL COMMENT '状态',
    `create_admin_id` int(11) DEFAULT NULL COMMENT '创建人',
    `create_time` datetime DEFAULT NULL COMMENT '创建时间',
    `sale_amount` float(10,2) DEFAULT NULL COMMENT '应销金额统计',
    `check_sale_amount` float(10,2) DEFAULT NULL COMMENT '实际销售金额统计',
    `profit_loss_cause` varchar(255) DEFAULT NULL COMMENT '损益原因',
    `aged_loss` varchar(255) DEFAULT NULL COMMENT '老化损坏',
    `last_invoic_amount` float(10,2) DEFAULT NULL COMMENT '上次结存余额',
    `predict_invoic_amount` float(10,2) DEFAULT NULL COMMENT '预计结存余额',
    `paid_amount` float(10,2) DEFAULT NULL COMMENT '上缴金额',
    `compensation_amount` float(10,2) DEFAULT NULL COMMENT '补偿金额',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='物料销存表';
  
  /*Data for the table `productinvoicingsale` */
  
  /*Table structure for table `productinvoicingsaleinfo` */
  
  DROP TABLE IF EXISTS `productinvoicingsaleinfo`;
  
  CREATE TABLE `productinvoicingsaleinfo` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `invoicing_sale_id` int(11) NOT NULL COMMENT '销售ID',
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '库存数量 ',
    `buying_number` int(11) NOT NULL COMMENT '销售数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `check_buying_num` int(11) DEFAULT '0',
    `pstock_id` int(11) NOT NULL COMMENT '库存ID',
    `batches` varchar(40) DEFAULT NULL COMMENT '批次号',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='物料销存物料详情表';
  
  /*Data for the table `productinvoicingsaleinfo` */
  
  /*Table structure for table `productlog` */
  
  DROP TABLE IF EXISTS `productlog`;
  
  CREATE TABLE `productlog` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `parent_id` int(11) NOT NULL COMMENT '物料ID',
    `name` varchar(255) DEFAULT NULL COMMENT '名称',
    `product_category_id` int(11) NOT NULL COMMENT '物料分类ID',
    `barcode` varchar(255) NOT NULL COMMENT '条形码',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '进货参考价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商物料ID',
    `num` varchar(40) NOT NULL COMMENT '物料编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` varchar(20) NOT NULL COMMENT '物料类别',
    `inventory_warning` int(11) NOT NULL DEFAULT '0' COMMENT '库存警告',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT ' 录入操作；2、录入审核；3、录入批准【用于历史物料数据记录表】；4、修改操作；5、修改审核；6、修改批准【用于历史物料数据记录表】 99删除',
    `create_admin_id` int(11) NOT NULL COMMENT '创建人',
    `create_time` datetime NOT NULL COMMENT '创建时间',
    `verfiy_admin_id` int(11) NOT NULL COMMENT '审核人ID',
    `verfiy_time` datetime NOT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) NOT NULL COMMENT '批准人',
    `approval_time` datetime NOT NULL COMMENT '批准时间',
    `modify_status` tinyint(1) NOT NULL COMMENT '1 录入操作；2、录入审核；3、录入批准【用于历史物料数据记录表】；4、修改操作；5、修改审核；6、修改批准【用于历史物料数据记录表】',
    `next_step` tinyint(1) NOT NULL DEFAULT '1' COMMENT ' 下一步操作：1录入 2 修改 3审核 4 批准 99删除',
    `memo` varchar(40) NOT NULL COMMENT '备注',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='物料日志表';
  
  /*Data for the table `productlog` */
  
  /*Table structure for table `productstock` */
  
  DROP TABLE IF EXISTS `productstock`;
  
  CREATE TABLE `productstock` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `batches` varchar(40) NOT NULL COMMENT '批次号',
    `product_id` int(11) NOT NULL COMMENT '物料编号',
    `number` int(11) NOT NULL COMMENT '数量',
    `warehouse_id` int(11) NOT NULL COMMENT '仓库ID',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    `purchase_price` float(10,2) DEFAULT NULL COMMENT '采购价格',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='物料库存表';
  
  /*Data for the table `productstock` */
  
  insert  into `productstock`(`id`,`batches`,`product_id`,`number`,`warehouse_id`,`supplier_id`,`type`,`purchase_price`) values (1,'Ruk20170207003',3,100,3,4,1,38.89),(2,'Ruk20170207003',2,100,3,4,1,8.89),(3,'Ruk20170207003',1,100,3,4,1,19.89),(4,'Ruk20170207002',3,100,2,4,1,38.89),(5,'Ruk20170207002',2,100,2,4,1,8.89),(6,'Ruk20170207002',1,100,2,4,1,19.89),(7,'Ruk20170207001',3,100,1,4,1,38.89),(8,'Ruk20170207001',2,100,1,4,1,8.89),(9,'Ruk20170207001',1,100,1,4,1,19.89);
  
  /*Table structure for table `productupdate` */
  
  DROP TABLE IF EXISTS `productupdate`;
  
  CREATE TABLE `productupdate` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料ID',
    `name` varchar(255) DEFAULT NULL COMMENT '名称',
    `product_category_id` int(11) NOT NULL COMMENT '物料分类ID',
    `barcode` varchar(255) NOT NULL COMMENT '条形码',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '进货参考价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商物料ID',
    `num` varchar(40) NOT NULL COMMENT '物料编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `inventory_warning` int(11) NOT NULL DEFAULT '0' COMMENT '库存警告',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态',
    `create_admin_id` int(11) NOT NULL COMMENT '创建人',
    `create_time` datetime DEFAULT NULL COMMENT '创建时间',
    `verify_admin_id` int(11) DEFAULT NULL COMMENT '审核人ID',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT NULL COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) DEFAULT NULL COMMENT '完成操作人',
    `operation_time` datetime DEFAULT NULL COMMENT '完成时间',
    `config_id` int(11) NOT NULL COMMENT '流程ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `is_batches` tinyint(2) DEFAULT '0' COMMENT '是否需要批次号 【0：不需要 1：需要】',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='物料修改表';
  
  /*Data for the table `productupdate` */
  
  /*Table structure for table `productupdatelog` */
  
  DROP TABLE IF EXISTS `productupdatelog`;
  
  CREATE TABLE `productupdatelog` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料ID',
    `name` varchar(255) DEFAULT NULL COMMENT '名称',
    `product_category_id` int(11) NOT NULL COMMENT '物料分类ID',
    `barcode` varchar(255) NOT NULL COMMENT '条形码',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '进货参考价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商物料ID',
    `num` varchar(40) NOT NULL COMMENT '物料编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `inventory_warning` int(11) NOT NULL DEFAULT '0' COMMENT '库存警告',
    `is_batches` tinyint(2) DEFAULT '0' COMMENT '是否需要批次号 【0：不需要 1：需要】',
    `create_time` datetime NOT NULL COMMENT '修改时间',
    `update_product_id` int(11) NOT NULL COMMENT '修改申请ID',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='物料修改日志表';
  
  /*Data for the table `productupdatelog` */
  
  /*Table structure for table `role` */
  
  DROP TABLE IF EXISTS `role`;
  
  CREATE TABLE `role` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(100) NOT NULL COMMENT '角色名称',
    `department_id` int(11) NOT NULL COMMENT '部门ID',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `is_sole` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否唯一',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='角色表';
  
  /*Data for the table `role` */
  
  insert  into `role`(`id`,`name`,`department_id`,`status`,`is_sole`) values (1,'超级管理员',1,1,1),(2,'流程管理员',1,1,1),(3,'业务管理员',1,1,1),(4,'采购员',2,1,0),(5,'审核员',2,1,1),(6,'批准员',2,1,1),(7,'执行员',2,1,1);
  
  /*Table structure for table `roleauth` */
  
  DROP TABLE IF EXISTS `roleauth`;
  
  CREATE TABLE `roleauth` (
    `role_id` int(11) NOT NULL COMMENT 'roleID',
    `auth` varchar(40) NOT NULL COMMENT '权限'
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='权限表';
  
  /*Data for the table `roleauth` */
  
  /*Table structure for table `rolejurisdiction` */
  
  DROP TABLE IF EXISTS `rolejurisdiction`;
  
  CREATE TABLE `rolejurisdiction` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `roleId` int(11) NOT NULL COMMENT '角色ID',
    `menu_id` int(11) NOT NULL COMMENT '菜单ID',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=355 DEFAULT CHARSET=utf8 COMMENT='角色权限表';
  
  /*Data for the table `rolejurisdiction` */
  
  insert  into `rolejurisdiction`(`id`,`roleId`,`menu_id`) values (1,3,8),(2,3,9),(3,3,13),(4,3,14),(5,3,15),(6,3,16),(7,3,17),(8,3,18),(9,3,19),(10,3,20),(11,3,22),(12,3,23),(13,3,30),(14,3,31),(15,3,33),(16,3,34),(17,3,43),(18,3,44),(19,3,45),(20,3,46),(21,3,55),(22,3,56),(23,3,65),(24,3,66),(25,3,68),(26,3,70),(27,3,25),(28,3,28),(29,3,35),(30,3,36),(31,3,37),(32,3,38),(33,3,39),(34,3,40),(35,3,41),(36,3,42),(37,3,47),(38,3,48),(39,3,49),(40,3,50),(41,3,52),(42,3,53),(43,3,60),(44,3,61),(45,3,62),(46,3,63),(47,3,64),(48,3,69),(49,3,71),(50,3,72),(51,3,73),(52,3,74),(53,3,75),(54,3,76),(55,3,77),(56,3,78),(57,3,79),(58,3,80),(59,3,81),(60,2,8),(61,2,9),(62,2,13),(63,2,14),(64,2,15),(65,2,16),(66,2,17),(67,2,18),(68,2,19),(69,2,20),(70,2,22),(71,2,23),(72,2,30),(73,2,31),(74,2,33),(75,2,34),(76,2,43),(77,2,44),(78,2,45),(79,2,46),(80,2,55),(81,2,56),(82,2,65),(83,2,66),(84,2,68),(85,2,70),(86,2,25),(87,2,28),(88,2,35),(89,2,36),(90,2,37),(91,2,38),(92,2,39),(93,2,40),(94,2,41),(95,2,42),(96,2,47),(97,2,48),(98,2,49),(99,2,50),(100,2,52),(101,2,53),(102,2,60),(103,2,61),(104,2,62),(105,2,63),(106,2,64),(107,2,69),(108,2,71),(109,2,72),(110,2,73),(111,2,74),(112,2,75),(113,2,76),(114,2,77),(115,2,78),(116,2,79),(117,2,80),(118,2,81),(119,7,8),(120,7,9),(121,7,13),(122,7,14),(123,7,15),(124,7,16),(125,7,17),(126,7,18),(127,7,19),(128,7,20),(129,7,22),(130,7,23),(131,7,30),(132,7,31),(133,7,33),(134,7,34),(135,7,43),(136,7,44),(137,7,45),(138,7,46),(139,7,55),(140,7,56),(141,7,65),(142,7,66),(143,7,68),(144,7,70),(145,7,25),(146,7,28),(147,7,35),(148,7,36),(149,7,37),(150,7,38),(151,7,39),(152,7,40),(153,7,41),(154,7,42),(155,7,47),(156,7,48),(157,7,49),(158,7,50),(159,7,52),(160,7,53),(161,7,60),(162,7,61),(163,7,62),(164,7,63),(165,7,64),(166,7,69),(167,7,71),(168,7,72),(169,7,73),(170,7,74),(171,7,75),(172,7,76),(173,7,77),(174,7,78),(175,7,79),(176,7,80),(177,7,81),(178,6,8),(179,6,9),(180,6,13),(181,6,14),(182,6,15),(183,6,16),(184,6,17),(185,6,18),(186,6,19),(187,6,20),(188,6,22),(189,6,23),(190,6,30),(191,6,31),(192,6,33),(193,6,34),(194,6,43),(195,6,44),(196,6,45),(197,6,46),(198,6,55),(199,6,56),(200,6,65),(201,6,66),(202,6,68),(203,6,70),(204,6,25),(205,6,28),(206,6,35),(207,6,36),(208,6,37),(209,6,38),(210,6,39),(211,6,40),(212,6,41),(213,6,42),(214,6,47),(215,6,48),(216,6,49),(217,6,50),(218,6,52),(219,6,53),(220,6,60),(221,6,61),(222,6,62),(223,6,63),(224,6,64),(225,6,69),(226,6,71),(227,6,72),(228,6,73),(229,6,74),(230,6,75),(231,6,76),(232,6,77),(233,6,78),(234,6,79),(235,6,80),(236,6,81),(237,5,8),(238,5,9),(239,5,13),(240,5,14),(241,5,15),(242,5,16),(243,5,17),(244,5,18),(245,5,19),(246,5,20),(247,5,22),(248,5,23),(249,5,30),(250,5,31),(251,5,33),(252,5,34),(253,5,43),(254,5,44),(255,5,45),(256,5,46),(257,5,55),(258,5,56),(259,5,65),(260,5,66),(261,5,68),(262,5,70),(263,5,25),(264,5,28),(265,5,35),(266,5,36),(267,5,37),(268,5,38),(269,5,39),(270,5,40),(271,5,41),(272,5,42),(273,5,47),(274,5,48),(275,5,49),(276,5,50),(277,5,52),(278,5,53),(279,5,60),(280,5,61),(281,5,62),(282,5,63),(283,5,64),(284,5,69),(285,5,71),(286,5,72),(287,5,73),(288,5,74),(289,5,75),(290,5,76),(291,5,77),(292,5,78),(293,5,79),(294,5,80),(295,5,81),(296,4,8),(297,4,9),(298,4,13),(299,4,14),(300,4,15),(301,4,16),(302,4,17),(303,4,18),(304,4,19),(305,4,20),(306,4,22),(307,4,23),(308,4,30),(309,4,31),(310,4,33),(311,4,34),(312,4,43),(313,4,44),(314,4,45),(315,4,46),(316,4,55),(317,4,56),(318,4,65),(319,4,66),(320,4,68),(321,4,70),(322,4,25),(323,4,28),(324,4,35),(325,4,36),(326,4,37),(327,4,38),(328,4,39),(329,4,40),(330,4,41),(331,4,42),(332,4,47),(333,4,48),(334,4,49),(335,4,50),(336,4,52),(337,4,53),(338,4,60),(339,4,61),(340,4,62),(341,4,63),(342,4,64),(343,4,69),(344,4,71),(345,4,72),(346,4,73),(347,4,74),(348,4,75),(349,4,76),(350,4,77),(351,4,78),(352,4,79),(353,4,80),(354,4,81);
  
  /*Table structure for table `salecheck` */
  
  DROP TABLE IF EXISTS `salecheck`;
  
  CREATE TABLE `salecheck` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '应销金额总价',
    `sale_total_amount` float(10,2) NOT NULL COMMENT '实销金额总价',
    `department_id` int(11) NOT NULL DEFAULT '0' COMMENT '部门ID',
    `warehouse_id` int(11) NOT NULL COMMENT '仓库ID',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) DEFAULT '0' COMMENT '审核人',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT '0' COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) DEFAULT NULL COMMENT '完成人',
    `operation_time` datetime DEFAULT NULL COMMENT '完成时间',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `config_id` int(11) NOT NULL COMMENT '流程规则ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `remark` varchar(100) NOT NULL COMMENT '损益原因',
    `paid_amount` float(10,2) NOT NULL COMMENT '上缴金额',
    `compensation_amount` float(10,2) NOT NULL COMMENT '补偿金额',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='销存盘点表';
  
  /*Data for the table `salecheck` */
  
  /*Table structure for table `salecheckproduct` */
  
  DROP TABLE IF EXISTS `salecheckproduct`;
  
  CREATE TABLE `salecheckproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `sale_check_id` int(11) NOT NULL COMMENT '销售ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '库存数量 ',
    `buying_number` int(11) NOT NULL COMMENT '销售数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` int(11) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `warehouse_id` int(11) NOT NULL COMMENT '存放库区ID',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    `pstock_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库库存ID',
    `batches` varchar(40) DEFAULT NULL COMMENT '批次号',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='销存盘点物料表';
  
  /*Data for the table `salecheckproduct` */
  
  /*Table structure for table `salesorder` */
  
  DROP TABLE IF EXISTS `salesorder`;
  
  CREATE TABLE `salesorder` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `sale_order_id` varchar(40) NOT NULL COMMENT '销售订单ID',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `real_amount` decimal(10,2) DEFAULT NULL COMMENT '实收金额',
    `department_id` int(11) NOT NULL DEFAULT '0' COMMENT '部门ID',
    `customer_company` varchar(40) DEFAULT NULL COMMENT '顾客公司',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `operation_admin_id` int(11) DEFAULT NULL COMMENT '完成人',
    `operation_time` datetime DEFAULT NULL COMMENT '完成时间',
    `custom_pay_service_id` int(11) DEFAULT NULL COMMENT '收支员工id',
    `down_payment_pay_ways` int(2) DEFAULT NULL COMMENT '定金类型',
    `down_payment` decimal(10,2) DEFAULT '0.00' COMMENT '定金金额',
    `benefit_money` decimal(10,2) DEFAULT '0.00' COMMENT '特别减免金额',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '订单状态类别：0-待支付；1-正常结束；2-异常结束。',
    `approval_admin_id` int(2) DEFAULT NULL,
    `approval_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `verify_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
    `verify_admin_id` int(2) DEFAULT NULL,
    `remark` varchar(255) DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='仓库销售表';
  
  /*Data for the table `salesorder` */
  
  insert  into `salesorder`(`id`,`name`,`sn`,`sale_order_id`,`total_amount`,`real_amount`,`department_id`,`customer_company`,`create_admin_id`,`operation_admin_id`,`operation_time`,`custom_pay_service_id`,`down_payment_pay_ways`,`down_payment`,`benefit_money`,`status`,`approval_admin_id`,`approval_time`,`create_time`,`verify_time`,`verify_admin_id`,`remark`) values (22,'213','ZZDD20170223001','148782179786',148.88,148.88,0,'123',1,1,'2017-02-23 11:51:06',2,NULL,0.00,0.00,1,NULL,'2017-02-23 11:51:06','2017-02-23 00:00:00','2017-02-23 11:51:06',NULL,NULL),(23,'321','ZZDD20170223002','148783348613',21.88,21.88,0,'321',1,1,NULL,2,NULL,0.00,0.00,0,NULL,'2017-02-23 15:04:46','2017-02-23 00:00:00','2017-02-23 15:04:46',NULL,NULL),(24,'321wode','ZZDD20170223003','148783406612',21.88,21.88,0,'321',1,2,NULL,1,NULL,0.00,0.00,0,NULL,'2017-02-23 15:14:26','2017-02-23 00:00:00','2017-02-23 15:14:26',NULL,NULL),(25,'321','ZZDD20170223004','148783488015',21.88,21.88,0,'321',1,1,NULL,1,NULL,0.00,0.00,0,NULL,'2017-02-23 15:28:00','2017-02-24 00:00:00','2017-02-23 15:28:00',NULL,NULL),(26,'我爱你','ZZDD20170223004','1487835088100',262.56,262.56,0,'321',2,2,NULL,1,NULL,0.00,0.00,0,NULL,'2017-02-23 15:31:28','2017-02-23 00:00:00','2017-02-23 15:31:28',NULL,NULL);
  
  /*Table structure for table `salesorderproduct` */
  
  DROP TABLE IF EXISTS `salesorderproduct`;
  
  CREATE TABLE `salesorderproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(20) NOT NULL COMMENT '物料id ',
    `sale_order_id` varchar(40) NOT NULL COMMENT '销售订单ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售定价',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '销售数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `warehouse_id` int(11) DEFAULT NULL COMMENT '仓库id',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `barcode` varchar(40) DEFAULT NULL COMMENT '批次号',
    `material_type` tinyint(2) DEFAULT NULL COMMENT '物料类别',
    `product_cate_id` tinyint(2) DEFAULT NULL COMMENT '物料分类',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 COMMENT='销售订单物料表';
  
  /*Data for the table `salesorderproduct` */
  
  insert  into `salesorderproduct`(`id`,`product_id`,`sale_order_id`,`name`,`price`,`sale_price`,`product_number`,`total_amount`,`supplier_id`,`supplier_product_id`,`warehouse_id`,`num`,`spec`,`unit`,`barcode`,`material_type`,`product_cate_id`) values (28,9,'148782179786','牙刷',18.13,21.88,2,43.76,3,12,NULL,'4323','B020','B20','4323',1,2),(29,8,'148782179786','茶缸',24.26,9.78,2,19.56,3,13,NULL,'342234','B030','B30','342234',1,2),(30,7,'148782179786','杯子',21.74,42.78,2,85.56,3,14,NULL,'31141','B040','B40','31141',1,2),(31,9,'148783348613','牙刷',18.13,21.88,1,21.88,3,12,NULL,'4323','B020','B20','4323',1,2),(32,9,'148783406612','牙刷',18.13,21.88,1,21.88,3,12,NULL,'4323','B020','B20','4323',1,2),(33,9,'148783488015','牙刷',18.13,21.88,1,21.88,3,12,NULL,'4323','B020','B20','4323',1,2),(34,9,'1487835088100','牙刷',18.13,21.88,12,262.56,3,12,1,'4323','B020','B20','4323',1,2);
  
  /*Table structure for table `supplier` */
  
  DROP TABLE IF EXISTS `supplier`;
  
  CREATE TABLE `supplier` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(40) NOT NULL COMMENT '供应商名称',
    `num` varchar(40) NOT NULL COMMENT '供应商编号',
    `level` varchar(2) NOT NULL DEFAULT 'D' COMMENT '分级',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `create_time` datetime NOT NULL COMMENT '创建时间',
    `pay_period` tinyint(2) NOT NULL DEFAULT '1' COMMENT '付款账期 【1：日结 2：周结 3：月结 4：季度结】',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='供应商表';
  
  /*Data for the table `supplier` */
  
  insert  into `supplier`(`id`,`name`,`num`,`level`,`status`,`create_time`,`pay_period`) values (1,'海鲜供应商','HXS','A',1,'2017-02-07 15:50:03',1),(2,'固定资产商','GDZC','B',1,'2017-02-07 15:50:03',2),(3,'商品供应商','spgy','C',1,'2017-02-07 15:50:03',3),(4,'生鲜供应商','sxgy','D',1,'2017-02-07 15:50:03',4);
  
  /*Table structure for table `supplierproduct` */
  
  DROP TABLE IF EXISTS `supplierproduct`;
  
  CREATE TABLE `supplierproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '进货参考价格',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `is_update` tinyint(2) DEFAULT '0' COMMENT '是否修改 0：无  1：是',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COMMENT='供应商出品表';
  
  /*Data for the table `supplierproduct` */
  
  insert  into `supplierproduct`(`id`,`name`,`purchase_price`,`supplier_id`,`num`,`spec`,`unit`,`material_type`,`status`,`is_update`) values (1,'桌子',110.10,2,'A01','A010','A10',1,1,0),(2,'椅子',120.20,2,'A02','A020','A20',1,1,0),(3,'橱柜',130.30,2,'A03','A030','A30',1,1,0),(4,'办公桌',140.40,2,'A04','A040','A40',1,1,0),(5,'轮椅',150.50,2,'A05','A050','A50',1,1,0),(6,'海鱼',28.89,1,'C01','C010','C10',1,1,0),(7,'海虾',38.89,1,'C02','C020','C20',1,1,0),(8,'海马',48.89,1,'C03','C030','C30',1,1,0),(9,'海龟',58.89,1,'C04','C040','C40',1,1,0),(10,'海章鱼',68.89,1,'C05','C050','C50',1,1,0),(11,'毛巾',15.11,3,'B01','B010','B10',1,1,0),(12,'牙刷',15.11,3,'B02','B020','B20',1,1,0),(13,'茶缸',20.22,3,'B03','B030','B30',1,1,0),(14,'杯子',18.12,3,'B04','B040','B40',1,1,0),(15,'小刀',20.67,3,'B05','B050','B50',1,1,0),(16,'猫肉',18.89,4,'D01','D010','D10',1,1,0),(17,'狗肉',28.89,4,'D02','D020','D20',1,1,0),(18,'老鼠肉',38.89,4,'D03','D030','D30',1,1,0),(19,'蛇肉',8.89,4,'D04','D040','D40',1,1,0),(20,'鸡肉',19.89,4,'D05','D050','D50',1,1,0);
  
  /*Table structure for table `warehouse` */
  
  DROP TABLE IF EXISTS `warehouse`;
  
  CREATE TABLE `warehouse` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(100) NOT NULL,
    `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 存储 2 存取销售 3销售',
    `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `area_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属地区',
    `is_sale` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否可销售库区',
    `num` varchar(40) DEFAULT NULL COMMENT '编号',
    `create_time` datetime DEFAULT NULL COMMENT '创建时间',
    `department_id` int(11) NOT NULL DEFAULT '1' COMMENT '部门ID',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='仓库分区表';
  
  /*Data for the table `warehouse` */
  
  insert  into `warehouse`(`id`,`name`,`type`,`status`,`area_id`,`is_sale`,`num`,`create_time`,`department_id`) values (1,'总仓库',1,1,0,0,'zck','2017-01-01 09:00:00',1),(2,'南山分店销售仓库1',3,1,3058,1,'NSBC1','2017-02-07 15:51:09',2),(3,'南山分店销售仓库2',3,1,3058,1,'NSBC2','2017-02-07 15:51:09',2),(4,'南山分店总仓1',1,1,3058,0,'NSBC3','2017-02-07 15:51:10',2),(5,'南山分店总仓2',1,1,3058,0,'NSBC4','2017-02-07 15:51:10',2),(6,'宝安分店销售仓库1',3,1,3059,1,'BAFD1','2017-02-07 15:51:10',3),(7,'宝安分店销售仓库2',3,1,3059,1,'BAFD2','2017-02-07 15:51:10',3),(8,'宝安分店总仓1',1,1,3059,0,'BAZD1','2017-02-07 15:51:10',3),(9,'宝安分店总仓2',1,1,3059,0,'BAZD2','2017-02-07 15:51:10',3);
  
  /*Table structure for table `warehouseback` */
  
  DROP TABLE IF EXISTS `warehouseback`;
  
  CREATE TABLE `warehouseback` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库ID',
    `receive_warehouse_id` int(11) NOT NULL COMMENT '退回仓库',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `verify_admin_id` int(11) DEFAULT '0' COMMENT '审核人',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT '0' COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) DEFAULT NULL,
    `operation_time` datetime DEFAULT NULL,
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `config_id` int(11) NOT NULL COMMENT '流程规则ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `remark` varchar(255) DEFAULT NULL COMMENT '退仓说明',
    `is_buckle` tinyint(2) NOT NULL DEFAULT '0' COMMENT '是否扣仓【0：否 1：是】',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='退库表';
  
  /*Data for the table `warehouseback` */
  
  insert  into `warehouseback`(`id`,`name`,`sn`,`warehouse_id`,`receive_warehouse_id`,`total_amount`,`create_admin_id`,`create_time`,`verify_admin_id`,`verify_time`,`approval_admin_id`,`approval_time`,`operation_admin_id`,`operation_time`,`status`,`config_id`,`failCause`,`timing_type`,`remark`,`is_buckle`) values (4,'1','Tuic20170207001',1,5,116.67,1,'2017-02-07 16:36:49',5,NULL,4,NULL,7,NULL,0,6,NULL,0,'',0),(5,'退仓1','Tuic20170207002',1,4,38.89,1,'2017-02-07 17:21:45',5,NULL,4,NULL,7,NULL,0,6,NULL,0,'1',0);
  
  /*Table structure for table `warehousebackproduct` */
  
  DROP TABLE IF EXISTS `warehousebackproduct`;
  
  CREATE TABLE `warehousebackproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `back_id` int(11) NOT NULL COMMENT '退库订单ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '货品价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '数量 ',
    `buying_number` int(11) NOT NULL COMMENT '退库数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` int(11) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `warehouse_id` int(11) NOT NULL COMMENT '存放库区ID',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    `pstock_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库库存ID',
    `batches` varchar(40) DEFAULT NULL COMMENT '批次号',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='退库物料表';
  
  /*Data for the table `warehousebackproduct` */
  
  insert  into `warehousebackproduct`(`id`,`product_id`,`back_id`,`name`,`price`,`purchase_price`,`sale_price`,`product_number`,`buying_number`,`total_amount`,`supplier_id`,`supplier_product_id`,`num`,`spec`,`unit`,`material_type`,`warehouse_id`,`status`,`type`,`pstock_id`,`batches`) values (1,3,4,'老鼠肉',38.89,38.89,42.78,100,3,116.67,4,18,'12311312','D030','D30',1,1,1,1,7,'Ruk20170207001'),(2,3,5,'老鼠肉',38.89,38.89,42.78,100,1,38.89,4,18,'12311312','D030','D30',1,1,1,1,7,'Ruk20170207001');
  
  /*Table structure for table `warehousebuying` */
  
  DROP TABLE IF EXISTS `warehousebuying`;
  
  CREATE TABLE `warehousebuying` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `order_sn` varchar(40) NOT NULL COMMENT '订单编号',
    `warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库ID',
    `department_id` int(11) NOT NULL COMMENT '部门ID',
    `supplier_id` int(11) NOT NULL DEFAULT '0' COMMENT '供应商ID',
    `planning_date` date NOT NULL COMMENT '计划下单时间',
    `payment` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 预付 2定金 3后付',
    `deposit` float(10,2) DEFAULT '0.00' COMMENT '定金',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `payment_term` date DEFAULT NULL COMMENT '付款期',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '审核人',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) NOT NULL COMMENT '入库人',
    `operation_time` datetime DEFAULT NULL COMMENT '执行时间',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `config_id` int(11) NOT NULL,
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='入库表';
  
  /*Data for the table `warehousebuying` */
  
  insert  into `warehousebuying`(`id`,`name`,`sn`,`order_sn`,`warehouse_id`,`department_id`,`supplier_id`,`planning_date`,`payment`,`deposit`,`total_amount`,`payment_term`,`create_admin_id`,`verify_admin_id`,`verify_time`,`approval_admin_id`,`approval_time`,`operation_admin_id`,`operation_time`,`status`,`create_time`,`config_id`,`failCause`,`timing_type`,`type`) values (1,'仓库盘点','Ruk20170207001','Ojs20170207155611001',1,1,4,'2017-02-07',3,100.00,6767.00,'2017-02-07',1,5,'2017-02-07 15:59:11',4,'2017-02-07 15:59:14',7,'2017-02-07 15:59:17',3,'2017-02-07 15:58:12',5,'',0,1),(2,'部门盘点','Ruk20170207002','ONSB20170207155641001',2,2,4,'2017-02-07',3,100.00,6767.00,'2017-02-07',1,5,'2017-02-07 15:59:01',4,'2017-02-07 15:59:04',7,'2017-02-07 15:59:06',3,'2017-02-07 15:58:24',5,'',0,1),(3,'总盘点','Ruk20170207003','ONSB20170207155715001',3,2,4,'2017-02-07',3,100100.00,6767.00,'2017-02-07',1,5,'2017-02-07 15:58:43',4,'2017-02-07 15:58:50',7,'2017-02-07 15:58:56',3,'2017-02-07 15:58:35',5,'',0,1),(6,'库存','Ruk20170208001','ONSB20170208175920001',3,2,3,'2017-02-08',3,NULL,5178.86,'2017-02-08',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:01:53',5,NULL,0,1),(7,'库存','Ruk20170208002','ONSB20170208175856001',3,2,4,'2017-02-08',3,NULL,5714.28,'2017-02-08',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:02:04',5,NULL,0,1),(8,'库存','Ruk20170208003','ONSB20170208175829001',2,2,2,'2017-02-08',3,12.00,14333.00,'2017-02-08',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:02:14',5,NULL,0,1),(9,'库存','Ruk20170208004','Ojs20170208175806001',1,1,1,'2017-02-08',3,12.00,3474.53,'2017-02-08',1,5,'2017-02-08 18:02:35',4,'2017-02-08 18:02:38',7,NULL,2,'2017-02-08 18:02:25',5,NULL,0,1);
  
  /*Table structure for table `warehousebuyingproduct` */
  
  DROP TABLE IF EXISTS `warehousebuyingproduct`;
  
  CREATE TABLE `warehousebuyingproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `buying_id` int(11) NOT NULL COMMENT '入库订单ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '货品价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `product_number` int(11) NOT NULL COMMENT '采购数量 ',
    `buying_number` int(11) NOT NULL COMMENT '入库数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `warehouse_id` int(11) NOT NULL COMMENT '存放库区ID',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8 COMMENT='采购下定物料表';
  
  /*Data for the table `warehousebuyingproduct` */
  
  insert  into `warehousebuyingproduct`(`id`,`product_id`,`buying_id`,`name`,`price`,`purchase_price`,`product_number`,`buying_number`,`total_amount`,`supplier_id`,`supplier_product_id`,`num`,`spec`,`unit`,`material_type`,`warehouse_id`,`status`) values (1,3,1,'老鼠肉',38.89,38.89,100,100,3889.00,4,18,'12311312','D030','D30',1,1,1),(2,2,1,'蛇肉',8.89,8.89,100,100,889.00,4,19,'3223223','D040','D40',1,1,1),(3,1,1,'鸡肉',19.89,19.89,100,100,1989.00,4,20,'2321','D050','D50',1,1,1),(4,3,2,'老鼠肉',38.89,38.89,100,100,3889.00,4,18,'12311312','D030','D30',1,2,1),(5,2,2,'蛇肉',8.89,8.89,100,100,889.00,4,19,'3223223','D040','D40',1,2,1),(6,1,2,'鸡肉',19.89,19.89,100,100,1989.00,4,20,'2321','D050','D50',1,2,1),(7,3,3,'老鼠肉',38.89,38.89,100,100,3889.00,4,18,'12311312','D030','D30',1,3,1),(8,2,3,'蛇肉',8.89,8.89,100,100,889.00,4,19,'3223223','D040','D40',1,3,1),(9,1,3,'鸡肉',19.89,19.89,100,100,1989.00,4,20,'2321','D050','D50',1,3,1),(20,10,6,'毛巾',15.11,15.11,56,56,846.16,3,11,'433333333333','B010','B10',2,3,1),(21,9,6,'牙刷',15.11,15.11,56,56,846.16,3,12,'4323','B020','B20',2,3,1),(22,8,6,'茶缸',20.22,20.22,65,65,1314.30,3,13,'342234','B030','B30',2,3,1),(23,7,6,'杯子',18.12,18.12,56,56,1014.72,3,14,'31141','B040','B40',2,3,1),(24,6,6,'小刀',20.67,20.67,56,56,1157.52,3,15,'3413413','B050','B50',2,3,1),(25,5,7,'猫肉',18.89,18.89,45,45,850.05,4,16,'34111','D010','D10',1,3,1),(26,4,7,'狗肉',28.89,28.89,54,54,1560.06,4,17,'3113413','D020','D20',1,3,1),(27,3,7,'老鼠肉',38.89,38.89,45,45,1750.05,4,18,'12311312','D030','D30',1,3,1),(28,2,7,'蛇肉',8.89,8.89,54,54,480.06,4,19,'3223223','D040','D40',1,3,1),(29,1,7,'鸡肉',19.89,19.89,54,54,1074.06,4,20,'2321','D050','D50',1,3,1),(30,20,8,'桌子',110.10,110.10,22,22,2422.20,2,1,'121','A010','A10',3,2,1),(31,19,8,'椅子',120.20,120.20,22,22,2644.40,2,2,'32','A020','A20',3,2,1),(32,18,8,'橱柜',130.30,130.30,22,22,2866.60,2,3,'2323','A030','A30',3,2,1),(33,17,8,'办公桌',140.40,140.40,22,22,3088.80,2,4,'1221','A040','A40',3,2,1),(34,16,8,'轮椅',150.50,150.50,22,22,3311.00,2,5,'233333333113','A050','A50',3,2,1),(35,15,9,'海鱼',28.89,28.89,21,21,606.69,1,6,'32323232','C010','C10',4,1,1),(36,14,9,'海虾',38.89,38.89,21,21,816.69,1,7,'1212121212','C020','C20',4,1,1),(37,13,9,'海马',48.89,48.89,12,12,586.68,1,8,'1222222222222222','C030','C30',4,1,1),(38,12,9,'海龟',58.89,58.89,12,12,706.68,1,9,'2311313','C040','C40',4,1,1),(39,11,9,'海章鱼',68.89,68.89,11,11,757.79,1,10,'31314','C050','C50',4,1,1);
  
  /*Table structure for table `warehousecheckout` */
  
  DROP TABLE IF EXISTS `warehousecheckout`;
  
  CREATE TABLE `warehousecheckout` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库ID',
    `department_id` int(11) NOT NULL COMMENT '部门ID',
    `receive_warehouse_id` int(11) NOT NULL COMMENT '接收仓库',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) DEFAULT '0' COMMENT '审核人',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT '0' COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) NOT NULL COMMENT '完成人',
    `operation_time` datetime NOT NULL COMMENT '完成时间',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `config_id` int(11) NOT NULL COMMENT '流程规则ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `remark` varchar(255) DEFAULT NULL COMMENT '备注',
    `is_buckle` tinyint(2) NOT NULL DEFAULT '0' COMMENT '是否扣仓【0：否 1：是】',
    `total_cost` float(10,2) DEFAULT NULL COMMENT '总成本',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='出库表';
  
  /*Data for the table `warehousecheckout` */
  
  insert  into `warehousecheckout`(`id`,`name`,`sn`,`warehouse_id`,`department_id`,`receive_warehouse_id`,`total_amount`,`create_admin_id`,`verify_admin_id`,`verify_time`,`approval_admin_id`,`approval_time`,`operation_admin_id`,`operation_time`,`status`,`create_time`,`config_id`,`failCause`,`timing_type`,`remark`,`is_buckle`,`total_cost`) values (3,'1','Chuk20170207001',1,1,3,38.89,1,5,NULL,4,NULL,7,'2017-02-07 16:34:41',0,'2017-02-07 16:34:41',7,NULL,0,'',0,38.89),(4,'定时1','Chuk20170207002',1,1,2,8.89,1,5,NULL,4,NULL,7,'2017-02-07 17:19:20',0,'2017-02-07 17:19:20',7,NULL,0,'',0,8.89),(5,'定时2','Chuk20170207003',1,1,2,38.89,1,5,NULL,4,NULL,7,'2017-02-07 17:19:36',0,'2017-02-07 17:19:36',7,NULL,0,'',0,38.89);
  
  /*Table structure for table `warehousecheckoutproduct` */
  
  DROP TABLE IF EXISTS `warehousecheckoutproduct`;
  
  CREATE TABLE `warehousecheckoutproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `checkout_id` int(11) NOT NULL COMMENT '入库订单ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '货品价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '数量 ',
    `buying_number` int(11) NOT NULL COMMENT '入库数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` int(11) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `warehouse_id` int(11) NOT NULL COMMENT '存放库区ID',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    `pstock_id` int(11) DEFAULT '0' COMMENT '仓库库存ID',
    `batches` varchar(40) DEFAULT NULL COMMENT '批次号',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='出库物料表';
  
  /*Data for the table `warehousecheckoutproduct` */
  
  insert  into `warehousecheckoutproduct`(`id`,`product_id`,`checkout_id`,`name`,`price`,`purchase_price`,`sale_price`,`product_number`,`buying_number`,`total_amount`,`supplier_id`,`supplier_product_id`,`num`,`spec`,`unit`,`material_type`,`warehouse_id`,`status`,`type`,`pstock_id`,`batches`) values (1,3,3,'老鼠肉',38.89,38.89,42.78,100,1,38.89,4,18,'12311312','D030','D30',1,1,1,1,7,'Ruk20170207001'),(2,2,4,'蛇肉',8.89,8.89,9.78,100,1,8.89,4,19,'3223223','D040','D40',1,1,1,1,8,'Ruk20170207001'),(3,3,5,'老鼠肉',38.89,38.89,42.78,100,1,38.89,4,18,'12311312','D030','D30',1,1,1,1,7,'Ruk20170207001');
  
  /*Table structure for table `warehousegateway` */
  
  DROP TABLE IF EXISTS `warehousegateway`;
  
  CREATE TABLE `warehousegateway` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `warehouse_id` int(11) NOT NULL COMMENT '仓库ID',
    `product_id` int(11) NOT NULL COMMENT '商品ID',
    `type` int(2) NOT NULL COMMENT '类型（1：入库 2：出库）',
    `stock` int(11) NOT NULL DEFAULT '0' COMMENT '当前库存',
    `num` int(11) NOT NULL COMMENT '数量',
    `gateway_no` int(11) NOT NULL COMMENT '出入库单号',
    `gateway_type` int(2) NOT NULL COMMENT '出入库类型',
    `create_time` datetime NOT NULL,
    `comment` text COMMENT '备注',
    `product_type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    `batches` varchar(40) DEFAULT NULL COMMENT '仓库批次号',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='仓库商品出入库记录表';
  
  /*Data for the table `warehousegateway` */
  
  /*Table structure for table `warehousematerialreturn` */
  
  DROP TABLE IF EXISTS `warehousematerialreturn`;
  
  CREATE TABLE `warehousematerialreturn` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `buying_id` int(11) DEFAULT NULL COMMENT '入库ID',
    `warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库ID',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `department_id` int(11) NOT NULL COMMENT '部门ID',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) DEFAULT '0' COMMENT '审核人',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT '0' COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `operation_admin_id` int(11) DEFAULT NULL COMMENT ' 执行人',
    `operation_time` datetime DEFAULT NULL COMMENT '执行时间',
    `config_id` int(11) DEFAULT NULL COMMENT '流程ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `common` varchar(255) DEFAULT NULL COMMENT '退货原因',
    `planning_date` date DEFAULT NULL COMMENT '退货时间',
    `payment_term` date DEFAULT NULL COMMENT '退款时间',
    `is_buckle` tinyint(2) NOT NULL DEFAULT '0' COMMENT '是否扣仓【0：否 1：是】',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='物料退货';
  
  /*Data for the table `warehousematerialreturn` */
  
  /*Table structure for table `warehousematerialreturnproduct` */
  
  DROP TABLE IF EXISTS `warehousematerialreturnproduct`;
  
  CREATE TABLE `warehousematerialreturnproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `material_return_id` int(11) NOT NULL COMMENT '物料退货订单ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '货品价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '数量 ',
    `buying_number` int(11) NOT NULL COMMENT '物料退货数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `warehouse_id` int(11) NOT NULL COMMENT '存放库区ID',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    `pstock_id` int(11) DEFAULT '0' COMMENT '仓库库存ID',
    `batches` varchar(40) DEFAULT NULL COMMENT '批次号',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='物料退货物料表';
  
  /*Data for the table `warehousematerialreturnproduct` */
  
  /*Table structure for table `warehouseplanning` */
  
  DROP TABLE IF EXISTS `warehouseplanning`;
  
  CREATE TABLE `warehouseplanning` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库ID',
    `department_id` int(11) NOT NULL COMMENT '部门ID',
    `order_sn` varchar(100) NOT NULL COMMENT '订单号',
    `planning_date` date NOT NULL COMMENT '计划下单时间',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '审核人',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '下定执行人',
    `operation_time` datetime DEFAULT NULL COMMENT '执行时间',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `config_id` int(11) NOT NULL COMMENT '流程ID',
    `total_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `failCause` varchar(250) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `payment` tinyint(2) DEFAULT '3' COMMENT '预定付款方式',
    `deposit` float(11,0) DEFAULT NULL COMMENT '定金',
    `payment_term` date DEFAULT NULL COMMENT '付款时间',
    `buckle_amount` float(8,2) DEFAULT '0.00' COMMENT '扣项',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COMMENT='采购计划表';
  
  /*Data for the table `warehouseplanning` */
  
  insert  into `warehouseplanning`(`id`,`name`,`sn`,`warehouse_id`,`department_id`,`order_sn`,`planning_date`,`create_admin_id`,`verify_admin_id`,`verify_time`,`approval_admin_id`,`approval_time`,`operation_admin_id`,`operation_time`,`status`,`create_time`,`config_id`,`total_money`,`failCause`,`timing_type`,`type`,`supplier_id`,`payment`,`deposit`,`payment_term`,`buckle_amount`) values (1,'仓库盘点','Caig20170207001',1,1,'Ojs20170207155611001','2017-02-07',1,5,'2017-02-07 15:57:53',4,'2017-02-07 15:57:56',7,'2017-02-07 15:57:58',3,'2017-02-07 15:56:11',1,6767.00,'',0,1,4,3,100,'2017-02-07',0.00),(2,'部门盘点','Caig20170207002',2,2,'ONSB20170207155641001','2017-02-07',1,5,'2017-02-07 15:57:29',4,'2017-02-07 15:57:32',7,'2017-02-07 15:57:34',3,'2017-02-07 15:56:41',1,6767.00,'',0,1,4,3,100,'2017-02-07',0.00),(3,'总盘点','Caig20170207003',3,2,'ONSB20170207155715001','2017-02-07',1,5,'2017-02-07 15:57:19',4,'2017-02-07 15:57:22',7,'2017-02-07 15:57:24',3,'2017-02-07 15:57:15',1,6767.00,'',0,1,4,3,100100,'2017-02-07',0.00),(4,'定时任务测试1','Caig20170207004',1,1,'Ojs20170207171824001','2017-02-07',1,5,'2017-02-08 18:00:55',4,'2017-02-08 18:00:57',7,'2017-02-08 18:00:59',3,'2017-02-07 17:18:24',1,6767.00,NULL,0,1,4,3,100,'2017-02-07',0.00),(5,'定时2','Caig20170207005',1,1,'Ojs20170207171850001','2017-02-07',1,5,'2017-02-08 18:00:45',4,'2017-02-08 18:00:47',7,'2017-02-08 18:00:50',3,'2017-02-07 17:18:50',1,6767.00,NULL,0,1,4,3,100,'2017-02-07',0.00),(8,'库存','Caig20170208001',1,1,'Ojs20170208175806001','2017-02-08',1,5,'2017-02-08 18:00:35',4,'2017-02-08 18:00:37',7,'2017-02-08 18:00:40',3,'2017-02-08 17:58:06',1,3474.53,NULL,0,1,1,3,12,'2017-02-08',0.00),(9,'库存','Caig20170208002',2,2,'ONSB20170208175829001','2017-02-08',1,5,'2017-02-08 18:00:25',4,'2017-02-08 18:00:27',7,'2017-02-08 18:00:30',3,'2017-02-08 17:58:29',1,14333.00,NULL,0,1,2,3,12,'2017-02-08',0.00),(10,'库存','Caig20170208003',3,2,'ONSB20170208175856001','2017-02-08',1,5,'2017-02-08 18:00:16',4,'2017-02-08 18:00:18',7,'2017-02-08 18:00:20',3,'2017-02-08 17:58:56',1,5714.28,NULL,0,1,4,3,NULL,'2017-02-08',0.00),(11,'库存','Caig20170208004',3,2,'ONSB20170208175920001','2017-02-08',1,5,'2017-02-08 18:00:04',4,'2017-02-08 18:00:06',7,'2017-02-08 18:00:09',3,'2017-02-08 17:59:20',1,5178.86,NULL,0,1,3,3,NULL,'2017-02-08',0.00),(12,'152','Caig20170209001',1,1,'Ojs20170209144459001','2017-02-09',1,5,'2017-02-09 14:44:59',4,'2017-02-09 14:44:59',7,'2017-02-09 14:44:59',10,'2017-02-09 14:44:59',1,706.68,'12',0,1,1,1,12,'2017-02-09',20.00);
  
  /*Table structure for table `warehouseplanningproduct` */
  
  DROP TABLE IF EXISTS `warehouseplanningproduct`;
  
  CREATE TABLE `warehouseplanningproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `planning_id` int(11) NOT NULL COMMENT '采购计划id',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '预计采购价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '实际采购价格',
    `product_number` int(11) NOT NULL COMMENT '采购数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `product_cate_id` int(11) NOT NULL COMMENT '物料分类ID',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8 COMMENT='采购计划物料表';
  
  /*Data for the table `warehouseplanningproduct` */
  
  insert  into `warehouseplanningproduct`(`id`,`product_id`,`planning_id`,`name`,`price`,`purchase_price`,`product_number`,`total_amount`,`supplier_id`,`supplier_product_id`,`num`,`spec`,`unit`,`material_type`,`status`,`product_cate_id`) values (1,3,1,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1,1),(2,2,1,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1,1),(3,1,1,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1,1),(4,3,2,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1,1),(5,2,2,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1,1),(6,1,2,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1,1),(7,3,3,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1,1),(8,2,3,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1,1),(9,1,3,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1,1),(10,3,4,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1,1),(11,2,4,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1,1),(12,1,4,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1,1),(13,3,5,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1,1),(14,2,5,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1,1),(15,1,5,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1,1),(18,15,8,'海鱼',28.89,28.89,21,606.69,1,6,'32323232','C010','C10',1,1,4),(19,14,8,'海虾',38.89,38.89,21,816.69,1,7,'1212121212','C020','C20',1,1,4),(20,13,8,'海马',48.89,48.89,12,586.68,1,8,'1222222222222222','C030','C30',1,1,4),(21,12,8,'海龟',58.89,58.89,12,706.68,1,9,'2311313','C040','C40',1,1,4),(22,11,8,'海章鱼',68.89,68.89,11,757.79,1,10,'31314','C050','C50',1,1,4),(23,20,9,'桌子',110.10,110.10,22,2422.20,2,1,'121','A010','A10',1,1,3),(24,19,9,'椅子',120.20,120.20,22,2644.40,2,2,'32','A020','A20',1,1,3),(25,18,9,'橱柜',130.30,130.30,22,2866.60,2,3,'2323','A030','A30',1,1,3),(26,17,9,'办公桌',140.40,140.40,22,3088.80,2,4,'1221','A040','A40',1,1,3),(27,16,9,'轮椅',150.50,150.50,22,3311.00,2,5,'233333333113','A050','A50',1,1,3),(28,5,10,'猫肉',18.89,18.89,45,850.05,4,16,'34111','D010','D10',1,1,1),(29,4,10,'狗肉',28.89,28.89,54,1560.06,4,17,'3113413','D020','D20',1,1,1),(30,3,10,'老鼠肉',38.89,38.89,45,1750.05,4,18,'12311312','D030','D30',1,1,1),(31,2,10,'蛇肉',8.89,8.89,54,480.06,4,19,'3223223','D040','D40',1,1,1),(32,1,10,'鸡肉',19.89,19.89,54,1074.06,4,20,'2321','D050','D50',1,1,1),(33,10,11,'毛巾',15.11,15.11,56,846.16,3,11,'433333333333','B010','B10',1,1,2),(34,9,11,'牙刷',15.11,15.11,56,846.16,3,12,'4323','B020','B20',1,1,2),(35,8,11,'茶缸',20.22,20.22,65,1314.30,3,13,'342234','B030','B30',1,1,2),(36,7,11,'杯子',18.12,18.12,56,1014.72,3,14,'31141','B040','B40',1,1,2),(37,6,11,'小刀',20.67,20.67,56,1157.52,3,15,'3413413','B050','B50',1,1,2),(38,12,12,'海龟',58.89,58.89,12,706.68,1,9,'2311313','C040','C40',1,1,4);
  
  /*Table structure for table `warehouseprocurement` */
  
  DROP TABLE IF EXISTS `warehouseprocurement`;
  
  CREATE TABLE `warehouseprocurement` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `procurement_planning_id` int(11) NOT NULL COMMENT '采购计划id',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `order_sn` varchar(40) NOT NULL COMMENT '订单编号',
    `warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库ID',
    `department_id` int(11) NOT NULL COMMENT '部门ID',
    `supplier_id` int(11) NOT NULL DEFAULT '0' COMMENT '供应商ID',
    `planning_date` date NOT NULL COMMENT '计划下单时间',
    `payment` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 预付 2定金 3后付',
    `deposit` float(10,2) DEFAULT '0.00' COMMENT '定金',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `payment_term` date DEFAULT NULL COMMENT '付款期',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '审核人',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) NOT NULL COMMENT '下单操作人',
    `operation_time` datetime DEFAULT NULL COMMENT '执行时间',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `config_id` int(11) NOT NULL,
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='采购下定表';
  
  /*Data for the table `warehouseprocurement` */
  
  insert  into `warehouseprocurement`(`id`,`name`,`procurement_planning_id`,`sn`,`order_sn`,`warehouse_id`,`department_id`,`supplier_id`,`planning_date`,`payment`,`deposit`,`total_amount`,`payment_term`,`create_admin_id`,`verify_admin_id`,`verify_time`,`approval_admin_id`,`approval_time`,`operation_admin_id`,`operation_time`,`status`,`create_time`,`config_id`,`failCause`,`timing_type`,`type`) values (1,'总盘点',3,'Dingdxd20170207001','ONSB20170207155715001',3,2,4,'2017-02-07',3,100100.00,6767.00,'2017-02-07',1,5,'2017-02-07 15:58:31',4,'2017-02-07 15:58:33',7,'2017-02-07 15:58:35',3,'2017-02-07 15:57:24',4,'',0,1),(2,'部门盘点',2,'Dingdxd20170207002','ONSB20170207155641001',2,2,4,'2017-02-07',3,100.00,6767.00,'2017-02-07',1,5,'2017-02-07 15:58:18',4,'2017-02-07 15:58:21',7,'2017-02-07 15:58:24',3,'2017-02-07 15:57:34',4,'',0,1),(3,'仓库盘点',1,'Dingdxd20170207003','Ojs20170207155611001',1,1,4,'2017-02-07',3,100.00,6767.00,'2017-02-07',1,5,'2017-02-07 15:58:07',4,'2017-02-07 15:58:10',7,'2017-02-07 15:58:12',3,'2017-02-07 15:57:58',4,'',0,1),(4,'库存',11,'Dingdxd20170208001','ONSB20170208175920001',3,2,3,'2017-02-08',3,NULL,5178.86,'2017-02-08',1,5,'2017-02-08 18:01:21',4,'2017-02-08 18:01:23',7,'2017-02-08 18:01:53',3,'2017-02-08 18:00:09',4,NULL,0,1),(5,'库存',10,'Dingdxd20170208002','ONSB20170208175856001',3,2,4,'2017-02-08',3,NULL,5714.28,'2017-02-08',1,5,'2017-02-08 18:02:00',4,'2017-02-08 18:02:02',7,'2017-02-08 18:02:04',3,'2017-02-08 18:00:20',4,NULL,0,1),(6,'库存',9,'Dingdxd20170208003','ONSB20170208175829001',2,2,2,'2017-02-08',3,12.00,14333.00,'2017-02-08',1,5,'2017-02-08 18:02:10',4,'2017-02-08 18:02:12',7,'2017-02-08 18:02:14',3,'2017-02-08 18:00:30',4,NULL,0,1),(7,'库存',8,'Dingdxd20170208004','Ojs20170208175806001',1,1,1,'2017-02-08',3,12.00,3474.53,'2017-02-08',1,5,'2017-02-08 18:02:21',4,'2017-02-08 18:02:23',7,'2017-02-08 18:02:25',3,'2017-02-08 18:00:40',4,NULL,0,1),(8,'定时2',5,'Dingdxd20170208005','Ojs20170207171850001',1,1,4,'2017-02-07',3,100.00,6767.00,'2017-02-07',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:00:50',4,NULL,0,1),(9,'定时任务测试1',4,'Dingdxd20170208006','Ojs20170207171824001',1,1,4,'2017-02-07',3,100.00,6767.00,'2017-02-07',1,5,NULL,4,NULL,7,NULL,0,'2017-02-08 18:00:59',4,NULL,0,1);
  
  /*Table structure for table `warehouseprocurementproduct` */
  
  DROP TABLE IF EXISTS `warehouseprocurementproduct`;
  
  CREATE TABLE `warehouseprocurementproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `procurement_id` int(11) NOT NULL COMMENT '采购下定ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '货品价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `product_number` int(11) NOT NULL COMMENT '采购数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8 COMMENT='采购下定物料表';
  
  /*Data for the table `warehouseprocurementproduct` */
  
  insert  into `warehouseprocurementproduct`(`id`,`product_id`,`procurement_id`,`name`,`price`,`purchase_price`,`product_number`,`total_amount`,`supplier_id`,`supplier_product_id`,`num`,`spec`,`unit`,`material_type`,`status`) values (1,3,1,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1),(2,2,1,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1),(3,1,1,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1),(4,3,2,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1),(5,2,2,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1),(6,1,2,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1),(7,3,3,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1),(8,2,3,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1),(9,1,3,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1),(10,10,4,'毛巾',15.11,15.11,56,846.16,3,11,'433333333333','B010','B10',2,1),(11,9,4,'牙刷',15.11,15.11,56,846.16,3,12,'4323','B020','B20',2,1),(12,8,4,'茶缸',20.22,20.22,65,1314.30,3,13,'342234','B030','B30',2,1),(13,7,4,'杯子',18.12,18.12,56,1014.72,3,14,'31141','B040','B40',2,1),(14,6,4,'小刀',20.67,20.67,56,1157.52,3,15,'3413413','B050','B50',2,1),(15,5,5,'猫肉',18.89,18.89,45,850.05,4,16,'34111','D010','D10',1,1),(16,4,5,'狗肉',28.89,28.89,54,1560.06,4,17,'3113413','D020','D20',1,1),(17,3,5,'老鼠肉',38.89,38.89,45,1750.05,4,18,'12311312','D030','D30',1,1),(18,2,5,'蛇肉',8.89,8.89,54,480.06,4,19,'3223223','D040','D40',1,1),(19,1,5,'鸡肉',19.89,19.89,54,1074.06,4,20,'2321','D050','D50',1,1),(20,20,6,'桌子',110.10,110.10,22,2422.20,2,1,'121','A010','A10',3,1),(21,19,6,'椅子',120.20,120.20,22,2644.40,2,2,'32','A020','A20',3,1),(22,18,6,'橱柜',130.30,130.30,22,2866.60,2,3,'2323','A030','A30',3,1),(23,17,6,'办公桌',140.40,140.40,22,3088.80,2,4,'1221','A040','A40',3,1),(24,16,6,'轮椅',150.50,150.50,22,3311.00,2,5,'233333333113','A050','A50',3,1),(25,15,7,'海鱼',28.89,28.89,21,606.69,1,6,'32323232','C010','C10',4,1),(26,14,7,'海虾',38.89,38.89,21,816.69,1,7,'1212121212','C020','C20',4,1),(27,13,7,'海马',48.89,48.89,12,586.68,1,8,'1222222222222222','C030','C30',4,1),(28,12,7,'海龟',58.89,58.89,12,706.68,1,9,'2311313','C040','C40',4,1),(29,11,7,'海章鱼',68.89,68.89,11,757.79,1,10,'31314','C050','C50',4,1),(30,3,8,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1),(31,2,8,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1),(32,1,8,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1),(33,3,9,'老鼠肉',38.89,38.89,100,3889.00,4,18,'12311312','D030','D30',1,1),(34,2,9,'蛇肉',8.89,8.89,100,889.00,4,19,'3223223','D040','D40',1,1),(35,1,9,'鸡肉',19.89,19.89,100,1989.00,4,20,'2321','D050','D50',1,1);
  
  /*Table structure for table `warehousesale` */
  
  DROP TABLE IF EXISTS `warehousesale`;
  
  CREATE TABLE `warehousesale` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `sale_check_id` int(11) NOT NULL COMMENT '销存盘点ID',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `department_id` int(11) NOT NULL DEFAULT '0' COMMENT '部门ID',
    `warehouse_id` int(11) NOT NULL COMMENT '仓库ID',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) DEFAULT '0' COMMENT '审核人',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT '0' COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) DEFAULT NULL COMMENT '完成人',
    `operation_time` datetime DEFAULT NULL COMMENT '完成时间',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `config_id` int(11) NOT NULL COMMENT '流程规则ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='仓库销售表';
  
  /*Data for the table `warehousesale` */
  
  /*Table structure for table `warehousesaleproduct` */
  
  DROP TABLE IF EXISTS `warehousesaleproduct`;
  
  CREATE TABLE `warehousesaleproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `sale_id` int(11) NOT NULL COMMENT '销售ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '库存数量 ',
    `buying_number` int(11) NOT NULL COMMENT '销售数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `warehouse_id` int(11) NOT NULL COMMENT '存放库区ID',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    `pstock_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库库存ID',
    `batches` varchar(40) DEFAULT NULL COMMENT '批次号',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='仓库销售物料表';
  
  /*Data for the table `warehousesaleproduct` */
  
  /*Table structure for table `warehousetransfer` */
  
  DROP TABLE IF EXISTS `warehousetransfer`;
  
  CREATE TABLE `warehousetransfer` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `department_id` int(11) NOT NULL DEFAULT '0' COMMENT '部门ID',
    `warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库ID',
    `receive_warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '接受仓库ID',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) DEFAULT '0' COMMENT '审核人',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT '0' COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) NOT NULL COMMENT '完成人',
    `operation_time` datetime NOT NULL COMMENT '完成时间',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `config_id` int(11) NOT NULL COMMENT '流程规则ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `remark` varchar(255) DEFAULT NULL COMMENT '调仓说明',
    `is_buckle` tinyint(2) NOT NULL DEFAULT '0' COMMENT '是否扣仓【0：否 1：是】',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='调仓表';
  
  /*Data for the table `warehousetransfer` */
  
  insert  into `warehousetransfer`(`id`,`name`,`sn`,`total_amount`,`department_id`,`warehouse_id`,`receive_warehouse_id`,`create_admin_id`,`verify_admin_id`,`verify_time`,`approval_admin_id`,`approval_time`,`operation_admin_id`,`operation_time`,`status`,`create_time`,`config_id`,`failCause`,`timing_type`,`remark`,`is_buckle`) values (1,'调仓2','Diaoc20170207001',8.89,1,1,4,1,5,NULL,4,NULL,7,'2017-02-07 17:19:56',0,'2017-02-07 17:19:56',9,NULL,0,'1',0),(2,'调仓2','Diaoc20170207002',38.89,1,1,4,1,5,NULL,4,NULL,7,'2017-02-07 17:20:09',0,'2017-02-07 17:20:09',9,NULL,0,'1',0),(3,'调仓3','Diaoc20170207003',8.89,1,1,4,1,5,NULL,4,NULL,7,'2017-02-07 17:20:34',0,'2017-02-07 17:20:34',9,NULL,0,'12',0);
  
  /*Table structure for table `warehousetransferdep` */
  
  DROP TABLE IF EXISTS `warehousetransferdep`;
  
  CREATE TABLE `warehousetransferdep` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `warehouse_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库ID',
    `receive_warehouse_id` int(11) NOT NULL COMMENT '接收仓库',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `department_id` int(11) NOT NULL DEFAULT '0' COMMENT '部门ID',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) DEFAULT '0' COMMENT '审核人',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT '0' COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) NOT NULL COMMENT '完成人',
    `operation_time` datetime NOT NULL COMMENT '完成时间',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `config_id` int(11) NOT NULL COMMENT '流程规则ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `remark` varchar(255) DEFAULT NULL COMMENT '转货说明',
    `total_cost` float(10,2) DEFAULT NULL COMMENT '总成本',
    `is_buckle` tinyint(2) DEFAULT '0' COMMENT '是否扣仓【0：否 1：是】',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='转货';
  
  /*Data for the table `warehousetransferdep` */
  
  /*Table structure for table `warehousetransferdepproduct` */
  
  DROP TABLE IF EXISTS `warehousetransferdepproduct`;
  
  CREATE TABLE `warehousetransferdepproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `transfer_dep_id` int(11) NOT NULL COMMENT '转货订单ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '货品价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '数量 ',
    `buying_number` int(11) NOT NULL COMMENT '转货数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` int(11) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `warehouse_id` int(11) NOT NULL COMMENT '存放库区ID',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    `pstock_id` int(11) DEFAULT '0' COMMENT '仓库库存ID',
    `batches` varchar(40) DEFAULT NULL COMMENT '批次号',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='转货物料表';
  
  /*Data for the table `warehousetransferdepproduct` */
  
  /*Table structure for table `warehousetransferproduct` */
  
  DROP TABLE IF EXISTS `warehousetransferproduct`;
  
  CREATE TABLE `warehousetransferproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `transfer_id` int(11) NOT NULL COMMENT '转货订单ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '货品价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '数量 ',
    `buying_number` int(11) NOT NULL COMMENT '转货数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` int(11) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `warehouse_id` int(11) NOT NULL COMMENT '存放库区ID',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    `pstock_id` int(11) DEFAULT '0' COMMENT '仓库库存ID',
    `batches` varchar(40) DEFAULT NULL COMMENT '批次号',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='调仓物料表';
  
  /*Data for the table `warehousetransferproduct` */
  
  insert  into `warehousetransferproduct`(`id`,`product_id`,`transfer_id`,`name`,`price`,`purchase_price`,`sale_price`,`product_number`,`buying_number`,`total_amount`,`supplier_id`,`supplier_product_id`,`num`,`spec`,`unit`,`material_type`,`warehouse_id`,`status`,`type`,`pstock_id`,`batches`) values (1,2,1,'蛇肉',8.89,8.89,9.78,100,1,8.89,4,19,'3223223','D040','D40',1,1,1,1,8,'Ruk20170207001'),(2,3,2,'老鼠肉',38.89,38.89,42.78,100,1,38.89,4,18,'12311312','D030','D30',1,1,1,1,7,'Ruk20170207001'),(3,2,3,'蛇肉',8.89,8.89,9.78,100,1,8.89,4,19,'3223223','D040','D40',1,1,1,1,8,'Ruk20170207001');
  
  /*Table structure for table `warehousewastage` */
  
  DROP TABLE IF EXISTS `warehousewastage`;
  
  CREATE TABLE `warehousewastage` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) NOT NULL COMMENT '名称',
    `sn` varchar(40) NOT NULL COMMENT '表单号',
    `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
    `department_id` int(11) NOT NULL DEFAULT '0' COMMENT '部门ID',
    `warehouse_id` int(11) NOT NULL COMMENT '仓库ID',
    `create_admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '制表人',
    `verify_admin_id` int(11) DEFAULT '0' COMMENT '审核人',
    `verify_time` datetime DEFAULT NULL COMMENT '审核时间',
    `approval_admin_id` int(11) DEFAULT '0' COMMENT '批准人',
    `approval_time` datetime DEFAULT NULL COMMENT '批准时间',
    `operation_admin_id` int(11) NOT NULL COMMENT '完成人',
    `operation_time` datetime NOT NULL COMMENT '完成时间',
    `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 待审核 1 待批准 2待下定 9批准驳回 10挂起',
    `create_time` datetime NOT NULL COMMENT '制表时间',
    `config_id` int(11) NOT NULL COMMENT '流程规则ID',
    `failCause` varchar(255) DEFAULT NULL COMMENT '驳回理由',
    `timing_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '定时操作类型',
    `remark` varchar(255) DEFAULT NULL COMMENT '报损原因',
    `is_buckle` tinyint(2) NOT NULL DEFAULT '0' COMMENT '是否扣仓【0：否 1：是】',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='耗损表';
  
  /*Data for the table `warehousewastage` */
  
  insert  into `warehousewastage`(`id`,`name`,`sn`,`total_amount`,`department_id`,`warehouse_id`,`create_admin_id`,`verify_admin_id`,`verify_time`,`approval_admin_id`,`approval_time`,`operation_admin_id`,`operation_time`,`status`,`create_time`,`config_id`,`failCause`,`timing_type`,`remark`,`is_buckle`) values (1,'耗损申请','Haos20170207001',28.78,1,1,1,5,'2017-02-07 16:23:14',4,NULL,7,'2017-02-07 16:23:07',1,'2017-02-07 16:23:07',11,'',0,'1',0);
  
  /*Table structure for table `warehousewastageproduct` */
  
  DROP TABLE IF EXISTS `warehousewastageproduct`;
  
  CREATE TABLE `warehousewastageproduct` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '物料id ',
    `wastage_id` int(11) NOT NULL COMMENT '转货订单ID',
    `name` varchar(255) NOT NULL COMMENT '名称',
    `price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '货品价格',
    `purchase_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '采购价格',
    `sale_price` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `product_number` int(11) NOT NULL COMMENT '数量 ',
    `buying_number` int(11) NOT NULL COMMENT '转货数量 ',
    `total_amount` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '总价',
    `supplier_id` int(11) NOT NULL COMMENT '供应商ID',
    `supplier_product_id` int(11) NOT NULL COMMENT '供应商货品ID',
    `num` varchar(40) NOT NULL COMMENT '供应商出品编码',
    `spec` varchar(40) DEFAULT NULL COMMENT '规格',
    `unit` varchar(40) DEFAULT NULL COMMENT '单位',
    `material_type` int(11) NOT NULL DEFAULT '1' COMMENT '物料类别',
    `warehouse_id` int(11) NOT NULL COMMENT '存放库区ID',
    `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 无效 1有效 99删除',
    `type` tinyint(2) DEFAULT '1' COMMENT '类型 1：正常 2：例行 3：例外',
    `pstock_id` int(11) DEFAULT '0' COMMENT '仓库库存ID',
    `batches` varchar(40) DEFAULT NULL COMMENT '批次号',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='耗损物料表';
  
  /*Data for the table `warehousewastageproduct` */
  
  insert  into `warehousewastageproduct`(`id`,`product_id`,`wastage_id`,`name`,`price`,`purchase_price`,`sale_price`,`product_number`,`buying_number`,`total_amount`,`supplier_id`,`supplier_product_id`,`num`,`spec`,`unit`,`material_type`,`warehouse_id`,`status`,`type`,`pstock_id`,`batches`) values (1,1,1,'鸡肉',19.89,19.89,21.88,100,1,19.89,4,20,'2321','D050','D50',1,1,1,1,9,'Ruk20170207001'),(2,2,1,'蛇肉',8.89,8.89,9.78,100,1,8.89,4,19,'3223223','D040','D40',1,1,1,1,8,'Ruk20170207001');
  
  /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  