|
@@ -411,14 +411,14 @@ INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_f
|
|
|
INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_floor`, `down_bldg_floor`, `bldg_height`, `floor_area`, `bldg_usage`, `area_code`) VALUES ('321283124S300103', '维修间&货车之家', '北区东侧', 2, 0, null, 300, '提供车辆维修服务', '321283124S3001');
|
|
|
INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_floor`, `down_bldg_floor`, `bldg_height`, `floor_area`, `bldg_usage`, `area_code`) VALUES ('321283124S300104', '加油站', '北区西南角', 1, 0, null, 200, '提供加油服务', '321283124S3001');
|
|
|
INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_floor`, `down_bldg_floor`, `bldg_height`, `floor_area`, `bldg_usage`, `area_code`) VALUES ('321283124S300105', '警务站', '北区东北角', 1, 0, null, 50000, '警务办公场地', '321283124S3001');
|
|
|
-INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_floor`, `down_bldg_floor`, `bldg_height`, `floor_area`, `bldg_usage`, `area_code`) VALUES ('321283124S300106', '北区车位', '北区广场', 1, 0, null, 50000, '车位', '321283124S3001');
|
|
|
+INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_floor`, `down_bldg_floor`, `bldg_height`, `floor_area`, `bldg_usage`, `area_code`) VALUES ('321283124S300106', '停车场', '北区广场', 1, 0, null, 50000, '车位', '321283124S3001');
|
|
|
|
|
|
INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_floor`, `down_bldg_floor`, `bldg_height`, `floor_area`, `bldg_usage`, `area_code`) VALUES ('321283124S300201', '综合楼', '南区中部', 2, 1, 14.2, 4788.2, '一层提供商业、餐饮、卫生间、开水服务,二层为员工餐厅、展厅', '321283124S3002');
|
|
|
INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_floor`, `down_bldg_floor`, `bldg_height`, `floor_area`, `bldg_usage`, `area_code`) VALUES ('321283124S300202', '配电泵房', '南区东南角', 1, 0, null, 300, '配电设施,水泵设施工作区', '321283124S3002');
|
|
|
INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_floor`, `down_bldg_floor`, `bldg_height`, `floor_area`, `bldg_usage`, `area_code`) VALUES ('321283124S300203', '维修间&货车之家', '南区西侧', 2, 0, null, 300, '提供车辆维修服务', '321283124S3002');
|
|
|
INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_floor`, `down_bldg_floor`, `bldg_height`, `floor_area`, `bldg_usage`, `area_code`) VALUES ('321283124S300204', '加油站', '南区东北角', 1, 0, null, 200, '提供加油服务', '321283124S3002');
|
|
|
INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_floor`, `down_bldg_floor`, `bldg_height`, `floor_area`, `bldg_usage`, `area_code`) VALUES ('321283124S300205', '宿舍楼', '南区西南角', 2, 0, null, 920, '提供员工住宿服务', '321283124S3002');
|
|
|
-INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_floor`, `down_bldg_floor`, `bldg_height`, `floor_area`, `bldg_usage`, `area_code`) VALUES ('321283124S300206', '南区车位', '南区广场', 1, 0, null, 50000, '车位', '321283124S3002');
|
|
|
+INSERT INTO `adm_area_building` (`bldg_code`, `bldg_name`, `address`, `up_bldg_floor`, `down_bldg_floor`, `bldg_height`, `floor_area`, `bldg_usage`, `area_code`) VALUES ('321283124S300206', '停车场', '南区广场', 1, 0, null, 50000, '车位', '321283124S3002');
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
@@ -580,12 +580,14 @@ create table adm_ems_device (
|
|
|
drop table if exists adm_meter_device;
|
|
|
create table adm_meter_device (
|
|
|
`id` bigint(20) not null auto_increment comment '序号',
|
|
|
- `device_code` varchar(16) not null comment '设备代码',
|
|
|
+ `device_code` varchar(32) not null comment '设备代码',
|
|
|
+ `area_code` varchar(16) default null comment '区域代码',
|
|
|
`meter_cls` int not null comment '计量类别25-天然气 45-电 70-水',
|
|
|
- `obj_type` int not null comment '计量对象类型 1-区块 2-设备',
|
|
|
+ `obj_type` int not null comment '计量对象类型 1-区域 2-设备',
|
|
|
+ `obj_sub_type` int not null comment '计量对象子类型',
|
|
|
`obj_code` varchar(32) not null comment '计量对象编码',
|
|
|
- `col_cycle` int not null comment '采集周期',
|
|
|
- `col_mode` int not null comment '采集方式',
|
|
|
+ `col_cycle` int default null comment '采集周期',
|
|
|
+ `col_mode` int default null comment '采集方式',
|
|
|
`spec_desc` varchar(128) default null comment '规格描述',
|
|
|
primary key (`id`),
|
|
|
unique key ux_meter_device(`device_code`)
|
|
@@ -836,7 +838,7 @@ create table sys_electrovalency_strategy_hour (
|
|
|
primary key (`id`)
|
|
|
) engine=innodb auto_increment=1 comment = '电价策略小时表';
|
|
|
|
|
|
-INSERT INTO sys_electrovalency_strategy_hour (`strategy_code`, `start_time`, `end_time`, `type`) VALUES (1, '-1', '00:00:00', '23:59:59', 0);
|
|
|
+INSERT INTO sys_electrovalency_strategy_hour (`strategy_code`, `start_time`, `end_time`, `type`) VALUES ('-1', '00:00:00', '23:59:59', 0);
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- 电网供应计量表
|