|
@@ -501,7 +501,6 @@ create table adm_ems_facs (
|
|
|
`facs_subtype` varchar(32) not null comment '设施子类',
|
|
|
`enable` int default '0' comment '启用状态0-停用,1-启用',
|
|
|
`ref_area` varchar(32) not null comment '归属区域代码',
|
|
|
- `manufacturer` varchar(64) default null comment '厂商',
|
|
|
`create_time` datetime default CURRENT_TIMESTAMP comment '创建时间',
|
|
|
`update_time` datetime default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间',
|
|
|
primary key (`id`),
|
|
@@ -509,18 +508,18 @@ create table adm_ems_facs (
|
|
|
) engine=innodb auto_increment=1 comment = '能源设施表';
|
|
|
|
|
|
-- 能源设施/系统DEMO数据
|
|
|
-INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`, `manufacturer`) VALUES ('W201', '北区-供电网', 'W', 'W2', 1, '321283124S3001', '华设');
|
|
|
-INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`, `manufacturer`) VALUES ('W202', '南区-供电网', 'W', 'W2', 1, '321283124S3002', '华设');
|
|
|
-INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`, `manufacturer`) VALUES ('E501', '北区-光伏', 'E', 'E5', 1, '321283124S3001', '华设');
|
|
|
-INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`, `manufacturer`) VALUES ('E502', '南区-光伏', 'E', 'E5', 1, '321283124S3002', '华设');
|
|
|
-INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`, `manufacturer`) VALUES ('Z101', '北区-室内照明', 'Z', 'Z001', 1, '321283124S3001', '华设');
|
|
|
-INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`, `manufacturer`) VALUES ('Z102', '北区-室外照明', 'Z', 'Z002', 1, '321283124S3001', '华设');
|
|
|
-INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`, `manufacturer`) VALUES ('Z110', '北区-公共设施', 'Z', 'Z010', 1, '321283124S3001', '华设');
|
|
|
-INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`, `manufacturer`) VALUES ('Z120', '北区-空调设施', 'Z', 'Z020', 1, '321283124S3001', '华设');
|
|
|
-INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`, `manufacturer`) VALUES ('Z201', '南区-室内照明', 'Z', 'Z001', 1, '321283124S3002', '华设');
|
|
|
-INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`, `manufacturer`) VALUES ('Z202', '南区-室外照明', 'Z', 'Z002', 1, '321283124S3002', '华设');
|
|
|
-INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`, `manufacturer`) VALUES ('Z210', '南区-公共设施', 'Z', 'Z010', 1, '321283124S3002', '华设');
|
|
|
-INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`, `manufacturer`) VALUES ('Z220', '南区-空调设施', 'Z', 'Z020', 1, '321283124S3002', '华设');
|
|
|
+INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`) VALUES ('W201', '北区-供电网', 'W', 'W2', 1, '321283124S3001');
|
|
|
+INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`) VALUES ('W202', '南区-供电网', 'W', 'W2', 1, '321283124S3002');
|
|
|
+INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`) VALUES ('E501', '北区-光伏', 'E', 'E5', 1, '321283124S3001');
|
|
|
+INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`) VALUES ('E502', '南区-光伏', 'E', 'E5', 1, '321283124S3002');
|
|
|
+INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`) VALUES ('Z101', '北区-室内照明', 'Z', 'Z001', 1, '321283124S3001');
|
|
|
+INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`) VALUES ('Z102', '北区-室外照明', 'Z', 'Z002', 1, '321283124S3001');
|
|
|
+INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`) VALUES ('Z110', '北区-公共设施', 'Z', 'Z010', 1, '321283124S3001');
|
|
|
+INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`) VALUES ('Z120', '北区-空调设施', 'Z', 'Z020', 1, '321283124S3001');
|
|
|
+INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`) VALUES ('Z201', '南区-室内照明', 'Z', 'Z001', 1, '321283124S3002');
|
|
|
+INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`) VALUES ('Z202', '南区-室外照明', 'Z', 'Z002', 1, '321283124S3002');
|
|
|
+INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`) VALUES ('Z210', '南区-公共设施', 'Z', 'Z010', 1, '321283124S3002');
|
|
|
+INSERT INTO `adm_ems_facs` (`facs_code`, `facs_name`, `facs_type`, `facs_subtype`, `enable`, `ref_area`) VALUES ('Z220', '南区-空调设施', 'Z', 'Z020', 1, '321283124S3002');
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
@@ -537,7 +536,7 @@ create table adm_ems_facs_attr (
|
|
|
`create_time` datetime default CURRENT_TIMESTAMP comment '创建时间',
|
|
|
`update_time` datetime default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '更新时间',
|
|
|
primary key (`id`),
|
|
|
- unique key ux_ems_facs_code(`facs_code`)
|
|
|
+ key ux_ems_facs_code(`facs_code`)
|
|
|
) engine=innodb auto_increment=1 comment = '能源设施属性表';
|
|
|
|
|
|
-- 设施属性DEMO数据
|