From ed07cb7a6e3ebf0ab47a0a836a699a07a4e91faa Mon Sep 17 00:00:00 2001 From: panshuling321 Date: Fri, 9 Sep 2022 10:52:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BF=90=E7=BB=B4=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E8=A1=A8=E5=AD=97=E6=AE=B5SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/v2.1.sql | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/sql/v2.1.sql b/sql/v2.1.sql index d4f81414..bd139c87 100644 --- a/sql/v2.1.sql +++ b/sql/v2.1.sql @@ -1097,3 +1097,25 @@ ALTER TABLE `xhpc_clearing_checkout` ADD COLUMN `received_power_amount` decimal(10,2) NULL DEFAULT NULL COMMENT '到账电费金额' AFTER `received_amount`; ALTER TABLE `xhpc_clearing_checkout` ADD COLUMN `received_service_amount` decimal(10,2) NULL DEFAULT NULL COMMENT '到账服务费金额' AFTER `received_power_amount`; + + +ALTER TABLE `xhpc_work_order` + ADD COLUMN `station_id` bigint(20) NULL DEFAULT null COMMENT '场站ID' AFTER `serial_number`; + + +ALTER TABLE `xhpc_work_type_dict` + ADD COLUMN `auto_send` int(4) NULL DEFAULT null COMMENT '是否自动派发(0-不自动派发,1-自动派发)' AFTER `tenant_id`; +ALTER TABLE `xhpc_work_type_dict` + ADD COLUMN `user_id` int(11) NULL DEFAULT null COMMENT '自动派发人员' AFTER `auto_send`; +ALTER TABLE `xhpc_work_type_dict` + ADD COLUMN `auto_run` int(11) NULL DEFAULT null COMMENT '是否自动采取应急措施(0-不自动采取,1-自动)' AFTER `user_id`; +ALTER TABLE `xhpc_work_type_dict` + ADD COLUMN `measure` int(4) NULL DEFAULT null COMMENT '自动应急措施编码,详见枚举类' AFTER `auto_run`; + + +ALTER TABLE `xhpc_work_user` + ADD COLUMN `type` int(4) NULL DEFAULT null COMMENT '人员类型(1-管理员,2-运维人员)' AFTER `status`; +ALTER TABLE `xhpc_work_user` + ADD COLUMN `operator_ids` text COMMENT '运营商ID(用逗号分隔)' AFTER `type`; +ALTER TABLE `xhpc_work_user` + ADD COLUMN `station_ids` text COMMENT '场站ID(用逗号分隔)' AFTER `operator_ids`; \ No newline at end of file