INSERT INTO `mallink`.`mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES (213, '写字楼住宅', 201, 'Y', NULL, 1, NULL, NULL, 'xzlzzlist', NULL, 0, 213);
INSERT INTO `mallink`.`mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES (228, '全部商户', 202, 'Y', NULL, 1, NULL, NULL, 'qbshgnlist', NULL, 0, 221);
INSERT INTO `mallink`.`mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES (310, '写字楼住宅', 3, 'Y', NULL, 0, NULL, NULL, NULL, 'icon-shanghuguanli', 0, 300);
INSERT INTO `mallink`.`mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES (31001, '租金合同', 310, 'Y', NULL, 1, NULL, NULL, 'xzlzzzjhtlist', NULL, 0, 31001);
INSERT INTO `mallink`.`mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES (31002, '物业合同', 310, 'Y', NULL, 1, NULL, NULL, 'xzlzzwyhtlist', NULL, 0, 31002);
INSERT INTO `mallink`.`mall_permission` (`id`, `name`, `parent_id`, `available`, `permission`, `resource_type`, `module_color`, `module_color_num`, `url`, `icon`, `version_type`, `sort`)
VALUES (31003, '租金+物业合同', 310, 'Y', NULL, 1, NULL, NULL, 'xzlzzzjwyhtlist', NULL, 0, 31003);


ALTER TABLE wx_merchant DROP COLUMN TYPE;

ALTER TABLE wx_finance_receive_0       DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_1       DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_2       DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_3       DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_4       DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_5       DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_6       DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_7       DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_8       DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_9       DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_10      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_11      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_12      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_13      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_14      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_15      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_16      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_17      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_18      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_19      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_20      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_21      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_22      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_23      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_24      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_25      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_26      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_27      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_28      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_29      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_30      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_31      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_32      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_33      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_34      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_35      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_36      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_37      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_38      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_39      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_40      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_41      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_42      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_43      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_44      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_45      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_46      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_47      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_48      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_49      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_50      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_51      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_52      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_53      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_54      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_55      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_56      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_57      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_58      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_59      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_60      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_61      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_62      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_63      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_64      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_65      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_66      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_67      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_68      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_69      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_70      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_71      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_72      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_73      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_74      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_75      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_76      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_77      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_78      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_79      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_80      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_81      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_82      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_83      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_84      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_85      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_86      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_87      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_88      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_89      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_90      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_91      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_92      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_93      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_94      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_95      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_96      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_97      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_98      DROP COLUMN rent_shop_type;
ALTER TABLE wx_finance_receive_99      DROP COLUMN rent_shop_type;

ALTER TABLE wx_all_bill_0       DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_1       DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_2       DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_3       DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_4       DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_5       DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_6       DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_7       DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_8       DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_9       DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_10      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_11      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_12      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_13      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_14      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_15      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_16      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_17      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_18      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_19      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_20      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_21      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_22      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_23      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_24      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_25      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_26      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_27      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_28      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_29      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_30      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_31      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_32      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_33      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_34      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_35      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_36      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_37      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_38      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_39      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_40      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_41      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_42      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_43      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_44      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_45      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_46      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_47      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_48      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_49      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_50      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_51      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_52      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_53      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_54      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_55      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_56      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_57      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_58      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_59      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_60      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_61      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_62      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_63      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_64      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_65      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_66      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_67      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_68      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_69      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_70      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_71      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_72      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_73      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_74      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_75      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_76      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_77      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_78      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_79      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_80      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_81      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_82      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_83      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_84      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_85      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_86      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_87      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_88      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_89      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_90      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_91      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_92      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_93      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_94      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_95      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_96      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_97      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_98      DROP COLUMN rent_shop_type;
ALTER TABLE wx_all_bill_99      DROP COLUMN rent_shop_type;

DELETE FROM  wx_flow_config WHERE NAME IN ('多经点位租金合同签约','多经点位租金合同终止','多经点位物业合同签约','多经点位物业合同终止','多经点位租金+物业合同签约','多经点位租金+物业合同终止'); 

ALTER TABLE wx_rent_contract DROP COLUMN rent_shop_type;
ALTER TABLE wx_rent_contract DROP COLUMN contract_type;

ALTER TABLE wx_property_contract  DROP COLUMN rent_shop_type;
ALTER TABLE wx_property_contract  DROP COLUMN contract_type;

UPDATE mall_permission SET available = 'N' WHERE id = 222;
UPDATE mall_permission SET NAME = '品牌商户管理' WHERE id = 221;
UPDATE mall_permission SET sort = 222 WHERE id = 221;
UPDATE mall_permission SET available = 'N' WHERE id = 300;
UPDATE mall_permission SET NAME = '品牌商户录入' WHERE id = 228;

CREATE TABLE `wx_shop_users` (
  `id` bigint(20) NOT NULL COMMENT '主键ID',
  `tenant_id` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '租户ID',
  `parent_tenant_id` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '父租户ID',
  `shop_id` bigint(20) NOT NULL COMMENT '店铺编号',
  `type` int(1) NOT NULL COMMENT '类型',
  `principal_type` int(20) NOT NULL COMMENT '主体类型',
  `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名称',
  `phone` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '电话',
  `legal_person` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '法人',
  `id_number` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '身份证号',
  `sex` int(1) NOT NULL COMMENT '性别',
  `link_person` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '联系人',
  `begin_date` datetime DEFAULT NULL COMMENT '入住日期',
  `end_date` datetime DEFAULT NULL COMMENT '离开日期',
  `create_date` datetime NOT NULL COMMENT '创建时间',
  `update_date` datetime NOT NULL COMMENT '更新时间',
  `status` int(1) NOT NULL DEFAULT '0' COMMENT '状态',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='商铺';

CREATE TABLE `wx_shop_users_person` (
  `id` bigint(20) NOT NULL COMMENT '主键ID',
  `tenant_id` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '租户ID',
  `parent_tenant_id` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '父租户ID',
  `shop_user_id` bigint(20) NOT NULL COMMENT '店铺人员编号',
  `type` int(1) NOT NULL COMMENT '类型',
  `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名称',
  `phone` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '电话',
  `id_number` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '身份证号',
  `sex` int(1) NOT NULL COMMENT '性别',
  `create_date` datetime NOT NULL COMMENT '创建时间',
  `update_date` datetime NOT NULL COMMENT '更新时间',
  `releax` int(1) NOT NULL COMMENT '关系',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='商铺';


ALTER TABLE wx_rent_contract ADD is_private_merchant INT(1) NOT NULL DEFAULT 0 COMMENT '是否私密商户' AFTER merchant_id;
ALTER TABLE wx_property_contract ADD is_private_merchant INT(1) NOT NULL DEFAULT 0 COMMENT '是否私密商户' AFTER merchant_id;


UPDATE mall_permission SET parent_id = 440,sort = 44002 WHERE id = 43907;
UPDATE mall_permission SET parent_id = 440,sort = 44003 WHERE id = 43905;
UPDATE mall_permission SET sort = 44009 WHERE id = 44002;

ALTER TABLE wx_energy_fees_shop ADD COLUMN time_unit INT(1) COMMENT '计费周期';
ALTER TABLE wx_energy_fees_shop ADD COLUMN time_type INT(1) COMMENT '费用生成方式';

ALTER TABLE wx_energy_fees_shop ADD COLUMN begin_time TIMESTAMP DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_fees_shop ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';

ALTER TABLE wx_energy_reading_calcute_result_0       ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_1       ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_2       ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_3       ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_4       ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_5       ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_6       ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_7       ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_8       ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_9       ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_10      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_11      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_12      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_13      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_14      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_15      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_16      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_17      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_18      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_19      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_20      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_21      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_22      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_23      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_24      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_25      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_26      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_27      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_28      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_29      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_30      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_31      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_32      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_33      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_34      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_35      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_36      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_37      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_38      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_39      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_40      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_41      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_42      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_43      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_44      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_45      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_46      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_47      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_48      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_49      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_50      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_51      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_52      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_53      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_54      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_55      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_56      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_57      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_58      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_59      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_60      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_61      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_62      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_63      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_64      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_65      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_66      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_67      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_68      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_69      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_70      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_71      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_72      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_73      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_74      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_75      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_76      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_77      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_78      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_79      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_80      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_81      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_82      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_83      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_84      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_85      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_86      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_87      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_88      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_89      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_90      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_91      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_92      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_93      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_94      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_95      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_96      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_97      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_98      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';
ALTER TABLE wx_energy_reading_calcute_result_99      ADD COLUMN begin_time TIMESTAMP  DEFAULT current_timestamp COMMENT '开始日期';

ALTER TABLE wx_energy_reading_calcute_result_0       ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_1       ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_2       ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_3       ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_4       ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_5       ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_6       ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_7       ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_8       ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_9       ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_10      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_11      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_12      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_13      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_14      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_15      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_16      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_17      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_18      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_19      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_20      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_21      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_22      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_23      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_24      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_25      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_26      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_27      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_28      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_29      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_30      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_31      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_32      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_33      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_34      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_35      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_36      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_37      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_38      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_39      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_40      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_41      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_42      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_43      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_44      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_45      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_46      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_47      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_48      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_49      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_50      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_51      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_52      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_53      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_54      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_55      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_56      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_57      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_58      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_59      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_60      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_61      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_62      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_63      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_64      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_65      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_66      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_67      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_68      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_69      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_70      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_71      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_72      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_73      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_74      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_75      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_76      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_77      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_78      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_79      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_80      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_81      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_82      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_83      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_84      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_85      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_86      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_87      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_88      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_89      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_90      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_91      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_92      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_93      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_94      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_95      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_96      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_97      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_98      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';
ALTER TABLE wx_energy_reading_calcute_result_99      ADD COLUMN end_time TIMESTAMP  DEFAULT current_timestamp COMMENT '终止日期';

ALTER TABLE wx_all_bill_0       ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_1       ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_2       ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_3       ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_4       ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_5       ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_6       ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_7       ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_8       ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_9       ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_10      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_11      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_12      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_13      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_14      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_15      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_16      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_17      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_18      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_19      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_20      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_21      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_22      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_23      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_24      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_25      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_26      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_27      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_28      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_29      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_30      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_31      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_32      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_33      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_34      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_35      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_36      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_37      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_38      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_39      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_40      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_41      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_42      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_43      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_44      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_45      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_46      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_47      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_48      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_49      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_50      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_51      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_52      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_53      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_54      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_55      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_56      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_57      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_58      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_59      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_60      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_61      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_62      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_63      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_64      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_65      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_66      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_67      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_68      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_69      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_70      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_71      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_72      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_73      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_74      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_75      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_76      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_77      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_78      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_79      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_80      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_81      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_82      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_83      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_84      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_85      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_86      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_87      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_88      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_89      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_90      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_91      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_92      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_93      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_94      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_95      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_96      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_97      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_98      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;
ALTER TABLE wx_all_bill_99      ADD COLUMN PERIOD VARCHAR(30) COMMENT '所属年月' AFTER receive_date;








