From de7fbd7bb83396262706e789389ff7c76aa0bfd4 Mon Sep 17 00:00:00 2001 From: huangfeng Date: Thu, 11 Apr 2024 16:48:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E9=98=B2=E7=81=AB?= =?UTF-8?q?=E5=A2=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + ncac/package/cacdb.sql | 3731 ++++++++++++++++++++++++++++++++++++++++ ncac/setup.sh | 8 + 3 files changed, 3740 insertions(+) create mode 100644 ncac/package/cacdb.sql diff --git a/.gitignore b/.gitignore index e7ebe3b..59c970d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ *.zip *.tar.gz *.rar +*.rpm \ No newline at end of file diff --git a/ncac/package/cacdb.sql b/ncac/package/cacdb.sql new file mode 100644 index 0000000..e795e2b --- /dev/null +++ b/ncac/package/cacdb.sql @@ -0,0 +1,3731 @@ +-- MySQL dump 10.13 Distrib 8.0.33, for Win64 (x86_64) +-- +-- Host: 192.168.1.84 Database: cacdb +-- ------------------------------------------------------ +-- Server version 5.7.44 + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!50503 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!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 */; + +-- +-- Table structure for table `admin` +-- +CREATE DATABASE IF NOT EXISTS `cacdb`; +USE `cacdb`; +ALTER SCHEMA `cacdb` DEFAULT CHARACTER SET utf8; + +DROP TABLE IF EXISTS `admin`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `admin` ( + `id` mediumint(9) NOT NULL AUTO_INCREMENT COMMENT '管理员id', + `name` varchar(30) NOT NULL COMMENT '管理员名称', + `password` char(32) NOT NULL COMMENT '管理员密码', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `admin` +-- + +LOCK TABLES `admin` WRITE; +/*!40000 ALTER TABLE `admin` DISABLE KEYS */; +INSERT INTO `admin` VALUES (1,'admin','e10adc3949ba59abbe56e057f20f883e'),(29,'admin123','0192023a7bbd73250516f069df18b500'),(30,'list','e10adc3949ba59abbe56e057f20f883e'); +/*!40000 ALTER TABLE `admin` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `article` +-- + +DROP TABLE IF EXISTS `article`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `article` ( + `id` mediumint(9) NOT NULL AUTO_INCREMENT COMMENT '文章id', + `title` varchar(60) NOT NULL COMMENT '文章标题', + `keywords` varchar(100) NOT NULL COMMENT '关键词', + `desc` varchar(255) NOT NULL COMMENT '描述', + `author` varchar(30) NOT NULL COMMENT '作者', + `thumb` varchar(160) NOT NULL COMMENT '缩略图', + `content` text NOT NULL COMMENT '内容', + `click` mediumint(9) NOT NULL DEFAULT '0' COMMENT '点击数', + `zan` mediumint(9) NOT NULL DEFAULT '0' COMMENT '点赞数', + `rec` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0:不推荐 1:推荐', + `time` int(10) NOT NULL COMMENT '发布时间', + `cateid` mediumint(9) NOT NULL COMMENT '所属栏目', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `article` +-- + +LOCK TABLES `article` WRITE; +/*!40000 ALTER TABLE `article` DISABLE KEYS */; +/*!40000 ALTER TABLE `article` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `auth_group` +-- + +DROP TABLE IF EXISTS `auth_group`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `auth_group` ( + `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, + `title` char(100) NOT NULL DEFAULT '', + `status` tinyint(1) NOT NULL DEFAULT '1', + `rules` char(80) NOT NULL DEFAULT '', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `auth_group` +-- + +LOCK TABLES `auth_group` WRITE; +/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */; +INSERT INTO `auth_group` VALUES (1,'超级管理员',1,''),(3,'链接专员',1,'11,17,13,12,14,15,16'),(4,'配置管理员',1,'2,8,4,3,9,7,6,5,10'),(5,'测试',1,'2,8,4,3,9,7,6,5,10'); +/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `auth_group_access` +-- + +DROP TABLE IF EXISTS `auth_group_access`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `auth_group_access` ( + `uid` mediumint(8) unsigned NOT NULL, + `group_id` mediumint(8) unsigned NOT NULL, + UNIQUE KEY `uid_group_id` (`uid`,`group_id`) USING BTREE, + KEY `uid` (`uid`) USING BTREE, + KEY `group_id` (`group_id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `auth_group_access` +-- + +LOCK TABLES `auth_group_access` WRITE; +/*!40000 ALTER TABLE `auth_group_access` DISABLE KEYS */; +INSERT INTO `auth_group_access` VALUES (1,1),(28,3),(29,5),(30,5); +/*!40000 ALTER TABLE `auth_group_access` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `auth_rule` +-- + +DROP TABLE IF EXISTS `auth_rule`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `auth_rule` ( + `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, + `name` char(80) NOT NULL DEFAULT '', + `title` char(20) NOT NULL DEFAULT '', + `type` tinyint(1) NOT NULL DEFAULT '1', + `status` tinyint(1) NOT NULL DEFAULT '1', + `condition` char(100) NOT NULL DEFAULT '', + `pid` mediumint(9) NOT NULL DEFAULT '0', + `level` tinyint(1) NOT NULL DEFAULT '0', + `sort` int(5) NOT NULL DEFAULT '50', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE KEY `name` (`name`) USING BTREE +) ENGINE=MyISAM AUTO_INCREMENT=41 DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `auth_rule` +-- + +LOCK TABLES `auth_rule` WRITE; +/*!40000 ALTER TABLE `auth_rule` DISABLE KEYS */; +INSERT INTO `auth_rule` VALUES (1,'tree','数据报表',1,1,'',0,0,1),(2,'bdz','设备台账管理',1,1,'',0,0,2),(16,'wtree/','报警值设置',1,1,'',11,1,50),(15,'paramindexset/','参数绑定',1,1,'',11,1,50),(14,'auth_rule/','权限列表',1,1,'',11,1,50),(5,'zsb/','主设备管理',1,1,'',2,1,5),(6,'lx/','主设备类型管理',1,1,'',2,1,7),(7,'mlx/','监测设备类型管理',1,1,'',2,1,8),(8,'cac/','数据推送平台管理',1,1,'',2,1,3),(9,'ied/','IED管理',1,1,'',2,1,6),(10,'msb/','检测设备',1,1,'',5,2,6),(11,'admin','系统管理',1,1,'',0,0,50),(12,'admin/','用户列表',1,1,'',11,1,50),(13,'auth_group/','用户组列表',1,1,'',11,1,50),(3,'bdz/','电站管理',1,1,'',2,1,3),(4,'jg/','设备间隔管理',1,1,'',2,1,4),(17,'cate/','菜单列表',1,1,'',11,1,50); +/*!40000 ALTER TABLE `auth_rule` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `bdz` +-- + +DROP TABLE IF EXISTS `bdz`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `bdz` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '电站ID', + `mc` varchar(50) NOT NULL COMMENT '电站名称', + `lx` varchar(20) DEFAULT NULL COMMENT '变电站/集控站', + `pid` char(32) DEFAULT NULL COMMENT '集控站id', + `gkjip` varchar(20) DEFAULT NULL COMMENT '工控机iP', + `xfport` decimal(5,0) DEFAULT NULL COMMENT '消防通讯端口', + `znxj` decimal(1,0) DEFAULT NULL COMMENT '1是0否,请在完全布置好后置1', + `ztjcid` char(32) DEFAULT NULL COMMENT '该变电站在状态检测库中的ID,初始化为0', + `enable` decimal(65,30) DEFAULT NULL COMMENT '该站是否在运行:1是,0或空不是', + `xh` decimal(65,30) DEFAULT NULL COMMENT '序号', + `bz` varchar(100) DEFAULT NULL, + `hascac` tinyint(1) DEFAULT NULL COMMENT '1有0无', + `coordinate` varchar(20) DEFAULT NULL COMMENT '坐标', + `voltagegrade` int(11) DEFAULT NULL COMMENT '电压等级,单位kV', + `scale` float DEFAULT NULL COMMENT '规模,单位MW', + `note` varchar(255) DEFAULT NULL COMMENT '说明', + `icon1` varchar(50) DEFAULT NULL COMMENT '图标1', + `icon2` varchar(50) DEFAULT NULL COMMENT '图标2', + `icon3` varchar(50) DEFAULT NULL COMMENT '图标3', + `icon4` varchar(50) DEFAULT NULL COMMENT '图标4', + `svgurl` varchar(50) DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `bdz` +-- + +LOCK TABLES `bdz` WRITE; +/*!40000 ALTER TABLE `bdz` DISABLE KEYS */; +INSERT INTO `bdz` VALUES (1,'上海抽水蓄能电站','变电站','9fd28489830b4cad8e598a8555e912eb',NULL,NULL,NULL,'',NULL,NULL,NULL,1,'',500,0,' ',NULL,NULL,NULL,NULL,''); +/*!40000 ALTER TABLE `bdz` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `bg_cate` +-- + +DROP TABLE IF EXISTS `bg_cate`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `bg_cate` ( + `cate_id` int(30) unsigned NOT NULL AUTO_INCREMENT, + `cate_parentid` int(30) unsigned DEFAULT '0', + `cate_name` varchar(100) NOT NULL, + `cate_intro` varchar(500) DEFAULT NULL, + `cate_order` int(30) unsigned DEFAULT '0', + `cate_icon` varchar(100) DEFAULT NULL, + `cate_ppid` int(30) DEFAULT NULL, + PRIMARY KEY (`cate_id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `bg_cate` +-- + +LOCK TABLES `bg_cate` WRITE; +/*!40000 ALTER TABLE `bg_cate` DISABLE KEYS */; +/*!40000 ALTER TABLE `bg_cate` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `bk_zan` +-- + +DROP TABLE IF EXISTS `bk_zan`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `bk_zan` ( + `id` mediumint(9) NOT NULL AUTO_INCREMENT, + `ip` char(20) NOT NULL, + `artid` mediumint(9) NOT NULL, + `num` mediumint(9) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `bk_zan` +-- + +LOCK TABLES `bk_zan` WRITE; +/*!40000 ALTER TABLE `bk_zan` DISABLE KEYS */; +/*!40000 ALTER TABLE `bk_zan` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `cac` +-- + +DROP TABLE IF EXISTS `cac`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `cac` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'CAC设备ID', + `name` varchar(50) DEFAULT NULL COMMENT 'CAC设备名称', + `cagid` int(11) NOT NULL COMMENT '所属CAG设备ID', + `bdzid` int(11) NOT NULL COMMENT '所属变电站ID', + `manufacture` varchar(50) DEFAULT NULL COMMENT '生产厂家', + `factoryint` varchar(50) DEFAULT NULL COMMENT '出厂编号', + `manufacturedate` date DEFAULT NULL COMMENT '出厂日期', + `rundate` date DEFAULT NULL COMMENT '投运日期', + `location` varchar(100) DEFAULT NULL COMMENT '安装位置描述', + `note` varchar(200) DEFAULT NULL COMMENT '备注', + `downip` varchar(32) DEFAULT NULL COMMENT 'CAC设备下行网络IP地址', + `upip` varchar(32) DEFAULT NULL COMMENT 'CAC设备上行网络IP地址', + `diskfree` int(11) DEFAULT NULL COMMENT '磁盘空间MB', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='CAC设备表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `cac` +-- + +LOCK TABLES `cac` WRITE; +/*!40000 ALTER TABLE `cac` DISABLE KEYS */; +INSERT INTO `cac` VALUES (4,'大数据推送平台',1,1,'','','2000-01-01','2000-01-01','','','','',0); +/*!40000 ALTER TABLE `cac` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `cag` +-- + +DROP TABLE IF EXISTS `cag`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `cag` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'CAG设备ID', + `name` varchar(50) DEFAULT NULL COMMENT 'CAG设备名称', + `manufacture` varchar(50) DEFAULT NULL COMMENT '生产厂家', + `factoryint` varchar(50) DEFAULT NULL COMMENT '出厂编号', + `manufacturedate` date DEFAULT NULL COMMENT '出厂日期', + `rundate` date DEFAULT NULL COMMENT '投运日期', + `location` varchar(100) DEFAULT NULL COMMENT '安装位置描述', + `note` varchar(200) DEFAULT NULL COMMENT '备注', + `diskfree` int(11) DEFAULT NULL COMMENT '磁盘空间MB', + `downip` varchar(32) DEFAULT NULL COMMENT 'CAC设备下行网络IP地址', + `upip` varchar(32) DEFAULT NULL COMMENT 'CAC设备上行网络IP地址', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='CAG设备表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `cag` +-- + +LOCK TABLES `cag` WRITE; +/*!40000 ALTER TABLE `cag` DISABLE KEYS */; +INSERT INTO `cag` VALUES (1,'大数据展示中心','1111','2221','2018-02-28','2018-02-15','3331','4441',5551,'192.168.1.11','192.168.1.21'); +/*!40000 ALTER TABLE `cag` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `cate` +-- + +DROP TABLE IF EXISTS `cate`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `cate` ( + `id` mediumint(9) NOT NULL AUTO_INCREMENT COMMENT '栏目id', + `catename` varchar(30) NOT NULL COMMENT '栏目名称', + `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '栏目类型:1:文章列表栏目 2:单页栏目3:图片列表', + `keywords` varchar(255) NOT NULL COMMENT '栏目关键词', + `desc` varchar(255) NOT NULL COMMENT '栏目描述', + `content` text NOT NULL COMMENT '栏目内容', + `rec_index` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0:不推荐 1:推荐', + `rec_bottom` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0:不推荐 1:推荐', + `pid` mediumint(9) NOT NULL DEFAULT '0' COMMENT '上级栏目id', + `sort` mediumint(9) NOT NULL DEFAULT '50' COMMENT '排序', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `cate` +-- + +LOCK TABLES `cate` WRITE; +/*!40000 ALTER TABLE `cate` DISABLE KEYS */; +/*!40000 ALTER TABLE `cate` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `class` +-- + +DROP TABLE IF EXISTS `class`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `class` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(30) DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `class` +-- + +LOCK TABLES `class` WRITE; +/*!40000 ALTER TABLE `class` DISABLE KEYS */; +/*!40000 ALTER TABLE `class` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `comtradrd` +-- + +DROP TABLE IF EXISTS `comtradrd`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `comtradrd` ( + `filename` varchar(255) CHARACTER SET utf8 NOT NULL COMMENT '文件名', + `isupload` bit(4) DEFAULT NULL COMMENT '是否上传', + `srvid` int(11) DEFAULT NULL COMMENT 'serverid', + `filepreno` varchar(255) DEFAULT NULL COMMENT '文件前缀编号', + `filetime` datetime DEFAULT NULL COMMENT '文件修改时间', + PRIMARY KEY (`filename`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `comtradrd` +-- + +LOCK TABLES `comtradrd` WRITE; +/*!40000 ALTER TABLE `comtradrd` DISABLE KEYS */; +/*!40000 ALTER TABLE `comtradrd` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `conf` +-- + +DROP TABLE IF EXISTS `conf`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `conf` ( + `id` mediumint(9) NOT NULL AUTO_INCREMENT COMMENT '配置项id', + `cnname` varchar(50) NOT NULL COMMENT '配置中文名称', + `enname` varchar(50) NOT NULL COMMENT '英文名称', + `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '配置类型 1:单行文本框 2:多行文本 3:单选按钮 4:复选按钮 5:下拉菜单', + `value` varchar(255) NOT NULL COMMENT '配置值', + `values` varchar(255) NOT NULL COMMENT '配置可选值', + `sort` smallint(6) NOT NULL DEFAULT '50' COMMENT '配置项排序', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `conf` +-- + +LOCK TABLES `conf` WRITE; +/*!40000 ALTER TABLE `conf` DISABLE KEYS */; +/*!40000 ALTER TABLE `conf` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_aq_h` +-- + +DROP TABLE IF EXISTS `data_aq_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_aq_h` ( + `eqmid` int(11) NOT NULL COMMENT '监测设备ID', + `d_time` datetime NOT NULL COMMENT '采样时间', + `envtmp` float(7,0) DEFAULT NULL COMMENT '温度', + `envhum` float(7,0) DEFAULT NULL COMMENT '湿度', + `airquality` float(7,0) DEFAULT NULL COMMENT '空气质量', + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_aq_h` +-- + +LOCK TABLES `data_aq_h` WRITE; +/*!40000 ALTER TABLE `data_aq_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_aq_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_config` +-- + +DROP TABLE IF EXISTS `data_config`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_config` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `regcode` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_config` +-- + +LOCK TABLES `data_config` WRITE; +/*!40000 ALTER TABLE `data_config` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_config` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_dalieqm` +-- + +DROP TABLE IF EXISTS `data_dalieqm`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_dalieqm` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ip` char(15) DEFAULT NULL COMMENT '类型1=>点2=>线3=>框', + `username` varchar(255) DEFAULT NULL COMMENT '温度', + `pwd` int(11) DEFAULT NULL, + `port` char(6) DEFAULT '8000' COMMENT '端口', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_dalieqm` +-- + +LOCK TABLES `data_dalieqm` WRITE; +/*!40000 ALTER TABLE `data_dalieqm` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_dalieqm` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_dlg_h` +-- + +DROP TABLE IF EXISTS `data_dlg_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_dlg_h` ( + `eqmid` varchar(32) NOT NULL, + `d_time` datetime NOT NULL, + `tmp1` float(12,3) DEFAULT NULL COMMENT '1段温度', + `tmp2` float(12,3) DEFAULT NULL COMMENT '2段温度', + `tmp3` float(12,3) DEFAULT NULL COMMENT '母线洞温度', + `hum1` float(12,3) DEFAULT NULL COMMENT '湿度', + `hum2` float(12,3) DEFAULT NULL, + `hum3` float(12,3) DEFAULT NULL, + `awater` float(12,3) DEFAULT NULL COMMENT '水浸', + `modevcomf1` int(5) DEFAULT NULL COMMENT '烟雾告警', + `modevcomf2` int(5) DEFAULT NULL, + `modevcomf3` int(5) DEFAULT NULL, + `isupload` int(11) DEFAULT NULL, + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_dlg_h` +-- + +LOCK TABLES `data_dlg_h` WRITE; +/*!40000 ALTER TABLE `data_dlg_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_dlg_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_dlg_statistics` +-- + +DROP TABLE IF EXISTS `data_dlg_statistics`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_dlg_statistics` ( + `id` varchar(32) NOT NULL, + `eqmid` varchar(32) DEFAULT NULL, + `d_time` datetime DEFAULT NULL, + `tmp1` float(12,3) DEFAULT NULL, + `tmp2` float(12,3) DEFAULT NULL, + `tmp3` float(12,3) DEFAULT NULL, + `hum1` float(12,3) DEFAULT NULL, + `hum2` float(12,3) DEFAULT NULL, + `hum3` float(12,3) DEFAULT NULL, + `awater` float(12,3) DEFAULT NULL, + `ind1` int(5) DEFAULT NULL, + `ind2` int(5) DEFAULT NULL, + `ind3` int(5) DEFAULT NULL, + `isupload` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_dlg_statistics` +-- + +LOCK TABLES `data_dlg_statistics` WRITE; +/*!40000 ALTER TABLE `data_dlg_statistics` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_dlg_statistics` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_dlq_jbfd` +-- + +DROP TABLE IF EXISTS `data_dlq_jbfd`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_dlq_jbfd` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `eqmid` varchar(45) DEFAULT NULL COMMENT '设备id', + `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间', + `phase` varchar(45) DEFAULT NULL COMMENT '相位', + `dischargeCapacity` float DEFAULT NULL COMMENT '放电量', + `dischargePosition` float DEFAULT NULL COMMENT '放电位置', + `pulseCount` float DEFAULT NULL COMMENT '脉冲个数', + `dischargeWaveform` blob COMMENT '放电波形', + `isupload` int(11) DEFAULT NULL, + `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间', + `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间', + PRIMARY KEY (`id`), + KEY `data_dlq_jbfd_eqmid_IDX` (`isupload`), + KEY `idx2` (`eqmid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='断路器局部放电'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_dlq_jbfd` +-- + +LOCK TABLES `data_dlq_jbfd` WRITE; +/*!40000 ALTER TABLE `data_dlq_jbfd` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_dlq_jbfd` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_eaif_h` +-- + +DROP TABLE IF EXISTS `data_eaif_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_eaif_h` ( + `data_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自动编号', + `eqmid` int(11) NOT NULL COMMENT '设备ID', + `areaid` int(11) NOT NULL COMMENT '点、线、区域ID', + `capturetime` datetime NOT NULL COMMENT '采集时间', + `maxtemp` float(18,4) DEFAULT NULL COMMENT '最大温度', + `mintemp` float(18,4) DEFAULT NULL COMMENT '最小温度', + `avgtemp` float(18,4) DEFAULT NULL COMMENT '平均温度', + `unit` tinyint(2) DEFAULT NULL COMMENT '1=>摄氏度2=>华氏度', + `type` tinyint(2) DEFAULT NULL COMMENT '1->点2->线3->框', + `mid` float(10,4) DEFAULT NULL COMMENT '中间差', + `std` float(10,4) DEFAULT NULL COMMENT '标准方差值', + `isupload` int(1) DEFAULT '0', + PRIMARY KEY (`data_id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='红外区域测温数据表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_eaif_h` +-- + +LOCK TABLES `data_eaif_h` WRITE; +/*!40000 ALTER TABLE `data_eaif_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_eaif_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_eia_h` +-- + +DROP TABLE IF EXISTS `data_eia_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_eia_h` ( + `eqmid` int(11) NOT NULL, + `d_time` datetime NOT NULL, + `d_pt_1` float DEFAULT '0' COMMENT 'A相母线电压', + `d_pt_2` float DEFAULT '0' COMMENT 'B相母线电压', + `d_pt_3` float DEFAULT '0' COMMENT 'C相母线电压', + `d_pt_4` float DEFAULT '0', + `d_ct_1` float DEFAULT NULL COMMENT 'A相泄露电流', + `d_ct_2` float DEFAULT '0' COMMENT 'B相泄露电流', + `d_ct_3` float DEFAULT '0' COMMENT 'C相泄露电流', + `d_ct_4` float DEFAULT '0', + `d_hz` float DEFAULT '0' COMMENT '频率', + `d_pf_1` float DEFAULT '0' COMMENT 'A相电容量', + `d_pf_2` float DEFAULT '0' COMMENT 'B相电容量', + `d_pf_3` float DEFAULT '0' COMMENT 'C相电容量', + `d_pf_4` float DEFAULT '0', + `d_jx_1` float DEFAULT '0' COMMENT 'A相介质损耗因数', + `d_jx_2` float DEFAULT '0' COMMENT 'B相介质损耗因数', + `d_jx_3` float DEFAULT '0' COMMENT 'C相介质损耗因数', + `d_jx_4` float DEFAULT '0', + `isupload` int(11) DEFAULT NULL, + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='绝缘监测历史数据'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_eia_h` +-- + +LOCK TABLES `data_eia_h` WRITE; +/*!40000 ALTER TABLE `data_eia_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_eia_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_eia_statistics` +-- + +DROP TABLE IF EXISTS `data_eia_statistics`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_eia_statistics` ( + `id` varchar(32) NOT NULL COMMENT '主键id', + `eqmid` int(11) DEFAULT NULL COMMENT '设备id', + `d_pt_1` float DEFAULT '0' COMMENT 'A相母线电压', + `d_pt_2` float DEFAULT '0' COMMENT 'B相母线电压', + `d_pt_3` float DEFAULT '0' COMMENT 'C相母线电压', + `d_pt_4` float DEFAULT '0', + `d_ct_1` float DEFAULT NULL COMMENT 'A相泄露电流', + `d_ct_2` float DEFAULT '0' COMMENT 'B相泄露电流', + `d_ct_3` float DEFAULT '0' COMMENT 'C相泄露电流', + `d_ct_4` float DEFAULT '0', + `d_hz` float DEFAULT '0' COMMENT '频率', + `d_pf_1` float DEFAULT '0' COMMENT 'A相电容量', + `d_pf_2` float DEFAULT '0' COMMENT 'B相电容量', + `d_pf_3` float DEFAULT '0' COMMENT 'C相电容量', + `d_pf_4` float DEFAULT '0', + `d_jx_1` float DEFAULT '0' COMMENT 'A相介质损耗因数', + `d_jx_2` float DEFAULT '0' COMMENT 'B相介质损耗因数', + `d_jx_3` float DEFAULT '0' COMMENT 'C相介质损耗因数', + `d_jx_4` float DEFAULT '0', + `d_time` datetime DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_eia_statistics` +-- + +LOCK TABLES `data_eia_statistics` WRITE; +/*!40000 ALTER TABLE `data_eia_statistics` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_eia_statistics` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_eif_h` +-- + +DROP TABLE IF EXISTS `data_eif_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_eif_h` ( + `data_id` bigint(20) NOT NULL COMMENT '自动编号', + `eqmid` int(11) NOT NULL COMMENT '设备ID', + `preposid` int(11) NOT NULL COMMENT '预置位ID', + `capturetime` datetime NOT NULL COMMENT '采集时间', + `areatemp1` float(18,4) DEFAULT NULL COMMENT '区域1温度', + `areatemp2` float(18,4) DEFAULT NULL COMMENT '区域2温度', + `areatemp3` float(18,4) DEFAULT NULL COMMENT '区域3温度', + `areatemp4` float(18,4) DEFAULT NULL COMMENT '区域4温度', + `note` float(50,0) DEFAULT NULL COMMENT '说明', + `type` int(11) DEFAULT NULL COMMENT '类型', + `infraredfilepath` varchar(255) DEFAULT NULL COMMENT '红外数据路径', + `iphotofilepath` varchar(255) DEFAULT NULL COMMENT '红外图片路径', + `photofilepath` varchar(255) DEFAULT NULL COMMENT '可见光图片路径', + `imageir` blob, + `imageccd` blob, + `irdata` blob, + PRIMARY KEY (`data_id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_eif_h` +-- + +LOCK TABLES `data_eif_h` WRITE; +/*!40000 ALTER TABLE `data_eif_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_eif_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_epa` +-- + +DROP TABLE IF EXISTS `data_epa`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_epa` ( + `eqmid` varchar(50) NOT NULL, + `d_time` datetime NOT NULL, + `q1` float(18,4) DEFAULT NULL, + `q2` float(18,4) DEFAULT NULL, + `q3` float(18,3) DEFAULT NULL, + `q4` float(18,3) DEFAULT NULL, + `q5` float(18,4) DEFAULT NULL, + `q6` float(18,4) DEFAULT NULL, + `q7` float(18,3) DEFAULT NULL, + `q8` float(18,4) DEFAULT NULL, + `q9` decimal(18,3) DEFAULT NULL, + `q10` decimal(18,3) DEFAULT NULL, + `q11` decimal(18,3) DEFAULT NULL, + `q12` decimal(18,3) DEFAULT NULL, + `note` text, + `conclusion` text, + `isupload` int(11) DEFAULT NULL, + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_epa` +-- + +LOCK TABLES `data_epa` WRITE; +/*!40000 ALTER TABLE `data_epa` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_epa` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_epa_h` +-- + +DROP TABLE IF EXISTS `data_epa_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_epa_h` ( + `eqmid` int(11) unsigned NOT NULL, + `d_time` datetime NOT NULL, + `ch4ppm` float(18,8) DEFAULT NULL COMMENT '甲烷含量', + `c2h4ppm` float(18,8) DEFAULT NULL COMMENT '乙烯含量', + `c2h6ppm` float(18,8) DEFAULT NULL COMMENT '乙烷含量', + `c2h2ppm` float(18,8) DEFAULT NULL COMMENT '乙炔含量', + `h2ppm` float DEFAULT NULL COMMENT '氢气含量', + `coppm` float DEFAULT NULL COMMENT '一氧化碳含量', + `co2ppm` float DEFAULT NULL COMMENT '二氧化碳含量', + `o2ppm` float DEFAULT NULL COMMENT '氧气含量', + `n2ppm` float DEFAULT NULL COMMENT '氮气含量', + `h2oppm` float DEFAULT NULL COMMENT '水含量', + `gaspress` float DEFAULT NULL COMMENT '载气压力', + `tmp` float DEFAULT NULL COMMENT '温度', + `dew` float DEFAULT NULL COMMENT '湿度', + `mstppm` float DEFAULT NULL COMMENT '微水含量', + `flatgas` float DEFAULT NULL COMMENT '瓦斯继电器中故障气', + `totalhydrocarbon` float(18,3) DEFAULT NULL COMMENT '总烃', + `cmbugas` float DEFAULT NULL COMMENT '总可燃气体', + `note` text, + `conclusion` text, + `isupload` int(1) DEFAULT NULL, + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_epa_h` +-- + +LOCK TABLES `data_epa_h` WRITE; +/*!40000 ALTER TABLE `data_epa_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_epa_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_epa_statistics` +-- + +DROP TABLE IF EXISTS `data_epa_statistics`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_epa_statistics` ( + `id` varchar(32) NOT NULL COMMENT '主键id', + `eqmid` int(11) DEFAULT NULL COMMENT '设备id', + `ch4ppm` varchar(100) DEFAULT NULL COMMENT '甲烷含量', + `c2h4ppm` varchar(100) DEFAULT NULL COMMENT '乙烯含量', + `c2h6ppm` varchar(100) DEFAULT NULL COMMENT '乙烷含量', + `c2h2ppm` varchar(100) DEFAULT NULL COMMENT '乙炔含量', + `h2ppm` varchar(100) DEFAULT NULL COMMENT '氢气含量', + `coppm` varchar(100) DEFAULT NULL COMMENT '一氧化碳含量', + `co2ppm` varchar(100) DEFAULT NULL COMMENT '二氧化碳含量', + `o2ppm` varchar(100) DEFAULT NULL COMMENT '氧气含量', + `n2ppm` varchar(100) DEFAULT NULL COMMENT '氮气含量', + `h2oppm` varchar(100) DEFAULT NULL COMMENT '水含量', + `gaspress` varchar(100) DEFAULT NULL COMMENT '载气压力', + `flatgas` varchar(100) DEFAULT NULL COMMENT '瓦斯继电器中故障气', + `totalhydrocarbon` varchar(100) DEFAULT NULL COMMENT '总烃', + `cmbugas` varchar(100) DEFAULT NULL COMMENT '总可燃气体', + `d_time` date DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_epa_statistics` +-- + +LOCK TABLES `data_epa_statistics` WRITE; +/*!40000 ALTER TABLE `data_epa_statistics` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_epa_statistics` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_etp_h` +-- + +DROP TABLE IF EXISTS `data_etp_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_etp_h` ( + `eqmid` varchar(50) NOT NULL, + `d_time` datetime NOT NULL, + `t1` float(18,3) DEFAULT NULL COMMENT 'A相上触头/1通道温度', + `t2` float(18,3) DEFAULT NULL COMMENT 'B相上触头/2通道温度', + `t3` float(18,3) DEFAULT NULL COMMENT 'C相上触头/3通道温度', + `t4` float(18,3) DEFAULT NULL COMMENT 'A相下触头/4通道温度', + `t5` float(18,3) DEFAULT NULL COMMENT 'B相下触头/5通道温度', + `t6` float(18,3) DEFAULT NULL COMMENT 'C相下触头/6通道温度', + `t7` float(18,3) DEFAULT NULL COMMENT '1闸刀A相触头/7通道温度', + `t8` float(18,3) DEFAULT NULL COMMENT '1闸刀B相触头/8通道温度', + `t9` float(18,3) DEFAULT NULL COMMENT '1闸刀C相触头/9通道温度', + `t10` float(18,3) DEFAULT NULL COMMENT '3闸刀A相触头/10通道温度', + `t11` float(18,3) DEFAULT NULL COMMENT '3闸刀B相触头/11通道温度', + `t12` float(18,3) DEFAULT NULL COMMENT '3闸刀C相触头/12通道温度', + `t13` float(18,3) DEFAULT NULL COMMENT '13通道温度', + `t14` float(18,3) DEFAULT NULL COMMENT '14通道温度', + `t15` float(18,3) DEFAULT NULL COMMENT '15通道温度', + `t16` float(18,3) DEFAULT NULL COMMENT '16通道温度', + `s1` int(11) DEFAULT NULL, + `s2` int(11) DEFAULT NULL, + `s3` int(11) DEFAULT NULL, + `s4` int(11) DEFAULT NULL, + `s5` int(11) DEFAULT NULL, + `s6` int(11) DEFAULT NULL, + `s7` int(11) DEFAULT NULL, + `s8` int(11) DEFAULT NULL, + `s9` int(11) DEFAULT NULL, + `s10` int(11) DEFAULT NULL, + `s11` int(11) DEFAULT NULL, + `s12` int(11) DEFAULT NULL, + `state1` tinyint(4) DEFAULT NULL, + `state2` tinyint(4) DEFAULT NULL, + `state3` tinyint(4) DEFAULT NULL, + `state4` tinyint(4) DEFAULT NULL, + `state5` tinyint(4) DEFAULT NULL, + `state6` tinyint(4) DEFAULT NULL, + `state7` tinyint(4) DEFAULT NULL, + `state8` tinyint(4) DEFAULT NULL, + `state9` tinyint(4) DEFAULT NULL, + `state10` tinyint(4) DEFAULT NULL, + `state11` tinyint(4) DEFAULT NULL, + `state12` tinyint(4) DEFAULT NULL, + `isupload` int(1) DEFAULT '0', + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_etp_h` +-- + +LOCK TABLES `data_etp_h` WRITE; +/*!40000 ALTER TABLE `data_etp_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_etp_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_etp_h6` +-- + +DROP TABLE IF EXISTS `data_etp_h6`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_etp_h6` ( + `eqmid` varchar(50) NOT NULL, + `d_time` datetime NOT NULL, + `t1` decimal(18,4) DEFAULT NULL, + `t2` decimal(18,4) DEFAULT NULL, + `t3` decimal(18,4) DEFAULT NULL, + `t4` decimal(18,4) DEFAULT NULL, + `t5` decimal(18,4) DEFAULT NULL, + `t6` decimal(18,4) DEFAULT NULL, + `s1` int(11) DEFAULT NULL, + `s2` int(11) DEFAULT NULL, + `s3` int(11) DEFAULT NULL, + `s4` int(11) DEFAULT NULL, + `s5` int(11) DEFAULT NULL, + `s6` int(11) DEFAULT NULL, + `state1` tinyint(4) DEFAULT NULL, + `state2` tinyint(4) DEFAULT NULL, + `state3` tinyint(4) DEFAULT NULL, + `state4` tinyint(4) DEFAULT NULL, + `state5` tinyint(4) DEFAULT NULL, + `state6` tinyint(4) DEFAULT NULL, + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_etp_h6` +-- + +LOCK TABLES `data_etp_h6` WRITE; +/*!40000 ALTER TABLE `data_etp_h6` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_etp_h6` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_haikangeqm` +-- + +DROP TABLE IF EXISTS `data_haikangeqm`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_haikangeqm` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ip` char(15) DEFAULT NULL COMMENT '类型1=>点2=>线3=>框', + `username` varchar(255) DEFAULT NULL COMMENT '温度', + `pwd` varchar(50) DEFAULT NULL, + `port` char(4) DEFAULT '8000' COMMENT '端口', + `iuserid` tinyint(5) DEFAULT NULL COMMENT '登录编号', + `online` varchar(255) DEFAULT NULL COMMENT '0=>不在线1=>在线', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_haikangeqm` +-- + +LOCK TABLES `data_haikangeqm` WRITE; +/*!40000 ALTER TABLE `data_haikangeqm` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_haikangeqm` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_jdw_h` +-- + +DROP TABLE IF EXISTS `data_jdw_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_jdw_h` ( + `eqmid` varchar(32) NOT NULL, + `d_time` datetime NOT NULL, + `resistance` float(12,3) DEFAULT NULL COMMENT '电阻值', + `isupload` int(11) DEFAULT NULL, + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_jdw_h` +-- + +LOCK TABLES `data_jdw_h` WRITE; +/*!40000 ALTER TABLE `data_jdw_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_jdw_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_jsyhw_jyjc` +-- + +DROP TABLE IF EXISTS `data_jsyhw_jyjc`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_jsyhw_jyjc` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `eqmid` varchar(45) DEFAULT NULL COMMENT '设备id', + `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间', + `systemVoltage` float DEFAULT NULL COMMENT '系统电压', + `totalCurrent` float DEFAULT NULL COMMENT '全电流', + `resistiveCurrent` float DEFAULT NULL COMMENT '阻性电流', + `actionCount` float DEFAULT NULL COMMENT '计数器动作次数', + `lastActionTime` datetime DEFAULT NULL COMMENT '最后一次动作时间', + `isupload` int(11) DEFAULT NULL, + `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间', + `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='金属氧化物绝缘监测'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_jsyhw_jyjc` +-- + +LOCK TABLES `data_jsyhw_jyjc` WRITE; +/*!40000 ALTER TABLE `data_jsyhw_jyjc` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_jsyhw_jyjc` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_leakagecurrent_h` +-- + +DROP TABLE IF EXISTS `data_leakagecurrent_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_leakagecurrent_h` ( + `eqmid` varchar(50) NOT NULL, + `d_time` datetime NOT NULL, + `averageleakagecurrent` decimal(18,4) DEFAULT NULL, + `maxleakagecurrent` decimal(18,4) DEFAULT NULL, + `morethan3ma` int(11) DEFAULT NULL, + `morethan10ma` int(11) DEFAULT NULL, + `isupload` int(11) DEFAULT NULL, + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_leakagecurrent_h` +-- + +LOCK TABLES `data_leakagecurrent_h` WRITE; +/*!40000 ALTER TABLE `data_leakagecurrent_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_leakagecurrent_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_microclimate_h` +-- + +DROP TABLE IF EXISTS `data_microclimate_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_microclimate_h` ( + `eqmid` int(11) NOT NULL, + `d_time` datetime NOT NULL, + `envtmp` float(22,3) DEFAULT NULL COMMENT '温度', + `envhum` float(22,3) DEFAULT NULL COMMENT '湿度', + `wdgustspd` float(22,3) DEFAULT NULL COMMENT '风速', + `envpres` float(22,3) DEFAULT NULL COMMENT '气压', + `wddir` float(22,3) DEFAULT NULL COMMENT '风向', + `rnfll` float(22,3) DEFAULT NULL COMMENT '雨量', + `isupload` int(1) DEFAULT '0' COMMENT '0', + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='微气象数据表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_microclimate_h` +-- + +LOCK TABLES `data_microclimate_h` WRITE; +/*!40000 ALTER TABLE `data_microclimate_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_microclimate_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_microclimate_statistics` +-- + +DROP TABLE IF EXISTS `data_microclimate_statistics`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_microclimate_statistics` ( + `id` varchar(32) NOT NULL COMMENT '主键id', + `eqmid` int(11) DEFAULT NULL COMMENT '设备id', + `d_time` datetime DEFAULT NULL COMMENT '创建时间', + `envtmp` float(22,3) DEFAULT NULL COMMENT '温度', + `envhum` float(22,3) DEFAULT NULL COMMENT '湿度', + `wdgustspd` float(22,3) DEFAULT NULL COMMENT '风速', + `envpres` float(22,3) DEFAULT NULL COMMENT '气压', + `wddir` float(22,3) DEFAULT NULL COMMENT '风向', + `rnfll` float(22,3) DEFAULT NULL COMMENT '雨量', + `isupload` int(1) DEFAULT '0' COMMENT '0', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_microclimate_statistics` +-- + +LOCK TABLES `data_microclimate_statistics` WRITE; +/*!40000 ALTER TABLE `data_microclimate_statistics` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_microclimate_statistics` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_moa_h` +-- + +DROP TABLE IF EXISTS `data_moa_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_moa_h` ( + `eqmid` varchar(50) NOT NULL, + `d_time` datetime NOT NULL, + `pt1` float DEFAULT NULL COMMENT 'A相系统电压', + `lc1` float DEFAULT NULL COMMENT 'A相全电流', + `rc1` float DEFAULT NULL COMMENT 'A相阻性电流', + `pt2` float DEFAULT NULL COMMENT 'B相系统电压', + `lc2` float DEFAULT NULL COMMENT 'B相全电流', + `rc2` float DEFAULT NULL COMMENT 'B相阻性电流', + `pt3` float DEFAULT NULL COMMENT 'C相系统电压', + `lc3` float DEFAULT NULL COMMENT 'C相全电流', + `rc3` float DEFAULT NULL COMMENT 'C相阻性电流', + `isupload` int(11) DEFAULT NULL, + `lastligtm1` datetime DEFAULT NULL COMMENT 'A相最近落雷时间', + `ligcnt1` int(11) DEFAULT '0' COMMENT 'A相累计落雷次数', + `cacur1` float DEFAULT NULL COMMENT 'A相容性电流', + `riscarte1` float DEFAULT NULL COMMENT 'A相阻容比', + `modevconf1` int(1) DEFAULT NULL COMMENT 'A相IED与监测设备通讯异常', + `supdevrun1` int(1) DEFAULT NULL COMMENT 'A相设备运行异常', + `lastligtm2` datetime DEFAULT NULL COMMENT 'B相最近落雷时间', + `ligcnt2` int(11) DEFAULT '0' COMMENT 'B相累计落雷次数', + `cacur2` float DEFAULT NULL COMMENT 'B相容性电流', + `riscarte2` float DEFAULT NULL COMMENT 'B相阻容比', + `modevconf2` int(1) DEFAULT NULL COMMENT 'B相IED与监测设备通讯异常', + `supdevrun2` int(1) DEFAULT NULL COMMENT 'B相设备运行异常', + `lastligtm3` datetime DEFAULT NULL COMMENT 'C相最近落雷时间', + `ligcnt3` int(11) DEFAULT '0' COMMENT 'C相累计落雷次数', + `cacur3` float DEFAULT NULL COMMENT 'C相容性电流', + `riscarte3` float DEFAULT NULL COMMENT 'C相阻容比', + `modevconf3` int(1) DEFAULT NULL COMMENT 'C相IED与监测设备通讯异常', + `supdevrun3` int(1) DEFAULT NULL COMMENT 'C相设备运行异常', + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_moa_h` +-- + +LOCK TABLES `data_moa_h` WRITE; +/*!40000 ALTER TABLE `data_moa_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_moa_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_moa_statistics` +-- + +DROP TABLE IF EXISTS `data_moa_statistics`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_moa_statistics` ( + `id` varchar(32) NOT NULL COMMENT '主键', + `eqmid` varchar(50) DEFAULT NULL COMMENT '设备id', + `d_time` datetime DEFAULT NULL COMMENT '创建时间', + `pt1` float DEFAULT NULL COMMENT 'A相系统电压', + `lc1` float DEFAULT NULL COMMENT 'A相全电流', + `rc1` float DEFAULT NULL COMMENT 'A相阻性电流', + `pt2` float DEFAULT NULL COMMENT 'B相系统电压', + `lc2` float DEFAULT NULL COMMENT 'B相全电流', + `rc2` float DEFAULT NULL COMMENT 'B相阻性电流', + `pt3` float DEFAULT NULL COMMENT 'C相系统电压', + `lc3` float DEFAULT NULL COMMENT 'C相全电流', + `rc3` float DEFAULT NULL COMMENT 'C相阻性电流', + `lastligtm1` datetime DEFAULT NULL COMMENT 'A相最近落雷时间', + `ligcnt1` int(11) DEFAULT '0' COMMENT 'A相累计落雷次数', + `cacur1` float DEFAULT NULL COMMENT 'A相容性电流', + `riscarte1` float DEFAULT NULL COMMENT 'A相阻容比', + `modevconf1` int(1) DEFAULT NULL COMMENT 'A相IED与监测设备通讯异常', + `supdevrun1` int(1) DEFAULT NULL COMMENT 'A相设备运行异常', + `lastligtm2` datetime DEFAULT NULL COMMENT 'B相最近落雷时间', + `ligcnt2` int(11) DEFAULT '0' COMMENT 'B相累计落雷次数', + `cacur2` float DEFAULT NULL COMMENT 'B相容性电流', + `riscarte2` float DEFAULT NULL COMMENT 'B相阻容比', + `modevconf2` int(1) DEFAULT NULL COMMENT 'B相IED与监测设备通讯异常', + `supdevrun2` int(1) DEFAULT NULL COMMENT 'B相设备运行异常', + `lastligtm3` datetime DEFAULT NULL COMMENT 'C相最近落雷时间', + `ligcnt3` int(11) DEFAULT '0' COMMENT 'C相累计落雷次数', + `cacur3` float DEFAULT NULL COMMENT 'C相容性电流', + `riscarte3` float DEFAULT NULL COMMENT 'C相阻容比', + `modevconf3` int(1) DEFAULT NULL COMMENT 'C相IED与监测设备通讯异常', + `supdevrun3` int(1) DEFAULT NULL COMMENT 'C相设备运行异常', + `isupload` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_moa_statistics` +-- + +LOCK TABLES `data_moa_statistics` WRITE; +/*!40000 ALTER TABLE `data_moa_statistics` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_moa_statistics` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_oiltemperature_h` +-- + +DROP TABLE IF EXISTS `data_oiltemperature_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_oiltemperature_h` ( + `eqmid` varchar(50) NOT NULL, + `d_time` datetime NOT NULL, + `oiltemperature1` decimal(18,4) DEFAULT NULL, + `oiltemperature2` decimal(18,4) DEFAULT NULL, + `oiltemperature3` decimal(18,4) DEFAULT NULL, + `releasevalvestatus` int(11) DEFAULT NULL, + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_oiltemperature_h` +-- + +LOCK TABLES `data_oiltemperature_h` WRITE; +/*!40000 ALTER TABLE `data_oiltemperature_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_oiltemperature_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_otp_h` +-- + +DROP TABLE IF EXISTS `data_otp_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_otp_h` ( + `eqmid` varchar(50) NOT NULL, + `d_time` datetime NOT NULL, + `oiltemperature` float DEFAULT NULL COMMENT '油温', + `oilpress` float DEFAULT NULL COMMENT '油压', + `releasevalvestatus` int(11) DEFAULT NULL COMMENT '压力释放阀状态', + `isupload` int(11) DEFAULT NULL, + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_otp_h` +-- + +LOCK TABLES `data_otp_h` WRITE; +/*!40000 ALTER TABLE `data_otp_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_otp_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_pd_h` +-- + +DROP TABLE IF EXISTS `data_pd_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_pd_h` ( + `eqmid` varchar(32) NOT NULL, + `d_time` datetime NOT NULL, + `padschalm` int(11) DEFAULT NULL COMMENT '局放告警', + `opcnt` int(11) DEFAULT NULL COMMENT '动作计数器', + `plsnum` int(11) DEFAULT NULL COMMENT '脉冲个数', + `padschtype` varchar(50) DEFAULT NULL COMMENT '局放类型', + `acupadsch` float DEFAULT NULL COMMENT '局放声学水平', + `apppadsch` float DEFAULT NULL COMMENT '视在局放放电量,峰值', + `nqs` float DEFAULT NULL COMMENT '平均放电电流', + `uhfpadsch` float DEFAULT NULL COMMENT '局放UHF水平', + `phase` float DEFAULT NULL COMMENT '放电相位', + `waveform` longtext, + `isupload` int(11) DEFAULT NULL, + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='局部放电数据表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_pd_h` +-- + +LOCK TABLES `data_pd_h` WRITE; +/*!40000 ALTER TABLE `data_pd_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_pd_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_pd_statistics` +-- + +DROP TABLE IF EXISTS `data_pd_statistics`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_pd_statistics` ( + `id` varchar(32) NOT NULL COMMENT '主键id', + `eqmid` varchar(32) DEFAULT NULL COMMENT '设备id', + `d_time` datetime DEFAULT NULL COMMENT '创建时间', + `padschalm` int(11) DEFAULT NULL COMMENT '局放告警', + `opcnt` int(11) DEFAULT NULL COMMENT '动作计数器', + `plsnum` int(11) DEFAULT NULL COMMENT '脉冲个数', + `padschtype` varchar(50) DEFAULT NULL COMMENT '局放类型', + `acupadsch` float DEFAULT NULL COMMENT '局放声学水平', + `apppadsch` float DEFAULT NULL COMMENT '视在局放放电量,峰值', + `nqs` float DEFAULT NULL COMMENT '平均放电电流', + `uhfpadsch` float DEFAULT NULL COMMENT '局放UHF水平', + `phase` float DEFAULT NULL COMMENT '放电相位', + `waveform` longtext, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_pd_statistics` +-- + +LOCK TABLES `data_pd_statistics` WRITE; +/*!40000 ALTER TABLE `data_pd_statistics` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_pd_statistics` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_scur_h` +-- + +DROP TABLE IF EXISTS `data_scur_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_scur_h` ( + `eqmid` varchar(32) NOT NULL COMMENT '主键id', + `d_time` datetime NOT NULL COMMENT '创建时间', + `alarm_level` int(10) DEFAULT NULL COMMENT '报警等级', + `current_val` varchar(20) DEFAULT NULL COMMENT '电流值(mA)', + `isupload` int(5) DEFAULT NULL COMMENT '状态(1:已经发送,0:未发送)', + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='电缆环流数据表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_scur_h` +-- + +LOCK TABLES `data_scur_h` WRITE; +/*!40000 ALTER TABLE `data_scur_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_scur_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_scur_statistics` +-- + +DROP TABLE IF EXISTS `data_scur_statistics`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_scur_statistics` ( + `id` varchar(32) NOT NULL COMMENT '主键id', + `eqmid` varchar(32) DEFAULT NULL COMMENT '设备id', + `d_time` datetime DEFAULT NULL COMMENT '创建时间', + `current_val` varchar(20) DEFAULT NULL COMMENT '电流值(mA)', + `isupload` int(5) DEFAULT NULL COMMENT '状态(1:已经发送,0:未发送)', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_scur_statistics` +-- + +LOCK TABLES `data_scur_statistics` WRITE; +/*!40000 ALTER TABLE `data_scur_statistics` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_scur_statistics` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_sf6_h` +-- + +DROP TABLE IF EXISTS `data_sf6_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_sf6_h` ( + `eqmid` varchar(32) NOT NULL, + `d_time` datetime NOT NULL, + `temp1` float(12,3) DEFAULT NULL COMMENT 'A相温度', + `pressure1` float(12,3) DEFAULT NULL COMMENT 'A相压力', + `md1` float(12,3) DEFAULT NULL COMMENT 'A相密度', + `pm1` float(12,3) DEFAULT NULL COMMENT 'A相微水', + `ddt1` float(12,3) DEFAULT NULL COMMENT 'A相露点', + `temp2` float(12,3) DEFAULT NULL COMMENT 'B相温度', + `pressure2` float(12,3) DEFAULT NULL COMMENT 'B相压力', + `md2` float(12,3) DEFAULT NULL COMMENT 'B相密度', + `pm2` float(12,3) DEFAULT NULL COMMENT 'B相微水', + `ddt2` float(12,3) DEFAULT NULL COMMENT 'B相露点', + `temp3` float(12,3) DEFAULT NULL COMMENT 'C相温度', + `pressure3` float(12,3) DEFAULT NULL COMMENT 'C相压力', + `md3` float(12,3) DEFAULT NULL COMMENT 'C相密度', + `pm3` float(12,3) DEFAULT NULL COMMENT 'C相微水', + `ddt3` float(12,3) DEFAULT NULL COMMENT 'C相露点', + `isupload` int(11) DEFAULT NULL, + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_sf6_h` +-- + +LOCK TABLES `data_sf6_h` WRITE; +/*!40000 ALTER TABLE `data_sf6_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_sf6_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_sf6_qtyl` +-- + +DROP TABLE IF EXISTS `data_sf6_qtyl`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_sf6_qtyl` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `eqmid` int(11) DEFAULT NULL COMMENT '设备id', + `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间', + `temperature` float DEFAULT NULL COMMENT '温度', + `absolutePressure` float DEFAULT NULL COMMENT '绝对压力', + `density` float DEFAULT NULL COMMENT '密度', + `pressure20C` float DEFAULT NULL COMMENT '压力(20℃)', + `isupload` int(11) DEFAULT NULL, + `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间', + `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间', + PRIMARY KEY (`id`), + KEY `data_sf6_qtyl_isupload_IDX` (`isupload`), + KEY `idx2` (`eqmid`,`acquisitionTime`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='SF6 气体压力'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_sf6_qtyl` +-- + +LOCK TABLES `data_sf6_qtyl` WRITE; +/*!40000 ALTER TABLE `data_sf6_qtyl` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_sf6_qtyl` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_sf6_statistics` +-- + +DROP TABLE IF EXISTS `data_sf6_statistics`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_sf6_statistics` ( + `id` varchar(32) NOT NULL COMMENT '主键', + `eqmid` varchar(32) DEFAULT NULL COMMENT '设备id', + `d_time` datetime DEFAULT NULL COMMENT '创建时间', + `temp1` float(12,3) DEFAULT NULL COMMENT 'A相温度', + `pressure1` float(12,3) DEFAULT NULL COMMENT 'A相压力', + `md1` float(12,3) DEFAULT NULL COMMENT 'A相密度', + `pm1` float(12,3) DEFAULT NULL COMMENT 'A相微水', + `ddt1` float(12,3) DEFAULT NULL COMMENT 'A相露点', + `temp2` float(12,3) DEFAULT NULL COMMENT 'B相温度', + `pressure2` float(12,3) DEFAULT NULL COMMENT 'B相压力', + `md2` float(12,3) DEFAULT NULL COMMENT 'B相密度', + `pm2` float(12,3) DEFAULT NULL COMMENT 'B相微水', + `ddt2` float(12,3) DEFAULT NULL COMMENT 'B相露点', + `temp3` float(12,3) DEFAULT NULL COMMENT 'C相温度', + `pressure3` float(12,3) DEFAULT NULL COMMENT 'C相压力', + `md3` float(12,3) DEFAULT NULL COMMENT 'C相密度', + `pm3` float(12,3) DEFAULT NULL COMMENT 'C相微水', + `ddt3` float(12,3) DEFAULT NULL COMMENT 'C相露点', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_sf6_statistics` +-- + +LOCK TABLES `data_sf6_statistics` WRITE; +/*!40000 ALTER TABLE `data_sf6_statistics` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_sf6_statistics` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_sf6env_h` +-- + +DROP TABLE IF EXISTS `data_sf6env_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_sf6env_h` ( + `eqmid` varchar(32) NOT NULL, + `d_time` datetime NOT NULL, + `gas1` float(12,3) DEFAULT NULL COMMENT 'SF6浓度A相', + `yq1` float(12,3) DEFAULT NULL COMMENT 'O2含量A相', + `md1` float(12,3) DEFAULT NULL COMMENT '温度A相', + `pm1` float(12,3) DEFAULT NULL COMMENT '湿度A相', + `sf6warn1` float(12,3) DEFAULT NULL COMMENT 'SF6浓度报警阈值A相', + `o2warn1` float(12,3) DEFAULT NULL COMMENT 'O2报警阈值A相', + `gascnt1` int(12) DEFAULT NULL COMMENT '双气传感器数量A相', + `hmcnt1` int(12) DEFAULT NULL COMMENT '温湿度传感器数量A相', + `gas2` float(12,3) DEFAULT NULL COMMENT 'SF6浓度B相', + `yq2` float(12,3) DEFAULT NULL COMMENT 'O2含量B相', + `md2` float(12,3) DEFAULT NULL COMMENT '温度B相', + `pm2` float(12,3) DEFAULT NULL COMMENT '湿度B相', + `sf6warn2` float(12,3) DEFAULT NULL COMMENT 'SF6浓度报警阈值B相', + `o2warn2` float(12,3) DEFAULT NULL COMMENT 'O2报警阈值B相', + `gascnt2` int(12) DEFAULT NULL COMMENT '双气传感器数量B相', + `hmcnt2` int(12) DEFAULT NULL COMMENT '温湿度传感器数量B相', + `gas3` float(12,3) DEFAULT NULL COMMENT 'SF6浓度C相', + `yq3` float(12,3) DEFAULT NULL COMMENT 'O2含量C相', + `md3` float(12,3) DEFAULT NULL COMMENT '温度C相', + `pm3` float(12,3) DEFAULT NULL COMMENT '湿度C相', + `sf6warn3` float(12,3) DEFAULT NULL COMMENT 'SF6浓度报警阈值C相', + `o2warn3` float(12,3) DEFAULT NULL COMMENT 'O2报警阈值C相', + `gascnt3` int(12) DEFAULT NULL COMMENT '双气传感器数量C相', + `hmcnt3` int(12) DEFAULT NULL COMMENT '温湿度传感器数量C相', + `isupload` int(11) DEFAULT NULL, + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_sf6env_h` +-- + +LOCK TABLES `data_sf6env_h` WRITE; +/*!40000 ALTER TABLE `data_sf6env_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_sf6env_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_sf6env_statistics` +-- + +DROP TABLE IF EXISTS `data_sf6env_statistics`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_sf6env_statistics` ( + `id` varchar(32) NOT NULL COMMENT '主键id', + `eqmid` varchar(32) NOT NULL, + `d_time` datetime NOT NULL, + `gas1` float(12,3) DEFAULT NULL COMMENT 'SF6浓度A相', + `yq1` float(12,3) DEFAULT NULL COMMENT 'O2含量A相', + `md1` float(12,3) DEFAULT NULL COMMENT '温度A相', + `pm1` float(12,3) DEFAULT NULL COMMENT '湿度A相', + `sf6warn1` float(12,3) DEFAULT NULL COMMENT 'SF6浓度报警阈值A相', + `o2warn1` float(12,3) DEFAULT NULL COMMENT 'O2报警阈值A相', + `gascnt1` int(12) DEFAULT NULL COMMENT '双气传感器数量A相', + `hmcnt1` int(12) DEFAULT NULL COMMENT '温湿度传感器数量A相', + `gas2` float(12,3) DEFAULT NULL COMMENT 'SF6浓度B相', + `yq2` float(12,3) DEFAULT NULL COMMENT 'O2含量B相', + `md2` float(12,3) DEFAULT NULL COMMENT '温度B相', + `pm2` float(12,3) DEFAULT NULL COMMENT '湿度B相', + `sf6warn2` float(12,3) DEFAULT NULL COMMENT 'SF6浓度报警阈值B相', + `o2warn2` float(12,3) DEFAULT NULL COMMENT 'O2报警阈值B相', + `gascnt2` int(12) DEFAULT NULL COMMENT '双气传感器数量B相', + `hmcnt2` int(12) DEFAULT NULL COMMENT '温湿度传感器数量B相', + `gas3` float(12,3) DEFAULT NULL COMMENT 'SF6浓度C相', + `yq3` float(12,3) DEFAULT NULL COMMENT 'O2含量C相', + `md3` float(12,3) DEFAULT NULL COMMENT '温度C相', + `pm3` float(12,3) DEFAULT NULL COMMENT '湿度C相', + `sf6warn3` float(12,3) DEFAULT NULL COMMENT 'SF6浓度报警阈值C相', + `o2warn3` float(12,3) DEFAULT NULL COMMENT 'O2报警阈值C相', + `gascnt3` int(12) DEFAULT NULL COMMENT '双气传感器数量C相', + `hmcnt3` int(12) DEFAULT NULL COMMENT '温湿度传感器数量C相', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_sf6env_statistics` +-- + +LOCK TABLES `data_sf6env_statistics` WRITE; +/*!40000 ALTER TABLE `data_sf6env_statistics` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_sf6env_statistics` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_th_h` +-- + +DROP TABLE IF EXISTS `data_th_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_th_h` ( + `eqmid` int(11) NOT NULL, + `d_time` datetime NOT NULL, + `envtmp` float DEFAULT NULL COMMENT '温度', + `envhum` float DEFAULT NULL COMMENT '湿度', + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_th_h` +-- + +LOCK TABLES `data_th_h` WRITE; +/*!40000 ALTER TABLE `data_th_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_th_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_tx` +-- + +DROP TABLE IF EXISTS `data_tx`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_tx` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `eqmid` varchar(45) DEFAULT NULL COMMENT '设备id', + `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间', + `totalCoreCurrent` float DEFAULT NULL COMMENT '铁芯全电流', + `isupload` int(11) DEFAULT NULL, + `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间', + `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='铁芯'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_tx` +-- + +LOCK TABLES `data_tx` WRITE; +/*!40000 ALTER TABLE `data_tx` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_tx` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_video_h` +-- + +DROP TABLE IF EXISTS `data_video_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_video_h` ( + `eqmid` int(11) NOT NULL AUTO_INCREMENT, + `d_time` datetime NOT NULL, + `photopath` varchar(100) DEFAULT NULL COMMENT '图像存放路径', + PRIMARY KEY (`eqmid`,`d_time`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_video_h` +-- + +LOCK TABLES `data_video_h` WRITE; +/*!40000 ALTER TABLE `data_video_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_video_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `data_ysp` +-- + +DROP TABLE IF EXISTS `data_ysp`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `data_ysp` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `eqmid` varchar(45) DEFAULT NULL COMMENT '设备id', + `acquisitionTime` datetime DEFAULT NULL COMMENT '监测时间', + `H2` float DEFAULT NULL COMMENT '氢气', + `CH4` float DEFAULT NULL COMMENT '甲烷', + `C2H6` float DEFAULT NULL COMMENT '乙烷', + `C2H4` float DEFAULT NULL COMMENT '乙烯', + `C2H2` float DEFAULT NULL COMMENT '乙炔', + `CO` float DEFAULT NULL COMMENT '一氧化碳', + `CO2` float DEFAULT NULL COMMENT '二氧化碳', + `O2` float DEFAULT NULL COMMENT '氧气', + `N2` float DEFAULT NULL COMMENT '氮气', + `TotalHydrocarbon` float DEFAULT NULL COMMENT '总烃', + `isupload` int(11) DEFAULT NULL, + `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间', + `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='油色谱'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `data_ysp` +-- + +LOCK TABLES `data_ysp` WRITE; +/*!40000 ALTER TABLE `data_ysp` DISABLE KEYS */; +/*!40000 ALTER TABLE `data_ysp` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `dataval` +-- + +DROP TABLE IF EXISTS `dataval`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `dataval` ( + `dataid` bigint(20) NOT NULL AUTO_INCREMENT, + `gathertime` datetime DEFAULT NULL, + `paramindex` varchar(255) DEFAULT NULL, + `quality` varchar(10) DEFAULT NULL, + `datavalue` float DEFAULT NULL, + PRIMARY KEY (`dataid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `dataval` +-- + +LOCK TABLES `dataval` WRITE; +/*!40000 ALTER TABLE `dataval` DISABLE KEYS */; +/*!40000 ALTER TABLE `dataval` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `department` +-- + +DROP TABLE IF EXISTS `department`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `department` ( + `dept_id` int(11) NOT NULL AUTO_INCREMENT, + `dept_name` varchar(50) NOT NULL DEFAULT '', + `tel_no` varchar(50) NOT NULL DEFAULT '', + `fax_no` varchar(50) NOT NULL DEFAULT '', + `dept_address` varchar(100) NOT NULL, + `dept_no` varchar(200) NOT NULL DEFAULT '0', + `dept_parent` int(11) NOT NULL DEFAULT '0', + `manager` text NOT NULL, + `leader1` text NOT NULL, + `leader2` text NOT NULL, + `dept_func` text NOT NULL, + `is_org` char(1) NOT NULL DEFAULT '0', + `org_admin` varchar(200) NOT NULL, + PRIMARY KEY (`dept_id`) USING BTREE, + KEY `dept_no` (`dept_no`) USING BTREE, + KEY `dept_parent` (`dept_parent`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=gbk ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `department` +-- + +LOCK TABLES `department` WRITE; +/*!40000 ALTER TABLE `department` DISABLE KEYS */; +/*!40000 ALTER TABLE `department` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `dev_main_eqm` +-- + +DROP TABLE IF EXISTS `dev_main_eqm`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `dev_main_eqm` ( + `main_eid` varchar(10) NOT NULL COMMENT '主设备id(''BYQ''->变压器;''GIS''->GIS;''CW''->测温;''BLQ''->避雷器;''DL''->电缆)', + `name` varchar(50) DEFAULT NULL COMMENT '主设备名称' +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `dev_main_eqm` +-- + +LOCK TABLES `dev_main_eqm` WRITE; +/*!40000 ALTER TABLE `dev_main_eqm` DISABLE KEYS */; +/*!40000 ALTER TABLE `dev_main_eqm` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `dev_second_eqm` +-- + +DROP TABLE IF EXISTS `dev_second_eqm`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `dev_second_eqm` ( + `second_eid` varchar(10) NOT NULL COMMENT '二级设备id', + `name` varchar(50) DEFAULT NULL COMMENT '二级设备名称', + `main_eid` varchar(10) DEFAULT NULL COMMENT '主设备id', + PRIMARY KEY (`second_eid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `dev_second_eqm` +-- + +LOCK TABLES `dev_second_eqm` WRITE; +/*!40000 ALTER TABLE `dev_second_eqm` DISABLE KEYS */; +/*!40000 ALTER TABLE `dev_second_eqm` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `devdefect` +-- + +DROP TABLE IF EXISTS `devdefect`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `devdefect` ( + `dataid` bigint(20) NOT NULL COMMENT '序号', + `devid` int(11) NOT NULL COMMENT '设备ID', + `ddtime` datetime DEFAULT NULL COMMENT '缺陷发现时间', + `defectpart` varchar(150) DEFAULT NULL COMMENT '缺陷发生部位', + `defecttype` varchar(100) DEFAULT NULL COMMENT '缺陷类型', + `defectcontent` varchar(255) DEFAULT NULL COMMENT '缺陷内容', + `isdeal` int(2) DEFAULT NULL COMMENT '缺陷是否处理', + `dealtime` datetime DEFAULT NULL COMMENT '缺陷处理时间', + `dealconclusion` varchar(255) DEFAULT NULL COMMENT '缺陷处理结论', + PRIMARY KEY (`dataid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `devdefect` +-- + +LOCK TABLES `devdefect` WRITE; +/*!40000 ALTER TABLE `devdefect` DISABLE KEYS */; +/*!40000 ALTER TABLE `devdefect` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `devsate_h` +-- + +DROP TABLE IF EXISTS `devsate_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `devsate_h` ( + `dataid` int(11) NOT NULL AUTO_INCREMENT, + `zsbid` int(11) NOT NULL COMMENT '主设备ID', + `monitordevtype` varchar(50) NOT NULL COMMENT '监测设备类型', + `paramtype` varchar(50) NOT NULL COMMENT '监测参数', + `currentvalue` float DEFAULT NULL COMMENT '当前值', + `normalrange` varchar(100) DEFAULT NULL COMMENT '正常值范围', + `attentionrange` varchar(100) DEFAULT NULL COMMENT '注意值范围', + `abnormalrange` varchar(100) DEFAULT NULL COMMENT '异常值范围', + `seriousrange` varchar(100) DEFAULT NULL COMMENT '严重值范围', + `communicationstatus` varchar(20) DEFAULT NULL COMMENT '监测设备通讯状态', + `sensorstatus` varchar(20) DEFAULT NULL COMMENT '监测设备状态', + `netstatus` varchar(20) DEFAULT NULL COMMENT '网络状态', + `daychangespade` float DEFAULT NULL COMMENT '数据日变化率', + `monthchangespade` float DEFAULT NULL COMMENT '数据月变化率', + `devstatus` varchar(20) DEFAULT NULL COMMENT '监测数据状态', + `capturetime` date NOT NULL COMMENT '监测时间', + `monitordevid` varchar(32) NOT NULL COMMENT '监测设备ID', + PRIMARY KEY (`dataid`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `devsate_h` +-- + +LOCK TABLES `devsate_h` WRITE; +/*!40000 ALTER TABLE `devsate_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `devsate_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `devstate_c` +-- + +DROP TABLE IF EXISTS `devstate_c`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `devstate_c` ( + `zsbid` int(11) NOT NULL COMMENT '主设备ID', + `monitordevtype` varchar(50) NOT NULL COMMENT '监测设备类型', + `paramtype` varchar(50) NOT NULL COMMENT '监测参数', + `currentvalue` float DEFAULT NULL COMMENT '当前值', + `normalrange` varchar(100) DEFAULT NULL COMMENT '正常值范围', + `attentionrange` varchar(100) DEFAULT NULL COMMENT '注意值范围', + `abnormalrange` varchar(100) DEFAULT NULL COMMENT '异常值范围', + `seriousrange` varchar(100) DEFAULT NULL COMMENT '严重值范围', + `communicationstatus` varchar(20) DEFAULT NULL COMMENT '监测设备通讯状态', + `sensorstatus` varchar(20) DEFAULT NULL COMMENT '监测设备状态', + `netstatus` varchar(20) DEFAULT NULL COMMENT '网络状态', + `daychangespade` float DEFAULT NULL COMMENT '数据日变化率', + `monthchangespade` float DEFAULT NULL COMMENT '数据月变化率', + `devstatus` varchar(20) DEFAULT NULL COMMENT '监测数据状态', + `monitordevid` varchar(32) NOT NULL COMMENT '监测设备ID', + PRIMARY KEY (`zsbid`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `devstate_c` +-- + +LOCK TABLES `devstate_c` WRITE; +/*!40000 ALTER TABLE `devstate_c` DISABLE KEYS */; +/*!40000 ALTER TABLE `devstate_c` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `furfuraltest` +-- + +DROP TABLE IF EXISTS `furfuraltest`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `furfuraltest` ( + `dataid` int(11) NOT NULL COMMENT '序号', + `devid` int(11) DEFAULT NULL COMMENT '设备id', + `testtime` datetime DEFAULT NULL COMMENT '测试日期', + `lfot` datetime DEFAULT NULL COMMENT '上一次滤油时间', + `furfuralcontent` float DEFAULT NULL COMMENT '糠醛含量(mg/L)', + PRIMARY KEY (`dataid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `furfuraltest` +-- + +LOCK TABLES `furfuraltest` WRITE; +/*!40000 ALTER TABLE `furfuraltest` DISABLE KEYS */; +/*!40000 ALTER TABLE `furfuraltest` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `goods_type` +-- + +DROP TABLE IF EXISTS `goods_type`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `goods_type` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `pid` int(11) NOT NULL, + `path` varchar(255) NOT NULL, + `level` int(255) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `goods_type` +-- + +LOCK TABLES `goods_type` WRITE; +/*!40000 ALTER TABLE `goods_type` DISABLE KEYS */; +/*!40000 ALTER TABLE `goods_type` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `hwsb` +-- + +DROP TABLE IF EXISTS `hwsb`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `hwsb` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `hwsbid` int(11) NOT NULL COMMENT '红外设备id', + `nPresetId` int(11) NOT NULL COMMENT '预置点id', + `nRuleId` int(11) NOT NULL COMMENT '规则编号', + `nMeterType` int(11) NOT NULL COMMENT '规则类型', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `hwsb` +-- + +LOCK TABLES `hwsb` WRITE; +/*!40000 ALTER TABLE `hwsb` DISABLE KEYS */; +/*!40000 ALTER TABLE `hwsb` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `i2relation` +-- + +DROP TABLE IF EXISTS `i2relation`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `i2relation` ( + `eqmid` int(11) DEFAULT NULL, + `cacid` varchar(17) DEFAULT '', + `sensorid` varchar(17) NOT NULL, + `equipmentid` varchar(17) DEFAULT '', + `monitortype` varchar(10) DEFAULT '', + `phase` varchar(10) DEFAULT '', + `sensorindex` int(11) DEFAULT NULL, + PRIMARY KEY (`sensorid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `i2relation` +-- + +LOCK TABLES `i2relation` WRITE; +/*!40000 ALTER TABLE `i2relation` DISABLE KEYS */; +/*!40000 ALTER TABLE `i2relation` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `icd_config_type` +-- + +DROP TABLE IF EXISTS `icd_config_type`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `icd_config_type` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ied_name` varchar(45) NOT NULL COMMENT 'IED名称', + `ldevice_inst` varchar(45) NOT NULL COMMENT '设备类型', + `ln_class` varchar(45) NOT NULL COMMENT 'LN类型', + `ln_desc` varchar(200) DEFAULT NULL, + `table_name` varchar(45) DEFAULT NULL COMMENT '表名', + PRIMARY KEY (`id`), + KEY `idxKey` (`ied_name`,`ldevice_inst`,`ln_class`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='ICD配置类型表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `icd_config_type` +-- + +LOCK TABLES `icd_config_type` WRITE; +/*!40000 ALTER TABLE `icd_config_type` DISABLE KEYS */; +/*!40000 ALTER TABLE `icd_config_type` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `icd_config_type_att` +-- + +DROP TABLE IF EXISTS `icd_config_type_att`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `icd_config_type_att` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `icd_config_type_id` int(11) NOT NULL COMMENT '配置类型表id', + `do_name` varchar(45) NOT NULL COMMENT '属性', + `param` varchar(200) DEFAULT NULL COMMENT '参数', + `description` varchar(200) DEFAULT NULL COMMENT '备注', + `col_name` varchar(45) DEFAULT NULL COMMENT '字段名', + `insts` varchar(2000) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='ICD配置类型属性表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `icd_config_type_att` +-- + +LOCK TABLES `icd_config_type_att` WRITE; +/*!40000 ALTER TABLE `icd_config_type_att` DISABLE KEYS */; +/*!40000 ALTER TABLE `icd_config_type_att` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `icd_config_type_inst` +-- + +DROP TABLE IF EXISTS `icd_config_type_inst`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `icd_config_type_inst` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `icd_config_type_id` int(11) NOT NULL COMMENT '配置类型表id', + `inst` varchar(45) NOT NULL COMMENT '实例', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='ICD配置类型实例表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `icd_config_type_inst` +-- + +LOCK TABLES `icd_config_type_inst` WRITE; +/*!40000 ALTER TABLE `icd_config_type_inst` DISABLE KEYS */; +/*!40000 ALTER TABLE `icd_config_type_inst` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `ied` +-- + +DROP TABLE IF EXISTS `ied`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `ied` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'IED设备ID', + `name` varchar(50) DEFAULT NULL COMMENT 'IED设备名称', + `manufacture` varchar(50) DEFAULT NULL COMMENT '生产厂家', + `factoryint` varchar(50) DEFAULT NULL COMMENT '出厂编号', + `manufacturedate` date DEFAULT NULL COMMENT '出厂日期', + `rundate` date DEFAULT NULL COMMENT '投运日期', + `location` varchar(100) DEFAULT NULL COMMENT '安装位置描述', + `note` varchar(200) DEFAULT NULL COMMENT '备注', + `downip` varchar(32) DEFAULT NULL COMMENT 'IED设备下行网络IP地址', + `upip` varchar(32) DEFAULT NULL COMMENT 'IED设备上行网络IP地址', + `cacid` int(11) NOT NULL COMMENT 'IED设备ID', + `diskfree` int(11) DEFAULT NULL COMMENT '磁盘空间MB', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='IED设备表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `ied` +-- + +LOCK TABLES `ied` WRITE; +/*!40000 ALTER TABLE `ied` DISABLE KEYS */; +INSERT INTO `ied` VALUES (3,'智能数据处理平台','','','2000-01-01','2000-01-01','','','','',4,0); +/*!40000 ALTER TABLE `ied` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `jg` +-- + +DROP TABLE IF EXISTS `jg`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `jg` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `mc` varchar(50) NOT NULL, + `bdzid` int(11) NOT NULL, + `ls` decimal(65,30) DEFAULT NULL, + `areaid` char(32) DEFAULT NULL, + `xh` decimal(65,30) DEFAULT NULL COMMENT '序号', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `jg` +-- + +LOCK TABLES `jg` WRITE; +/*!40000 ALTER TABLE `jg` DISABLE KEYS */; +/*!40000 ALTER TABLE `jg` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `link` +-- + +DROP TABLE IF EXISTS `link`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `link` ( + `id` mediumint(9) NOT NULL AUTO_INCREMENT COMMENT '链接id', + `title` varchar(60) NOT NULL COMMENT '链接标题', + `desc` varchar(255) NOT NULL COMMENT '链接描述', + `url` varchar(160) NOT NULL COMMENT '链接地址', + `sort` mediumint(9) NOT NULL DEFAULT '50' COMMENT '链接排序', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `link` +-- + +LOCK TABLES `link` WRITE; +/*!40000 ALTER TABLE `link` DISABLE KEYS */; +/*!40000 ALTER TABLE `link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `lx` +-- + +DROP TABLE IF EXISTS `lx`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `lx` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `mc` varchar(50) NOT NULL, + `ls` decimal(65,30) DEFAULT NULL COMMENT '1:在线监测、一次设备;2:网络监听类型(具体设备需要处于可用状态)', + `zxjc` decimal(65,30) DEFAULT NULL COMMENT '1:在线监测', + `zxjcurl` varchar(50) DEFAULT NULL COMMENT '在线监测URL', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `lx` +-- + +LOCK TABLES `lx` WRITE; +/*!40000 ALTER TABLE `lx` DISABLE KEYS */; +/*!40000 ALTER TABLE `lx` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `mdevstate_c` +-- + +DROP TABLE IF EXISTS `mdevstate_c`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `mdevstate_c` ( + `mid` int(11) NOT NULL COMMENT '监测装置ID', + `gathertime` date NOT NULL COMMENT '采集时间', + `communicationstatus` int(11) DEFAULT NULL COMMENT '通讯状态', + `sensorstatus` int(11) DEFAULT NULL COMMENT '传感器状态', + PRIMARY KEY (`mid`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `mdevstate_c` +-- + +LOCK TABLES `mdevstate_c` WRITE; +/*!40000 ALTER TABLE `mdevstate_c` DISABLE KEYS */; +/*!40000 ALTER TABLE `mdevstate_c` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `mdevstate_h` +-- + +DROP TABLE IF EXISTS `mdevstate_h`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `mdevstate_h` ( + `did` int(11) NOT NULL AUTO_INCREMENT COMMENT '数据id', + `mid` int(11) NOT NULL COMMENT '监测装置ID', + `gathertime` date NOT NULL COMMENT '采集时间', + `communicationstatus` int(11) DEFAULT NULL COMMENT '通讯状态', + `sensorstatus` int(11) DEFAULT NULL COMMENT '传感器状态', + PRIMARY KEY (`did`) USING BTREE, + UNIQUE KEY `index_mdevstate` (`mid`,`gathertime`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `mdevstate_h` +-- + +LOCK TABLES `mdevstate_h` WRITE; +/*!40000 ALTER TABLE `mdevstate_h` DISABLE KEYS */; +/*!40000 ALTER TABLE `mdevstate_h` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `modev` +-- + +DROP TABLE IF EXISTS `modev`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `modev` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '监测设备ID', + `name` varchar(50) DEFAULT NULL COMMENT '监测设备名称', + `modevtid` int(11) NOT NULL COMMENT '监测设备类型ID', + `address` int(11) DEFAULT NULL COMMENT '监测设备地址', + `frequency` int(11) DEFAULT NULL COMMENT '监测设备采集频率', + `portname` varchar(10) DEFAULT NULL COMMENT '监测设备端口', + `careLevel` int(10) DEFAULT NULL COMMENT '关心度', + `zsbid` int(11) NOT NULL COMMENT '被监测设备ID', + `iedid` int(11) NOT NULL COMMENT '监测设备所属IED设备ID', + `equipmentmodel` varchar(50) DEFAULT NULL COMMENT '监测设备型号', + `manufacture` varchar(50) DEFAULT NULL COMMENT '生产厂家', + `factoryint` varchar(50) DEFAULT NULL COMMENT '出厂编号', + `manufacturedate` date DEFAULT NULL COMMENT '出厂日期', + `rundate` date DEFAULT NULL COMMENT '投运日期', + `location` varchar(100) DEFAULT NULL COMMENT '安装位置描述', + `note` varchar(200) DEFAULT NULL COMMENT '备注', + `znxjdevid` varchar(32) DEFAULT NULL COMMENT '智能巡检设备ID', + `ip` char(15) DEFAULT NULL, + `username` varchar(255) DEFAULT NULL, + `pwd` varchar(50) DEFAULT NULL COMMENT '密码', + `port` char(6) DEFAULT NULL, + `nPresetId` int(11) DEFAULT NULL COMMENT '预置点id', + `nRuleId` int(11) DEFAULT NULL COMMENT '规则编号', + `nMeterType` int(11) DEFAULT NULL COMMENT '规则类型', + `main_eid` int(11) DEFAULT NULL, + `second_eid` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `modev` +-- + +LOCK TABLES `modev` WRITE; +/*!40000 ALTER TABLE `modev` DISABLE KEYS */; +/*!40000 ALTER TABLE `modev` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `modev1` +-- + +DROP TABLE IF EXISTS `modev1`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `modev1` ( + `var_int` int(10) DEFAULT NULL, + `var_float` float(10,5) DEFAULT NULL, + `var_varchar` varchar(255) DEFAULT NULL, + `var_datetime` datetime DEFAULT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `modev1` +-- + +LOCK TABLES `modev1` WRITE; +/*!40000 ALTER TABLE `modev1` DISABLE KEYS */; +/*!40000 ALTER TABLE `modev1` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `modev_eaif` +-- + +DROP TABLE IF EXISTS `modev_eaif`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `modev_eaif` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `eqmid` int(11) DEFAULT NULL, + `nPresetId` int(11) DEFAULT NULL COMMENT '预置点id', + `nRuleId` int(11) DEFAULT NULL COMMENT '规则编号', + `nMeterType` int(11) DEFAULT NULL COMMENT '规则类型', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `modev_eaif` +-- + +LOCK TABLES `modev_eaif` WRITE; +/*!40000 ALTER TABLE `modev_eaif` DISABLE KEYS */; +/*!40000 ALTER TABLE `modev_eaif` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `modevtype` +-- + +DROP TABLE IF EXISTS `modevtype`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `modevtype` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '监测设备类型ID', + `mc` varchar(50) NOT NULL COMMENT '监测设备类型名称', + `tablename` varchar(50) DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM AUTO_INCREMENT=68 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='监测设备类型表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `modevtype` +-- + +LOCK TABLES `modevtype` WRITE; +/*!40000 ALTER TABLE `modevtype` DISABLE KEYS */; +INSERT INTO `modevtype` VALUES (1,'油色谱','data_epa_h'),(2,'铁芯','data_eia_h'),(4,'避雷器','data_moa_h'),(5,'测温','data_etp_h'),(6,'温湿度','data_th_h'),(7,'空气质量','data_aq_h'),(8,'SF6','data_sf6_h'),(9,'红外温度A相','data_eaif_h'),(10,'局部放电A相','data_pd_h'),(11,'油温油压','data_otp_h'),(12,'视频','data_video_h'),(13,'流变','data_eia_h'),(14,'压变','data_eia_h'),(15,'套管','data_eia_h'),(16,'微气象','data_microclimate_h'),(21,'电缆沟','data_dlg_h'),(3,'夹件','data_eia_h'),(25,'局部放电B相','data_pd_h'),(26,'局部放电C相','data_pd_h'),(27,'电缆环流A2相','data_scur_h'),(28,'电缆环流A3相','data_scur_h'),(29,'电缆环流B1相','data_scur_h'),(30,'电缆环流B2相','data_scur_h'),(31,'电缆环流B3相','data_scur_h'),(32,'电缆环流C1相','data_scur_h'),(33,'电缆环流C2相','data_scur_h'),(34,'电缆环流C3相','data_scur_h'),(35,'红外温度B相','data_eaif_h'),(36,'红外温度C相','data_eaif_h'),(38,'光声光谱','data_epa_h'),(39,'油中气设备','data_epa_h'),(40,'接地网','data_jdw_h'),(59,'光纤测温','data_etp_h'),(60,'绕组测温','data_etp_h'),(20,'电缆环流A1相','data_scur_h'),(61,'SF6环境','data_sf6env_h'),(62,'弧闪',NULL),(63,'金属氧化物绝缘监测','data_jsyhw_jyjc'),(64,'SF6气体压力','data_sf6_qtyl'),(65,'断路器局部放电','data_dlq_jbfd'),(66,'铁芯2','data_tx'),(67,'油色谱2','data_ysp'); +/*!40000 ALTER TABLE `modevtype` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `modevtype_point` +-- + +DROP TABLE IF EXISTS `modevtype_point`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `modevtype_point` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `modevtype_id` int(11) DEFAULT NULL COMMENT '监测设备类型表id', + `field` varchar(45) DEFAULT NULL COMMENT '对应tablename表的字段名', + `field_desc` varchar(200) DEFAULT NULL COMMENT '对应tablename表的字段名称描述', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8mb4 COMMENT='监测设备类型属性点表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `modevtype_point` +-- + +LOCK TABLES `modevtype_point` WRITE; +/*!40000 ALTER TABLE `modevtype_point` DISABLE KEYS */; +INSERT INTO `modevtype_point` VALUES (1,10,'nqs','平均放电电流'),(2,10,'apppadsch','视在局放放电量,峰值'),(3,25,'nqs','平均放电电流'),(4,25,'apppadsch','视在局放放电量,峰值'),(5,26,'nqs','平均放电电流'),(6,26,'apppadsch','视在局放放电量,峰值'),(8,2,'d_ct_1','泄露电流'),(9,3,'d_ct_1','泄露电流'),(10,1,'ch4ppm','甲烷含量'),(11,1,'c2h4ppm','乙烯含量'),(12,1,'c2h6ppm','乙烷含量'),(13,1,'c2h2ppm','乙炔含量'),(14,1,'h2ppm','氢气含量'),(15,1,'coppm','一氧化碳含量'),(16,1,'co2ppm','二氧化碳含量'),(17,1,'h2oppm','微水含量'),(18,1,'totalhydrocarbon','总烃'),(19,4,'lc1','A相全电流'),(20,4,'ligcnt1','A相累计落雷次数'),(21,4,'lc2','B相全电流'),(22,4,'ligcnt2','B相累计落雷次数'),(23,4,'lc3','C相全电流'),(24,4,'ligcnt3','C相累计落雷次数'),(25,20,'current_val','环流数据'),(26,27,'current_val','环流数据'),(27,28,'current_val','环流数据'),(28,29,'current_val','环流数据'),(29,30,'current_val','环流数据'),(30,31,'current_val','环流数据'),(31,32,'current_val','环流数据'),(32,33,'current_val','环流数据'),(33,34,'current_val','环流数据'),(34,8,'temp1','A相温度'),(35,8,'pressure1','A相压力'),(36,8,'md1','A相密度'),(37,8,'temp2','B相温度'),(38,8,'pressure2','B相压力'),(39,8,'md2','B相密度'),(40,8,'temp3','C相温度'),(41,8,'pressure3','C相压力'),(42,8,'md3','C相密度'),(44,64,'density','密度'),(45,64,'pressure20C','压力(20℃)'),(46,64,'temperature','温度'),(47,63,'actionCount','计数器动作次数'),(48,63,'totalCurrent','全电流'),(49,65,'dischargeCapacity','放电量'),(50,65,'dischargeWaveform','放电波形'),(51,65,'pulseCount','脉冲个数'),(52,65,'phase','相位'),(53,66,'totalCoreCurrent','铁芯全电流'),(54,67,'C2H2','乙炔'),(55,67,'C2H4','乙烯'); +/*!40000 ALTER TABLE `modevtype_point` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `n_103_point` +-- + +DROP TABLE IF EXISTS `n_103_point`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `n_103_point` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `npoint_id` int(11) DEFAULT NULL COMMENT '监测装置属性点ID', + `sensor_103_id` int(11) DEFAULT NULL COMMENT '103和sensor表的关联ID', + `sadr` varchar(45) DEFAULT NULL COMMENT '信息体地址', + `item_no` varchar(45) DEFAULT NULL COMMENT '条目号', + `paramindex` varchar(200) DEFAULT NULL COMMENT '61850对象参引', + `part_name` varchar(200) DEFAULT NULL COMMENT '名称后半部分', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='103和point表的关联'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `n_103_point` +-- + +LOCK TABLES `n_103_point` WRITE; +/*!40000 ALTER TABLE `n_103_point` DISABLE KEYS */; +/*!40000 ALTER TABLE `n_103_point` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `n_103_sensor` +-- + +DROP TABLE IF EXISTS `n_103_sensor`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `n_103_sensor` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `nsensor_id` int(11) DEFAULT NULL COMMENT '监测装置ID', + `grp_no` int(11) DEFAULT NULL COMMENT '组号', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='103和sensor表的关联'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `n_103_sensor` +-- + +LOCK TABLES `n_103_sensor` WRITE; +/*!40000 ALTER TABLE `n_103_sensor` DISABLE KEYS */; +/*!40000 ALTER TABLE `n_103_sensor` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `n_point` +-- + +DROP TABLE IF EXISTS `n_point`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `n_point` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `sensor_id` int(11) DEFAULT NULL COMMENT '监测装置ID', + `field` varchar(45) DEFAULT NULL COMMENT '对应tablename表的字段名', + `field_desc` varchar(200) DEFAULT NULL COMMENT '对应tablename表的字段名称描述', + `point_id` int(11) DEFAULT NULL COMMENT '对应的点位编号', + `type` int(11) DEFAULT NULL COMMENT '点位类型 1:遥信 2:遥测', + PRIMARY KEY (`id`), + KEY `idxField` (`sensor_id`,`field`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='监测装置属性点表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `n_point` +-- + +LOCK TABLES `n_point` WRITE; +/*!40000 ALTER TABLE `n_point` DISABLE KEYS */; +/*!40000 ALTER TABLE `n_point` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `n_sensor` +-- + +DROP TABLE IF EXISTS `n_sensor`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `n_sensor` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(200) DEFAULT NULL COMMENT '名称', + `phase` varchar(45) DEFAULT NULL COMMENT '相别', + `type_id` int(11) DEFAULT NULL COMMENT '类型id', + `sensor_code` varchar(45) DEFAULT NULL COMMENT '传感器的唯一标识', + `equipment_code` varchar(45) DEFAULT NULL COMMENT '被监测设备的唯一标识', + `dev_id` int(11) DEFAULT NULL COMMENT '装置ID', + `status` int(11) DEFAULT '1' COMMENT '状态 1-正常 0-删除', + `zsb_id` int(11) DEFAULT NULL, + `icd_id` int(11) DEFAULT NULL COMMENT '关联icd表中的id', + PRIMARY KEY (`id`), + KEY `idxSensor` (`sensor_code`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='监测装置表'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `n_sensor` +-- + +LOCK TABLES `n_sensor` WRITE; +/*!40000 ALTER TABLE `n_sensor` DISABLE KEYS */; +/*!40000 ALTER TABLE `n_sensor` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `oiltest` +-- + +DROP TABLE IF EXISTS `oiltest`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `oiltest` ( + `dataid` int(11) NOT NULL AUTO_INCREMENT COMMENT '序号', + `devid` int(11) DEFAULT NULL COMMENT '设备id', + `testdate` int(10) DEFAULT NULL COMMENT '试验日期', + `testpart` varchar(100) DEFAULT NULL COMMENT '取样部位', + `testoiltemp` float(10,0) DEFAULT NULL COMMENT '取样油温(℃)', + `phv` float(10,0) DEFAULT NULL COMMENT '酸值(mgKOH/g)', + `brdvlt` float(10,0) DEFAULT NULL COMMENT '击穿电压(kV)', + `wppm` float(10,0) DEFAULT NULL COMMENT '微水(mg/L)', + `inttension` float(10,0) DEFAULT NULL COMMENT '界面张力(mN/m)', + `acoip` float(10,0) DEFAULT NULL COMMENT '绝缘纸平均集合度DP', + PRIMARY KEY (`dataid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `oiltest` +-- + +LOCK TABLES `oiltest` WRITE; +/*!40000 ALTER TABLE `oiltest` DISABLE KEYS */; +/*!40000 ALTER TABLE `oiltest` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `prepos` +-- + +DROP TABLE IF EXISTS `prepos`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `prepos` ( + `eqmid` varchar(32) NOT NULL, + `preposid` int(11) NOT NULL, + `preposname` varchar(50) DEFAULT NULL, + `lasttime` date DEFAULT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `prepos` +-- + +LOCK TABLES `prepos` WRITE; +/*!40000 ALTER TABLE `prepos` DISABLE KEYS */; +/*!40000 ALTER TABLE `prepos` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `rptparamindex` +-- + +DROP TABLE IF EXISTS `rptparamindex`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `rptparamindex` ( + `objid` int(11) DEFAULT NULL COMMENT '61850对象id', + `paramindex` varchar(200) NOT NULL COMMENT '61850对象参引', + `eqmid` int(11) DEFAULT NULL COMMENT '监测设备id', + `tablename` varchar(50) DEFAULT NULL COMMENT '数据存放表名称', + `colname` varchar(50) DEFAULT NULL COMMENT '数据存放对应列名称', + `phase` varchar(2) DEFAULT NULL COMMENT '相位', + PRIMARY KEY (`paramindex`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `rptparamindex` +-- + +LOCK TABLES `rptparamindex` WRITE; +/*!40000 ALTER TABLE `rptparamindex` DISABLE KEYS */; +/*!40000 ALTER TABLE `rptparamindex` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `student` +-- + +DROP TABLE IF EXISTS `student`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `student` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(20) DEFAULT NULL, + `class_id` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `student` +-- + +LOCK TABLES `student` WRITE; +/*!40000 ALTER TABLE `student` DISABLE KEYS */; +/*!40000 ALTER TABLE `student` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `sys_job` +-- + +DROP TABLE IF EXISTS `sys_job`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_job` ( + `job_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务ID', + `bean_name` varchar(255) DEFAULT NULL COMMENT '服务名称', + `method_name` varchar(255) DEFAULT NULL COMMENT '方法名称', + `method_params` varchar(255) DEFAULT NULL COMMENT '方法参数', + `cron_expression` varchar(255) DEFAULT '' COMMENT 'cron执行表达式', + `status` char(1) DEFAULT '0' COMMENT '状态(1正常 2暂停)', + `create_by` varchar(64) DEFAULT '' COMMENT '创建者', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) DEFAULT '' COMMENT '更新者', + `update_time` datetime DEFAULT NULL COMMENT '更新时间', + `remark` varchar(500) DEFAULT '' COMMENT '备注信息', + PRIMARY KEY (`job_id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sys_job` +-- + +LOCK TABLES `sys_job` WRITE; +/*!40000 ALTER TABLE `sys_job` DISABLE KEYS */; +/*!40000 ALTER TABLE `sys_job` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `sys_log` +-- + +DROP TABLE IF EXISTS `sys_log`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_log` ( + `dataid` int(11) NOT NULL, + `logtime` datetime DEFAULT NULL, + `logtype` varchar(50) DEFAULT NULL, + `logcontent` varchar(255) DEFAULT NULL, + PRIMARY KEY (`dataid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sys_log` +-- + +LOCK TABLES `sys_log` WRITE; +/*!40000 ALTER TABLE `sys_log` DISABLE KEYS */; +/*!40000 ALTER TABLE `sys_log` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `sys_menu` +-- + +DROP TABLE IF EXISTS `sys_menu`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_menu` ( + `id` mediumint(9) NOT NULL AUTO_INCREMENT, + `ppid` varchar(80) NOT NULL DEFAULT '0' COMMENT 'main is -1.other is main pidname', + `pid` varchar(50) NOT NULL DEFAULT '0', + `pidname` varchar(100) NOT NULL, + `pbh` varchar(50) NOT NULL DEFAULT 'n', + `lang` varchar(50) DEFAULT NULL, + `name` varchar(225) DEFAULT NULL, + `cssname` varchar(50) DEFAULT NULL, + `alias_jump` varchar(100) DEFAULT NULL, + `sta_visible` varchar(1) NOT NULL DEFAULT 'y', + `type` varchar(50) NOT NULL DEFAULT 'page' COMMENT 'page or cate or catesub', + `linkurl` varchar(200) DEFAULT NULL, + `sta_noaccess` char(1) NOT NULL DEFAULT 'n', + `pos` int(3) DEFAULT '50', + `sta_cusmenu` char(1) NOT NULL DEFAULT 'n', + `cusmenudesp` text, + `menu_xiala` text, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sys_menu` +-- + +LOCK TABLES `sys_menu` WRITE; +/*!40000 ALTER TABLE `sys_menu` DISABLE KEYS */; +INSERT INTO `sys_menu` VALUES (3,'-1','0','设备台帐管理','n',NULL,NULL,NULL,NULL,'y','page','/admin/bdz/lst','n',50,'n',NULL,NULL),(5,'-1','0','系统管理','n',NULL,NULL,NULL,NULL,'y','page','/admin/admin/lst','n',50,'n',NULL,NULL),(2,'-1','0','数据报表','n',NULL,NULL,NULL,NULL,'y','page','/index/tree','n',50,'n',NULL,NULL); +/*!40000 ALTER TABLE `sys_menu` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `sys_rg` +-- + +DROP TABLE IF EXISTS `sys_rg`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_rg` ( + `mc` varchar(50) DEFAULT NULL, + `ac1` varchar(50) DEFAULT NULL, + `ac2` varchar(50) DEFAULT NULL, + `ac3` varchar(50) DEFAULT NULL, + `ac4` varchar(50) DEFAULT NULL, + `ac5` varchar(50) DEFAULT NULL, + `ac6` varchar(50) DEFAULT NULL, + `ac7` varchar(50) DEFAULT NULL, + `ac8` varchar(50) DEFAULT NULL, + `ac9` varchar(50) DEFAULT NULL, + `ck1` int(11) DEFAULT '1', + `ck2` int(11) DEFAULT '1', + `ck3` int(11) DEFAULT '1', + `ck4` int(11) DEFAULT '1', + `ck5` int(11) DEFAULT '1', + `ck6` int(11) DEFAULT '1', + `ck7` int(11) DEFAULT '1', + `ck8` int(11) DEFAULT '1', + `ck9` int(11) DEFAULT '1', + `unique` int(1) DEFAULT '0' +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sys_rg` +-- + +LOCK TABLES `sys_rg` WRITE; +/*!40000 ALTER TABLE `sys_rg` DISABLE KEYS */; +INSERT INTO `sys_rg` VALUES ('6135DEBDA248C24B','E10ED149F28ADEAD','e966dc3fddb9ba97ca8c4f2678d9890fca12f995','-2cd20aeb33da6c0bfa766510b60203c4','299f581a7229a042e71e001eaad34018','3543aadf9ba9c991f75f9fb9681d01dd',NULL,NULL,NULL,NULL,1,1,1,1,1,1,1,1,1,1); +/*!40000 ALTER TABLE `sys_rg` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `sys_user` +-- + +DROP TABLE IF EXISTS `sys_user`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_user` ( + `uid` int(11) NOT NULL AUTO_INCREMENT, + `user_id` varchar(20) NOT NULL DEFAULT '', + `user_name` varchar(200) NOT NULL DEFAULT '', + `byname` varchar(20) NOT NULL DEFAULT '', + `useing_key` char(2) NOT NULL DEFAULT '', + `using_finger` char(1) NOT NULL DEFAULT '0', + `password` varchar(50) NOT NULL DEFAULT '', + `key_sn` varchar(100) NOT NULL DEFAULT '', + `secure_key_sn` varchar(20) NOT NULL DEFAULT '0', + `user_priv` varchar(50) NOT NULL DEFAULT '', + `post_priv` varchar(50) NOT NULL DEFAULT '', + `dept_id` int(11) NOT NULL DEFAULT '0', + `sex` char(1) NOT NULL DEFAULT '', + `birthday` date NOT NULL DEFAULT '2017-01-09', + `is_lunar` char(1) NOT NULL DEFAULT '0', + `tel_no_dept` varchar(50) NOT NULL DEFAULT '', + `fax_no_dept` varchar(50) NOT NULL DEFAULT '', + `add_home` varchar(200) NOT NULL DEFAULT '', + `post_no_home` varchar(50) NOT NULL DEFAULT '', + `tel_no_home` varchar(50) NOT NULL DEFAULT '', + `mobil_no` varchar(50) NOT NULL DEFAULT '', + `bp_no` varchar(50) NOT NULL DEFAULT '', + `email` varchar(50) NOT NULL DEFAULT '', + `oicq_no` varchar(50) NOT NULL DEFAULT '', + `icq_no` varchar(50) NOT NULL DEFAULT '', + `msn` varchar(200) NOT NULL DEFAULT '', + `nick_name` varchar(50) NOT NULL DEFAULT '', + `avatar` varchar(20) NOT NULL DEFAULT '', + `call_sound` char(2) NOT NULL DEFAULT '', + `bbs_counter` int(11) NOT NULL DEFAULT '0', + `duty_type` int(11) NOT NULL DEFAULT '0', + `sms_on` char(1) NOT NULL DEFAULT '', + `menu_type` char(1) NOT NULL DEFAULT '1', + `uin` int(10) unsigned NOT NULL DEFAULT '0', + `pic_id` int(10) unsigned NOT NULL DEFAULT '0', + `authorize` int(11) NOT NULL DEFAULT '0', + `canbroadcast` int(11) NOT NULL DEFAULT '0', + `disabled` int(11) NOT NULL DEFAULT '0', + `mobile_sp` varchar(50) NOT NULL DEFAULT '', + `mobile_ps1` varchar(50) NOT NULL DEFAULT '', + `mobile_ps2` varchar(50) NOT NULL DEFAULT '', + `theme` varchar(10) NOT NULL DEFAULT '1', + `portal` varchar(100) NOT NULL DEFAULT '1', + `panel` char(1) NOT NULL DEFAULT '1', + `online` int(11) NOT NULL DEFAULT '0', + `on_status` char(1) NOT NULL DEFAULT '1', + `mobil_no_hidden` char(1) NOT NULL DEFAULT '0', + `mytable_left` varchar(200) NOT NULL DEFAULT 'ALL', + `mytable_right` varchar(200) NOT NULL DEFAULT 'ALL', + `email_capacity` int(11) NOT NULL DEFAULT '0', + `folder_capacity` int(11) NOT NULL DEFAULT '0', + `user_no` int(11) NOT NULL DEFAULT '10', + `not_login` varchar(20) NOT NULL DEFAULT '0', + `not_view_user` varchar(20) NOT NULL DEFAULT '0', + `not_view_table` varchar(20) NOT NULL DEFAULT '0', + `not_search` varchar(2) NOT NULL DEFAULT '0', + `last_visit_ip` varchar(100) NOT NULL DEFAULT '', + `menu_image` varchar(20) NOT NULL DEFAULT '0', + `weather_city` varchar(20) NOT NULL DEFAULT '54511', + `show_rss` char(1) NOT NULL DEFAULT '1', + `menu_expand` char(2) NOT NULL DEFAULT '', + `webmail_capacity` int(11) NOT NULL DEFAULT '0', + `webmail_num` int(11) NOT NULL DEFAULT '0', + `my_status` varchar(200) NOT NULL DEFAULT '', + `score` int(11) NOT NULL DEFAULT '0', + `tder_flag` char(1) NOT NULL DEFAULT '', + `limit_login` char(1) NOT NULL DEFAULT '0', + `photo` varchar(20) NOT NULL DEFAULT '2', + `im_range` int(1) NOT NULL DEFAULT '1', + PRIMARY KEY (`uid`) USING BTREE, + UNIQUE KEY `user_id` (`user_id`) USING BTREE, + KEY `user_name` (`user_name`) USING BTREE, + KEY `user_priv` (`user_priv`) USING BTREE, + KEY `dept_id` (`dept_id`) USING BTREE, + KEY `byname` (`byname`) USING BTREE, + KEY `score` (`score`) USING BTREE, + KEY `user_no` (`user_no`) USING BTREE +) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=gbk ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sys_user` +-- + +LOCK TABLES `sys_user` WRITE; +/*!40000 ALTER TABLE `sys_user` DISABLE KEYS */; +INSERT INTO `sys_user` VALUES (1,'1','yunwei','','','0','D493FFEA2FD21DAE1E85EDFB122E63EA','','0','','',0,'','2017-01-09','0','','','','','','','','','','','','','','',0,0,'','1',0,0,0,0,0,'','','','1','1','1',0,'1','0','ALL','ALL',0,0,10,'0','0','0','0','','0','54511','1','',0,0,'',0,'','0','2',1); +/*!40000 ALTER TABLE `sys_user` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `sys_user_cfg` +-- + +DROP TABLE IF EXISTS `sys_user_cfg`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_user_cfg` ( + `id` int(11) NOT NULL DEFAULT '1', + `privid` int(11) DEFAULT NULL, + `devid` varchar(32) CHARACTER SET gbk DEFAULT NULL, + `menuid` int(11) DEFAULT NULL, + `linkurl` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sys_user_cfg` +-- + +LOCK TABLES `sys_user_cfg` WRITE; +/*!40000 ALTER TABLE `sys_user_cfg` DISABLE KEYS */; +/*!40000 ALTER TABLE `sys_user_cfg` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `sys_user_priv` +-- + +DROP TABLE IF EXISTS `sys_user_priv`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_user_priv` ( + `user_priv` int(11) NOT NULL AUTO_INCREMENT, + `priv_name` varchar(200) NOT NULL DEFAULT '', + `priv_no` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`user_priv`) USING BTREE, + KEY `priv_no` (`priv_no`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=gbk ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sys_user_priv` +-- + +LOCK TABLES `sys_user_priv` WRITE; +/*!40000 ALTER TABLE `sys_user_priv` DISABLE KEYS */; +/*!40000 ALTER TABLE `sys_user_priv` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `sys_userpriv_cfg` +-- + +DROP TABLE IF EXISTS `sys_userpriv_cfg`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_userpriv_cfg` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `privid` int(11) DEFAULT NULL, + `devid` varchar(32) CHARACTER SET gbk DEFAULT NULL, + `menuid` varchar(11) DEFAULT NULL, + `linkurl` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sys_userpriv_cfg` +-- + +LOCK TABLES `sys_userpriv_cfg` WRITE; +/*!40000 ALTER TABLE `sys_userpriv_cfg` DISABLE KEYS */; +/*!40000 ALTER TABLE `sys_userpriv_cfg` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `tb_user` +-- + +DROP TABLE IF EXISTS `tb_user`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `tb_user` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `value` float(255,2) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `tb_user` +-- + +LOCK TABLES `tb_user` WRITE; +/*!40000 ALTER TABLE `tb_user` DISABLE KEYS */; +/*!40000 ALTER TABLE `tb_user` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `tfoltd` +-- + +DROP TABLE IF EXISTS `tfoltd`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `tfoltd` ( + `devid` int(11) NOT NULL AUTO_INCREMENT COMMENT '设备编号', + `testdate` int(11) NOT NULL COMMENT '试验日期', + `temp` float DEFAULT NULL COMMENT '温度 ℃', + `humidity` float DEFAULT NULL COMMENT '湿度 %', + `hcr15s` float DEFAULT NULL COMMENT '高压线圈绝缘电阻R15s', + `hcr60s` float DEFAULT NULL COMMENT '高压线圈绝缘电阻R60s', + `hcr10m` float DEFAULT NULL COMMENT '高压线圈绝缘电阻R10min', + `hcdar` float DEFAULT NULL COMMENT '高压线圈绝缘电阻吸收比', + `hcpi` float DEFAULT NULL COMMENT '高压线圈绝缘电阻极化指数', + `mcr15s` float DEFAULT NULL COMMENT '中压线圈绝缘电阻R15s', + `mcr60s` float DEFAULT NULL COMMENT '中压线圈绝缘电阻R60s', + `mcr10m` float DEFAULT NULL COMMENT '中压线圈绝缘电阻R10min', + `mcdar` float DEFAULT NULL COMMENT '中压线圈绝缘电阻吸收比', + `mcpi` float DEFAULT NULL COMMENT '中压线圈绝缘电阻极化指数', + `lcr15s` float DEFAULT NULL COMMENT '低压线圈绝缘电阻R15s', + `lcr60s` float DEFAULT NULL COMMENT '低压线圈绝缘电阻R60s', + `lcr10m` float DEFAULT NULL COMMENT '低压线圈绝缘电阻R10min', + `lcdar` float DEFAULT NULL COMMENT '低压线圈绝缘电阻吸收比', + `lcpi` float DEFAULT NULL COMMENT '低压线圈绝缘电阻极化指数', + `hctv` float DEFAULT NULL COMMENT '高压线圈绕组试验电压', + `hcvrab` float DEFAULT NULL COMMENT '高压绕组AB相电压比', + `hcvrbc` float DEFAULT NULL COMMENT '高压绕组bc相电压比', + `hcvrac` float DEFAULT NULL COMMENT '高压绕组ac相电压比', + `hcv` float DEFAULT NULL COMMENT '高压绕组电压(kV)', + `hcavt` float DEFAULT NULL COMMENT '高压绕组加压时间', + `hclc` float DEFAULT NULL COMMENT '高压绕组泄漏电流(μA)', + `mcdra` float DEFAULT NULL COMMENT '变压器中压绕组的直流电阻(mΩ)分接位置1 OAm', + `mcdrb` float DEFAULT NULL COMMENT '变压器中压绕组的直流电阻(mΩ)分接位置2 OBm', + `mcdrc` float DEFAULT NULL COMMENT '变压器中压绕组的直流电阻(mΩ)分接位置3 OCm', + `mcdrd` float DEFAULT NULL COMMENT '变压器中压绕组的直流电阻(mΩ)分接位置4最大相间差(%)', + `hcdra` float DEFAULT NULL COMMENT '变压器高压绕组的直流电阻(mΩ)分接位置1 OAm', + `hcdrb` float DEFAULT NULL COMMENT '变压器高压绕组的直流电阻(mΩ)分接位置2 OBm', + `hcdrc` float DEFAULT NULL COMMENT '变压器高压绕组的直流电阻(mΩ)分接位置3 OCm', + `hcdrd` float DEFAULT NULL COMMENT '变压器高压绕组的直流电阻(mΩ)分接位置4最大相间差(%)', + `lcdra` float DEFAULT NULL COMMENT '变压器低压绕组的直流电阻(mΩ)分接位置1 OAm', + `lcdrb` float DEFAULT NULL COMMENT '变压器低压绕组的直流电阻(mΩ)分接位置2 OBm', + `lcdrc` float DEFAULT NULL COMMENT '变压器低压绕组的直流电阻(mΩ)分接位置3 OCm', + `lcdrd` float DEFAULT NULL COMMENT '变压器低压绕组的直流电阻(mΩ)分接位置4最大相间差(%)', + `pdtl` float DEFAULT NULL COMMENT '变压器局放试验分接位置', + `pdtv` float DEFAULT NULL COMMENT '变压器局放试验试验电压', + `pdtt` float DEFAULT NULL COMMENT '变压器局放试验加压时间', + `pdch` float DEFAULT NULL COMMENT '变压器局放试验放电量', + `hctg` float DEFAULT NULL COMMENT '高压绕组介损tgδ%', + `hctgv` float DEFAULT NULL COMMENT '高压绕组介损试验电压', + `mctg` float DEFAULT NULL COMMENT '中压绕组介损tgδ%', + `mctgv` float DEFAULT NULL COMMENT '中压绕组介损试验电压', + `lctg` float DEFAULT NULL COMMENT '低压绕组介损tgδ%', + `lctgv` float DEFAULT NULL COMMENT '低压绕组介损试验电压', + `coppm` float DEFAULT NULL COMMENT '离线油色谱一氧化碳含量', + `co2ppm` float DEFAULT NULL COMMENT '离线油色谱二氧化碳含量', + `h2ppm` float DEFAULT NULL COMMENT '离线油色谱氢气含量', + `ch4ppm` float DEFAULT NULL COMMENT '离线油色谱甲烷含量', + `c2h6ppm` float DEFAULT NULL COMMENT '离线油色谱乙烷含量', + `c2h4ppm` float DEFAULT NULL COMMENT '离线油色谱乙烯含量', + `c2h2ppm` float DEFAULT NULL COMMENT '离线油色谱乙炔含量', + `totalhydrocarbon` float DEFAULT NULL COMMENT '离线油色谱总烃含量', + PRIMARY KEY (`devid`,`testdate`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='transformerofflinetestdata 变压器本体离线试验数据记录'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `tfoltd` +-- + +LOCK TABLES `tfoltd` WRITE; +/*!40000 ALTER TABLE `tfoltd` DISABLE KEYS */; +INSERT INTO `tfoltd` VALUES (2,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),(3,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); +/*!40000 ALTER TABLE `tfoltd` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `tfoltd_ir` +-- + +DROP TABLE IF EXISTS `tfoltd_ir`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `tfoltd_ir` ( + `devid` int(11) NOT NULL COMMENT '设备编号', + `testdate` date NOT NULL COMMENT '试验日期', + `temp` float DEFAULT NULL COMMENT '温度 ℃', + `humidity` float DEFAULT NULL COMMENT '湿度 %', + `hcr15s` float DEFAULT NULL COMMENT '高压线圈绝缘电阻R15s', + `hcr60s` float DEFAULT NULL COMMENT '高压线圈绝缘电阻R60s', + `hcr10m` float DEFAULT NULL COMMENT '高压线圈绝缘电阻R10min', + `hcdar` float DEFAULT NULL COMMENT '高压线圈绝缘电阻吸收比', + `hcpi` float DEFAULT NULL COMMENT '高压线圈绝缘电阻极化指数', + `mcr15s` float DEFAULT NULL COMMENT '中压线圈绝缘电阻R15s', + `mcr60s` float DEFAULT NULL COMMENT '中压线圈绝缘电阻R60s', + `mcr10m` float DEFAULT NULL COMMENT '中压线圈绝缘电阻R10min', + `mcdar` float DEFAULT NULL COMMENT '中压线圈绝缘电阻吸收比', + `mcpi` float DEFAULT NULL COMMENT '中压线圈绝缘电阻极化指数', + `lcr15s` float DEFAULT NULL COMMENT '低压线圈绝缘电阻R15s', + `lcr60s` float DEFAULT NULL COMMENT '低压线圈绝缘电阻R60s', + `lcr10m` float DEFAULT NULL COMMENT '低压线圈绝缘电阻R10min', + `lcdar` float DEFAULT NULL COMMENT '低压线圈绝缘电阻吸收比', + `lcpi` float DEFAULT NULL COMMENT '低压线圈绝缘电阻极化指数', + `hctv` float DEFAULT NULL COMMENT '高压线圈绕组试验电压', + `hcvrab` float DEFAULT NULL COMMENT '高压绕组AB相电压比', + `hcvrbc` float DEFAULT NULL COMMENT '高压绕组bc相电压比', + `hcvrac` float DEFAULT NULL COMMENT '高压绕组ac相电压比', + `hcv` float DEFAULT NULL COMMENT '高压绕组电压(kV)', + `hcavt` float DEFAULT NULL COMMENT '高压绕组加压时间', + `hclc` float DEFAULT NULL COMMENT '高压绕组泄漏电流(μA)', + `mcdra` float DEFAULT NULL COMMENT '变压器中压绕组的直流电阻(mΩ)分接位置1 OAm', + `mcdrb` float DEFAULT NULL COMMENT '变压器中压绕组的直流电阻(mΩ)分接位置2 OBm', + `mcdrc` float DEFAULT NULL COMMENT '变压器中压绕组的直流电阻(mΩ)分接位置3 OCm', + `mcdrd` float DEFAULT NULL COMMENT '变压器中压绕组的直流电阻(mΩ)分接位置4最大相间差(%)', + `hcdra` float DEFAULT NULL COMMENT '变压器高压绕组的直流电阻(mΩ)分接位置1 OAm', + `hcdrb` float DEFAULT NULL COMMENT '变压器高压绕组的直流电阻(mΩ)分接位置2 OBm', + `hcdrc` float DEFAULT NULL COMMENT '变压器高压绕组的直流电阻(mΩ)分接位置3 OCm', + `hcdrd` float DEFAULT NULL COMMENT '变压器高压绕组的直流电阻(mΩ)分接位置4最大相间差(%)', + `lcdra` float DEFAULT NULL COMMENT '变压器低压绕组的直流电阻(mΩ)分接位置1 OAm', + `lcdrb` float DEFAULT NULL COMMENT '变压器低压绕组的直流电阻(mΩ)分接位置2 OBm', + `lcdrc` float DEFAULT NULL COMMENT '变压器低压绕组的直流电阻(mΩ)分接位置3 OCm', + `lcdrd` float DEFAULT NULL COMMENT '变压器低压绕组的直流电阻(mΩ)分接位置4最大相间差(%)', + `pdtl` float DEFAULT NULL COMMENT '变压器局放试验分接位置', + `pdtv` float DEFAULT NULL COMMENT '变压器局放试验试验电压', + `pdtt` float DEFAULT NULL COMMENT '变压器局放试验加压时间', + `pdch` float DEFAULT NULL COMMENT '变压器局放试验放电量', + `hctgδ` float DEFAULT NULL COMMENT '高压绕组介损tgδ%', + `hctgδv` float DEFAULT NULL COMMENT '高压绕组介损试验电压', + `mctgδ` float DEFAULT NULL COMMENT '中压绕组介损tgδ%', + `mctgδv` float DEFAULT NULL COMMENT '中压绕组介损试验电压', + `lctgδ` float DEFAULT NULL COMMENT '低压绕组介损tgδ%', + `lctgδv` float DEFAULT NULL COMMENT '低压绕组介损试验电压', + `coppm` float DEFAULT NULL COMMENT '离线油色谱一氧化碳含量', + `co2ppm` float DEFAULT NULL COMMENT '离线油色谱二氧化碳含量', + `h2ppm` float DEFAULT NULL COMMENT '离线油色谱氢气含量', + `ch4ppm` float DEFAULT NULL COMMENT '离线油色谱甲烷含量', + `c2h6ppm` float DEFAULT NULL COMMENT '离线油色谱乙烷含量', + `c2h4ppm` float DEFAULT NULL COMMENT '离线油色谱乙烯含量', + `c2h2ppm` float DEFAULT NULL COMMENT '离线油色谱乙炔含量', + `totalhydrocarbon` float DEFAULT NULL COMMENT '离线油色谱总烃含量', + PRIMARY KEY (`devid`,`testdate`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `tfoltd_ir` +-- + +LOCK TABLES `tfoltd_ir` WRITE; +/*!40000 ALTER TABLE `tfoltd_ir` DISABLE KEYS */; +/*!40000 ALTER TABLE `tfoltd_ir` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `threshold` +-- + +DROP TABLE IF EXISTS `threshold`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `threshold` ( + `id` varchar(32) NOT NULL COMMENT '主键', + `eqmid` varchar(32) DEFAULT NULL COMMENT '设备id', + `elect_threshold_val` varchar(10) DEFAULT NULL COMMENT '电流(mA)告警值', + `create_time` datetime DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `threshold` +-- + +LOCK TABLES `threshold` WRITE; +/*!40000 ALTER TABLE `threshold` DISABLE KEYS */; +/*!40000 ALTER TABLE `threshold` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `unit` +-- + +DROP TABLE IF EXISTS `unit`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `unit` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `field` varchar(45) DEFAULT NULL COMMENT '字段名', + `unit` varchar(45) DEFAULT NULL COMMENT '单位', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COMMENT='计量单位'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `unit` +-- + +LOCK TABLES `unit` WRITE; +/*!40000 ALTER TABLE `unit` DISABLE KEYS */; +INSERT INTO `unit` VALUES (5,'Density','Kg/m3'),(6,'Temperature','°C'),(7,'Pressure20C','MPa'),(8,'H2','UL/L'),(9,'CH4','UL/L'),(10,'C2H6','UL/L'),(11,'C2H4','UL/L'),(12,'C2H2','UL/L'),(13,'CO','UL/L'),(14,'CO2','UL/L'),(15,'O2','UL/L'),(16,'N2','UL/L'),(17,'TotalHydrocarbon','UL/L'),(18,'MaxTmp','°C'),(19,'MinTmp','°C'),(20,'AvgTmp','°C'),(21,'AbsolutePressure','MPa'),(22,'Moisture','u L/L'),(23,'FullCurrent','mA'),(24,'CableCurrent','A'),(25,'ResistiveCurrent','mA'),(26,'CapacitiveCurrent','mA'),(27,'Capacitance','pf'),(28,'DielectricLoss','%'),(29,'Concentration','ppm'),(30,'O2Content','%'),(31,'Humidity','%'); +/*!40000 ALTER TABLE `unit` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Temporary view structure for view `vw_cac` +-- + +DROP TABLE IF EXISTS `vw_cac`; +/*!50001 DROP VIEW IF EXISTS `vw_cac`*/; +SET @saved_cs_client = @@character_set_client; +/*!50503 SET character_set_client = utf8mb4 */; +/*!50001 CREATE VIEW `vw_cac` AS SELECT + 1 AS `id`, + 1 AS `name`, + 1 AS `cagid`, + 1 AS `cagname`, + 1 AS `bdzid`, + 1 AS `bmc`, + 1 AS `manufacture`, + 1 AS `factoryint`, + 1 AS `manufacturedate`, + 1 AS `rundate`, + 1 AS `location`, + 1 AS `note`, + 1 AS `downip`, + 1 AS `upip`, + 1 AS `diskfree`*/; +SET character_set_client = @saved_cs_client; + +-- +-- Temporary view structure for view `vw_ied` +-- + +DROP TABLE IF EXISTS `vw_ied`; +/*!50001 DROP VIEW IF EXISTS `vw_ied`*/; +SET @saved_cs_client = @@character_set_client; +/*!50503 SET character_set_client = utf8mb4 */; +/*!50001 CREATE VIEW `vw_ied` AS SELECT + 1 AS `id`, + 1 AS `name`, + 1 AS `cacid`, + 1 AS `cacname`, + 1 AS `cagid`, + 1 AS `cagname`, + 1 AS `manufacture`, + 1 AS `factoryint`, + 1 AS `manufacturedate`, + 1 AS `rundate`, + 1 AS `location`, + 1 AS `note`, + 1 AS `diskfree`, + 1 AS `downip`, + 1 AS `upip`, + 1 AS `bdzid`*/; +SET character_set_client = @saved_cs_client; + +-- +-- Temporary view structure for view `vw_jg` +-- + +DROP TABLE IF EXISTS `vw_jg`; +/*!50001 DROP VIEW IF EXISTS `vw_jg`*/; +SET @saved_cs_client = @@character_set_client; +/*!50503 SET character_set_client = utf8mb4 */; +/*!50001 CREATE VIEW `vw_jg` AS SELECT + 1 AS `id`, + 1 AS `mc`, + 1 AS `bid`, + 1 AS `bmc`*/; +SET character_set_client = @saved_cs_client; + +-- +-- Temporary view structure for view `vw_msb` +-- + +DROP TABLE IF EXISTS `vw_msb`; +/*!50001 DROP VIEW IF EXISTS `vw_msb`*/; +SET @saved_cs_client = @@character_set_client; +/*!50503 SET character_set_client = utf8mb4 */; +/*!50001 CREATE VIEW `vw_msb` AS SELECT + 1 AS `id`, + 1 AS `name`, + 1 AS `modevtid`, + 1 AS `mtmc`, + 1 AS `careLevel`, + 1 AS `zsbid`, + 1 AS `zsbmc`, + 1 AS `iedid`, + 1 AS `iedname`*/; +SET character_set_client = @saved_cs_client; + +-- +-- Temporary view structure for view `vw_sb` +-- + +DROP TABLE IF EXISTS `vw_sb`; +/*!50001 DROP VIEW IF EXISTS `vw_sb`*/; +SET @saved_cs_client = @@character_set_client; +/*!50503 SET character_set_client = utf8mb4 */; +/*!50001 CREATE VIEW `vw_sb` AS SELECT + 1 AS `id`, + 1 AS `name`, + 1 AS `careLevel`, + 1 AS `zid`, + 1 AS `zmc`, + 1 AS `jgid`, + 1 AS `lxid`, + 1 AS `lmc`, + 1 AS `bdzid`, + 1 AS `jmc`, + 1 AS `bmc`, + 1 AS `mtid`, + 1 AS `mtmc`*/; +SET character_set_client = @saved_cs_client; + +-- +-- Temporary view structure for view `vw_zsb` +-- + +DROP TABLE IF EXISTS `vw_zsb`; +/*!50001 DROP VIEW IF EXISTS `vw_zsb`*/; +SET @saved_cs_client = @@character_set_client; +/*!50503 SET character_set_client = utf8mb4 */; +/*!50001 CREATE VIEW `vw_zsb` AS SELECT + 1 AS `id`, + 1 AS `mc`, + 1 AS `jgid`, + 1 AS `lxid`, + 1 AS `lmc`, + 1 AS `bdzid`, + 1 AS `jmc`, + 1 AS `bmc`*/; +SET character_set_client = @saved_cs_client; + +-- +-- Table structure for table `warn_cfg` +-- + +DROP TABLE IF EXISTS `warn_cfg`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `warn_cfg` ( + `eqmid` int(11) NOT NULL, + `warnmin1` float DEFAULT NULL, + `warnmax1` float DEFAULT NULL, + `warnmin2` float DEFAULT NULL, + `warnmax2` float DEFAULT NULL, + `warnmin3` float DEFAULT NULL, + `warnmax3` float DEFAULT NULL, + `warnmin4` float DEFAULT NULL, + `warnmax4` float DEFAULT NULL, + `warnmin5` float DEFAULT NULL, + `warnmax5` float DEFAULT NULL, + `warnmin6` float DEFAULT NULL, + `warnmax6` float DEFAULT NULL, + `warnmin7` float DEFAULT NULL, + `warnmax7` float DEFAULT NULL, + `warnmin8` float DEFAULT NULL, + `warnmax8` float DEFAULT NULL, + `warnmin9` float DEFAULT NULL, + `warnmax9` float DEFAULT NULL, + `warnmin10` float DEFAULT NULL, + `warnmax10` float DEFAULT NULL, + `warnmin11` float DEFAULT NULL, + `warnmax11` float DEFAULT NULL, + `warnmin12` float DEFAULT NULL, + `warnmax12` float DEFAULT NULL, + `warnmin13` float DEFAULT NULL, + `warnmax13` float DEFAULT NULL, + `warnmin14` float DEFAULT NULL, + `warnmax14` float DEFAULT NULL, + `warnmin15` float DEFAULT NULL, + `warnmax15` float DEFAULT NULL, + `warnmin16` float DEFAULT NULL, + `warnmax16` float DEFAULT NULL, + `warnmin17` float DEFAULT NULL, + `warnmax17` float DEFAULT NULL, + `warnmin18` float DEFAULT NULL, + `warnmax18` float DEFAULT NULL, + `warnmin19` float DEFAULT NULL, + `warnmax19` float DEFAULT NULL, + `warnmin20` float DEFAULT NULL, + `warnmax20` float DEFAULT NULL, + PRIMARY KEY (`eqmid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `warn_cfg` +-- + +LOCK TABLES `warn_cfg` WRITE; +/*!40000 ALTER TABLE `warn_cfg` DISABLE KEYS */; +/*!40000 ALTER TABLE `warn_cfg` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `warning` +-- + +DROP TABLE IF EXISTS `warning`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `warning` ( + `id` varchar(32) NOT NULL COMMENT '主键', + `jgid` int(11) DEFAULT NULL COMMENT '间隔id(变电设备类型)', + `lxid` int(11) DEFAULT NULL COMMENT '类型id(设备小类)', + `mtid` int(11) DEFAULT NULL COMMENT '监测装置类型', + `eqmid` varchar(32) DEFAULT NULL COMMENT '设备id', + `monitoring_type` varchar(100) DEFAULT NULL COMMENT '监测类型', + `warn_time` datetime DEFAULT NULL COMMENT '告警时间YYYY-MM-DD HH:MI:SS', + `warning_value` float(20,5) DEFAULT NULL COMMENT '告警值', + `threadval` float(20,5) DEFAULT NULL COMMENT '阈值', + `warn_desc` varchar(255) DEFAULT NULL COMMENT '告警信息/设备名称/设备安装位置', + `warn_level` varchar(8) DEFAULT NULL COMMENT '告警级别 0:高 1:中 2:低', + `state` varchar(4) DEFAULT NULL COMMENT '处理状态 0:已处理 1:未处理', + `process` varchar(255) DEFAULT NULL COMMENT '处理结果描述', + `process_user` varchar(32) DEFAULT NULL COMMENT '处理人id', + `process_time` datetime DEFAULT NULL COMMENT '处理时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `warning` +-- + +LOCK TABLES `warning` WRITE; +/*!40000 ALTER TABLE `warning` DISABLE KEYS */; +/*!40000 ALTER TABLE `warning` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `wsg_pie` +-- + +DROP TABLE IF EXISTS `wsg_pie`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `wsg_pie` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `y` float(255,2) NOT NULL, + `ch4` float(255,3) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `wsg_pie` +-- + +LOCK TABLES `wsg_pie` WRITE; +/*!40000 ALTER TABLE `wsg_pie` DISABLE KEYS */; +/*!40000 ALTER TABLE `wsg_pie` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `wsg_tree` +-- + +DROP TABLE IF EXISTS `wsg_tree`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `wsg_tree` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `pId` int(10) NOT NULL, + `name` varchar(50) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `wsg_tree` +-- + +LOCK TABLES `wsg_tree` WRITE; +/*!40000 ALTER TABLE `wsg_tree` DISABLE KEYS */; +/*!40000 ALTER TABLE `wsg_tree` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `wsg_user` +-- + +DROP TABLE IF EXISTS `wsg_user`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `wsg_user` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `pid` int(11) NOT NULL, + `path` varchar(255) NOT NULL, + `level` int(255) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `wsg_user` +-- + +LOCK TABLES `wsg_user` WRITE; +/*!40000 ALTER TABLE `wsg_user` DISABLE KEYS */; +/*!40000 ALTER TABLE `wsg_user` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `zsb` +-- + +DROP TABLE IF EXISTS `zsb`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `zsb` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `mc` varchar(50) DEFAULT NULL, + `jgid` int(11) NOT NULL, + `lxid` int(11) NOT NULL, + `deviceip` varchar(100) DEFAULT NULL, + `deviceport` varchar(20) DEFAULT NULL, + `deviceusername` varchar(20) DEFAULT NULL, + `devicepasswd` varchar(20) DEFAULT NULL, + `bdzid` int(11) NOT NULL, + `address` decimal(65,30) DEFAULT NULL, + `frequency` decimal(65,30) DEFAULT NULL, + `portname` varchar(10) DEFAULT NULL, + `venderid` char(32) DEFAULT NULL COMMENT '默认海康的', + `transcount` decimal(65,30) DEFAULT NULL, + `vendercode` varchar(100) DEFAULT NULL, + `xh` decimal(65,30) DEFAULT NULL, + `enable` decimal(65,30) DEFAULT NULL COMMENT '针对DVR/NVR,1可用0不可用', + `sbbm` varchar(100) DEFAULT NULL COMMENT '设备编码(来自PMS)', + `yxbh` varchar(100) DEFAULT NULL, + `zcxz` varchar(100) DEFAULT NULL COMMENT '资产性质', + `zcdw` varchar(100) DEFAULT NULL COMMENT '资产单位', + `xs` varchar(100) DEFAULT NULL COMMENT '相数', + `jb` varchar(100) DEFAULT NULL COMMENT '极别', + `xb` varchar(100) DEFAULT NULL COMMENT '相别', + `eddy` varchar(100) DEFAULT NULL COMMENT '额定电压(kV)', + `eddl` varchar(100) DEFAULT NULL COMMENT '额定电流(A)', + `edpl` varchar(100) DEFAULT NULL COMMENT '额定频率(Hz)', + `edxh` varchar(100) DEFAULT NULL COMMENT '设备型号', + `sccj` varchar(100) DEFAULT NULL COMMENT '生产厂家', + `ccbh` varchar(100) DEFAULT NULL COMMENT '出厂编号', + `ccdh` varchar(100) DEFAULT NULL COMMENT '产品代号', + `zzgj` varchar(100) DEFAULT NULL COMMENT '制造国家', + `ccrq` varchar(100) DEFAULT NULL COMMENT '出厂日期', + `tcrq` varchar(100) DEFAULT NULL COMMENT '投运日期', + `syhj` varchar(100) DEFAULT NULL COMMENT '使用环境', + `fwdj` varchar(100) DEFAULT NULL COMMENT '防污等级', + `zcbh` varchar(100) DEFAULT NULL COMMENT '资产编号', + `yt` decimal(65,30) DEFAULT NULL COMMENT '默认0,1客流统计', + `whbz` varchar(100) DEFAULT NULL COMMENT '维护班组', + `sbzr` varchar(100) DEFAULT NULL COMMENT '设备主人', + `ywdw` varchar(100) DEFAULT NULL COMMENT '运维单位', + `gcbh` varchar(100) DEFAULT NULL COMMENT '工程编号', + `gcmc` varchar(100) DEFAULT NULL COMMENT '工程名称', + `sbid` varchar(100) DEFAULT NULL COMMENT '设备ID', + `zxmc` varchar(100) DEFAULT NULL COMMENT '站线名称', + `sbcz` varchar(100) DEFAULT NULL COMMENT '设备厂家', + `zyfl` varchar(100) DEFAULT NULL COMMENT '专业分类', + `pmbm` varchar(100) DEFAULT NULL COMMENT 'PM编码', + `gnwz` varchar(100) DEFAULT NULL COMMENT '功能位置', + `sblxbm` varchar(100) DEFAULT NULL COMMENT '设备类型编码', + `zfid` varchar(100) DEFAULT NULL COMMENT '站房ID', + `zjtyrq` varchar(100) DEFAULT NULL COMMENT '最近投运日期', + `sbzjfs` varchar(100) DEFAULT NULL COMMENT '设备增加方式', + `zcyjqcid` varchar(100) DEFAULT NULL COMMENT '资产移交清册ID', + `dqmpyxkid` varchar(100) DEFAULT NULL COMMENT '电器铭牌运行库ID', + `ssdzdydj` varchar(100) DEFAULT NULL COMMENT '所属电站电压等级', + `djsj` varchar(100) DEFAULT NULL COMMENT '登记时间', + `sssj` varchar(100) DEFAULT NULL COMMENT '所属地市', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `zsb` +-- + +LOCK TABLES `zsb` WRITE; +/*!40000 ALTER TABLE `zsb` DISABLE KEYS */; +/*!40000 ALTER TABLE `zsb` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Final view structure for view `vw_cac` +-- + +/*!50001 DROP VIEW IF EXISTS `vw_cac`*/; +/*!50001 SET @saved_cs_client = @@character_set_client */; +/*!50001 SET @saved_cs_results = @@character_set_results */; +/*!50001 SET @saved_col_connection = @@collation_connection */; +/*!50001 SET character_set_client = utf8mb4 */; +/*!50001 SET character_set_results = utf8mb4 */; +/*!50001 SET collation_connection = utf8mb4_general_ci */; +/*!50001 CREATE ALGORITHM=UNDEFINED */ +/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */ +/*!50001 VIEW `vw_cac` AS select `cac`.`id` AS `id`,`cac`.`name` AS `name`,`cac`.`cagid` AS `cagid`,`cag`.`name` AS `cagname`,`cac`.`bdzid` AS `bdzid`,`bdz`.`mc` AS `bmc`,`cac`.`manufacture` AS `manufacture`,`cac`.`factoryint` AS `factoryint`,`cac`.`manufacturedate` AS `manufacturedate`,`cac`.`rundate` AS `rundate`,`cac`.`location` AS `location`,`cac`.`note` AS `note`,`cac`.`downip` AS `downip`,`cac`.`upip` AS `upip`,`cac`.`diskfree` AS `diskfree` from ((`bdz` join `cac` on((`bdz`.`id` = `cac`.`bdzid`))) join `cag` on((`cac`.`cagid` = `cag`.`id`))) order by `cac`.`id` */; +/*!50001 SET character_set_client = @saved_cs_client */; +/*!50001 SET character_set_results = @saved_cs_results */; +/*!50001 SET collation_connection = @saved_col_connection */; + +-- +-- Final view structure for view `vw_ied` +-- + +/*!50001 DROP VIEW IF EXISTS `vw_ied`*/; +/*!50001 SET @saved_cs_client = @@character_set_client */; +/*!50001 SET @saved_cs_results = @@character_set_results */; +/*!50001 SET @saved_col_connection = @@collation_connection */; +/*!50001 SET character_set_client = utf8mb4 */; +/*!50001 SET character_set_results = utf8mb4 */; +/*!50001 SET collation_connection = utf8mb4_general_ci */; +/*!50001 CREATE ALGORITHM=UNDEFINED */ +/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */ +/*!50001 VIEW `vw_ied` AS select `ied`.`id` AS `id`,`ied`.`name` AS `name`,`ied`.`cacid` AS `cacid`,`vw_cac`.`name` AS `cacname`,`vw_cac`.`cagid` AS `cagid`,`vw_cac`.`cagname` AS `cagname`,`ied`.`manufacture` AS `manufacture`,`ied`.`factoryint` AS `factoryint`,`ied`.`manufacturedate` AS `manufacturedate`,`ied`.`rundate` AS `rundate`,`ied`.`location` AS `location`,`ied`.`note` AS `note`,`ied`.`diskfree` AS `diskfree`,`ied`.`downip` AS `downip`,`ied`.`upip` AS `upip`,`vw_cac`.`bdzid` AS `bdzid` from (`vw_cac` join `ied` on((`ied`.`cacid` = `vw_cac`.`id`))) order by `ied`.`id` */; +/*!50001 SET character_set_client = @saved_cs_client */; +/*!50001 SET character_set_results = @saved_cs_results */; +/*!50001 SET collation_connection = @saved_col_connection */; + +-- +-- Final view structure for view `vw_jg` +-- + +/*!50001 DROP VIEW IF EXISTS `vw_jg`*/; +/*!50001 SET @saved_cs_client = @@character_set_client */; +/*!50001 SET @saved_cs_results = @@character_set_results */; +/*!50001 SET @saved_col_connection = @@collation_connection */; +/*!50001 SET character_set_client = utf8mb4 */; +/*!50001 SET character_set_results = utf8mb4 */; +/*!50001 SET collation_connection = utf8mb4_general_ci */; +/*!50001 CREATE ALGORITHM=UNDEFINED */ +/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */ +/*!50001 VIEW `vw_jg` AS select `j`.`id` AS `id`,`j`.`mc` AS `mc`,`j`.`bdzid` AS `bid`,`b`.`mc` AS `bmc` from (`bdz` `b` join `jg` `j` on((`b`.`id` = `j`.`bdzid`))) order by `j`.`id` */; +/*!50001 SET character_set_client = @saved_cs_client */; +/*!50001 SET character_set_results = @saved_cs_results */; +/*!50001 SET collation_connection = @saved_col_connection */; + +-- +-- Final view structure for view `vw_msb` +-- + +/*!50001 DROP VIEW IF EXISTS `vw_msb`*/; +/*!50001 SET @saved_cs_client = @@character_set_client */; +/*!50001 SET @saved_cs_results = @@character_set_results */; +/*!50001 SET @saved_col_connection = @@collation_connection */; +/*!50001 SET character_set_client = utf8mb4 */; +/*!50001 SET character_set_results = utf8mb4 */; +/*!50001 SET collation_connection = utf8mb4_general_ci */; +/*!50001 CREATE ALGORITHM=UNDEFINED */ +/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */ +/*!50001 VIEW `vw_msb` AS select `md`.`id` AS `id`,`md`.`name` AS `name`,`md`.`modevtid` AS `modevtid`,`mt`.`mc` AS `mtmc`,`md`.`careLevel` AS `careLevel`,`md`.`zsbid` AS `zsbid`,`vzsb`.`mc` AS `zsbmc`,`md`.`iedid` AS `iedid`,`vied`.`name` AS `iedname` from (((`modev` `md` join `modevtype` `mt` on((`md`.`modevtid` = `mt`.`id`))) join `vw_zsb` `vzsb` on((`md`.`zsbid` = `vzsb`.`id`))) join `vw_ied` `vied` on(((`vzsb`.`bdzid` = `vied`.`bdzid`) and (`md`.`iedid` = `vied`.`id`)))) order by `md`.`id` */; +/*!50001 SET character_set_client = @saved_cs_client */; +/*!50001 SET character_set_results = @saved_cs_results */; +/*!50001 SET collation_connection = @saved_col_connection */; + +-- +-- Final view structure for view `vw_sb` +-- + +/*!50001 DROP VIEW IF EXISTS `vw_sb`*/; +/*!50001 SET @saved_cs_client = @@character_set_client */; +/*!50001 SET @saved_cs_results = @@character_set_results */; +/*!50001 SET @saved_col_connection = @@collation_connection */; +/*!50001 SET character_set_client = utf8mb4 */; +/*!50001 SET character_set_results = utf8mb4 */; +/*!50001 SET collation_connection = utf8mb4_general_ci */; +/*!50001 CREATE ALGORITHM=UNDEFINED */ +/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */ +/*!50001 VIEW `vw_sb` AS select `vw_msb`.`id` AS `id`,`vw_msb`.`name` AS `name`,`vw_msb`.`careLevel` AS `careLevel`,`vw_zsb`.`id` AS `zid`,`vw_zsb`.`mc` AS `zmc`,`vw_zsb`.`jgid` AS `jgid`,`vw_zsb`.`lxid` AS `lxid`,`vw_zsb`.`lmc` AS `lmc`,`vw_zsb`.`bdzid` AS `bdzid`,`vw_zsb`.`jmc` AS `jmc`,`vw_zsb`.`bmc` AS `bmc`,`vw_msb`.`modevtid` AS `mtid`,`vw_msb`.`mtmc` AS `mtmc` from (`vw_zsb` join `vw_msb` on((`vw_zsb`.`id` = `vw_msb`.`zsbid`))) order by `vw_msb`.`id` desc */; +/*!50001 SET character_set_client = @saved_cs_client */; +/*!50001 SET character_set_results = @saved_cs_results */; +/*!50001 SET collation_connection = @saved_col_connection */; + +-- +-- Final view structure for view `vw_zsb` +-- + +/*!50001 DROP VIEW IF EXISTS `vw_zsb`*/; +/*!50001 SET @saved_cs_client = @@character_set_client */; +/*!50001 SET @saved_cs_results = @@character_set_results */; +/*!50001 SET @saved_col_connection = @@collation_connection */; +/*!50001 SET character_set_client = utf8mb4 */; +/*!50001 SET character_set_results = utf8mb4 */; +/*!50001 SET collation_connection = utf8mb4_general_ci */; +/*!50001 CREATE ALGORITHM=UNDEFINED */ +/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */ +/*!50001 VIEW `vw_zsb` AS select `z`.`id` AS `id`,`z`.`mc` AS `mc`,`z`.`jgid` AS `jgid`,`z`.`lxid` AS `lxid`,`l`.`mc` AS `lmc`,`z`.`bdzid` AS `bdzid`,`vj`.`mc` AS `jmc`,`vj`.`bmc` AS `bmc` from ((`lx` `l` join `zsb` `z` on((`l`.`id` = `z`.`lxid`))) join `vw_jg` `vj` on(((`vj`.`id` = `z`.`jgid`) and (`vj`.`bid` = `z`.`bdzid`)))) order by `z`.`id` */; +/*!50001 SET character_set_client = @saved_cs_client */; +/*!50001 SET character_set_results = @saved_cs_results */; +/*!50001 SET collation_connection = @saved_col_connection */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2024-04-11 13:27:33 diff --git a/ncac/setup.sh b/ncac/setup.sh index 49a6ec1..ac65cfa 100644 --- a/ncac/setup.sh +++ b/ncac/setup.sh @@ -280,6 +280,12 @@ setAutoStartNginx(){ fi } +updateFirewall(){ + firewall-cmd --permanent --zone=public --add-port=80/tcp + firewall-cmd --permanent --zone=public --add-port=3306/tcp + firewall-cmd --reload +} + sed -i 's/\r//g' setup.ini @@ -321,6 +327,8 @@ fi installNewCAC +updateFirewall + if [ $AUTO_START == 1 ]; then setAutoStartCac fi