haungxing
3 months ago
2 changed files with 21 additions and 2 deletions
@ -1,2 +1,12 @@
|
||||
-- 运行月报添加分析结果字段 |
||||
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); |
Loading…
Reference in new issue