From d55be2b38a16d1b2d2437146ad989f4dbdc57ea2 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Thu, 29 Aug 2024 15:19:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hzims-service/operational/src/main/resources/db/3.0.2.sql | 12 +++++++++++- hzims-service/safeproduct/src/main/resources/db/3.0.0.sql | 11 ++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/hzims-service/operational/src/main/resources/db/3.0.2.sql b/hzims-service/operational/src/main/resources/db/3.0.2.sql index 57cf564..c05e8c6 100644 --- a/hzims-service/operational/src/main/resources/db/3.0.2.sql +++ b/hzims-service/operational/src/main/resources/db/3.0.2.sql @@ -1,2 +1,12 @@ -- 运行月报添加分析结果字段 -alter table `hzims_run_month_report` add COLUMN `analyse_result` TEXT comment '分析结果'; \ No newline at end of file +alter table `hzims_run_month_report` add COLUMN `analyse_result` TEXT comment '分析结果'; + +CREATE VIEW IF NOT EXISTS `v_hzims_oper_maintenance_task` AS + select `TITLE` AS `TITLE`,`disposer_name` AS `disposer_name`,`DISPOSE_TIME` AS `DISPOSE_TIME`,`HOURS` AS `HOURS`,`ACT_HOURS` AS `ACT_HOURS`,`flow_task_name` AS `flow_task_name`,`CREATE_USER` AS `CREATE_USER`,`CREATE_DEPT` AS `CREATE_DEPT` + from `hzims_oper_maintenance_task` + where (`IS_DELETED` = 0); + +CREATE VIEW `v_hzims_run_month_report` AS + select `hzims_run_month_report`.`ID` AS `ID`,`hzims_run_month_report`.`STATION_CODE` AS `STATION_CODE`,`STATION_NAME` AS `STATION_NAME`,`MONTH` AS `MONTH`,`RUN_DATA` AS `RUN_DATA`,`ALARM_DATA` AS `ALARM_DATA`,`ANALYSIS_DATA` AS `ANALYSIS_DATA`,`CURVE_DATA` AS `CURVE_DATA`,`RUN_PROPOSE` AS `RUN_PROPOSE`,`TENANT_ID` AS `TENANT_ID`,`STATUS` AS `STATUS`,`CREATE_DEPT` AS `CREATE_DEPT`,`IS_DELETED` AS `IS_DELETED`,`CREATE_USER` AS `CREATE_USER`,`CREATE_TIME` AS `CREATE_TIME`,`UPDATE_USER` AS `UPDATE_USER`,`UPDATE_TIME` AS `UPDATE_TIME`,`analyse_result` AS `analyse_result`,'万kWh' AS `GENETARE_UNIT` + from `hzims_run_month_report` + where (`IS_DELETED` = 0); \ No newline at end of file diff --git a/hzims-service/safeproduct/src/main/resources/db/3.0.0.sql b/hzims-service/safeproduct/src/main/resources/db/3.0.0.sql index a090039..54476ec 100644 --- a/hzims-service/safeproduct/src/main/resources/db/3.0.0.sql +++ b/hzims-service/safeproduct/src/main/resources/db/3.0.0.sql @@ -11,4 +11,13 @@ ALTER TABLE `hzims_risk_hazard_task` ALTER TABLE `hzims_safe_safety_tool_type` ADD COLUMN `dept_id` varchar(50) DEFAULT NULL COMMENT '机构id', - ADD COLUMN `dept_name` varchar(50) DEFAULT NULL COMMENT '机构名称'; \ No newline at end of file + ADD COLUMN `dept_name` varchar(50) DEFAULT NULL COMMENT '机构名称'; + +alter table `hzims_safe_safety_tool_recheck` + add column `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态', + add column `CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位', + add column `CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + add column `UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', + add column `UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', + add column `IS_DELETED` tinyint(4) NULL DEFAULT 0, + add column `TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID';