|
@@ -1186,6 +1186,23 @@ create table adm_ems_elec_meter_d (
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
+-- 节能计量日表
|
|
|
+-- ----------------------------
|
|
|
+drop table if exists adm_ems_eco_d;
|
|
|
+create table adm_ems_eco_d (
|
|
|
+ `id` bigint(20) not null auto_increment comment '序号',
|
|
|
+ `area_code` varchar(32) not null comment '园区代码',
|
|
|
+ `date` date not null comment '日期 yyyy-MM-dd',
|
|
|
+ `elec_eco_quantity` double default null comment '节电量 单位:kW-h(千瓦时)',
|
|
|
+ `elec_eco_cost` double default null comment '节电金额 单位:元',
|
|
|
+ `water_eco_quantity` double default null comment '节水量 单位:t(吨)',
|
|
|
+ `water_eco_cost` double default null comment '节水金额 单位:元',
|
|
|
+ primary key (`id`),
|
|
|
+ unique key ux_ems_eco_d(`area_code`, `date`)
|
|
|
+) engine=innodb auto_increment=1 comment = '节能计量日表';
|
|
|
+
|
|
|
+
|
|
|
+-- ----------------------------
|
|
|
-- 碳计量日表
|
|
|
-- ----------------------------
|
|
|
drop table if exists adm_ems_ca_meter_d;
|