修正電站狀態的描述
This commit is contained in:
parent
e647e6196b
commit
fdb15a9786
@ -995,7 +995,7 @@ ALTER TABLE `power_station`
|
||||
CHANGE COLUMN `UpdatedAt` `UpdatedAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP COMMENT '修改時間' AFTER `UpdatedBy`;
|
||||
-- 新增欄位 電站資料 電站狀態
|
||||
ALTER TABLE `power_station`
|
||||
ADD COLUMN `HealthStatus` TINYINT(4) UNSIGNED NOT NULL DEFAULT '1' COMMENT '1:設備正常 2:設備斷線 3:設備異常' AFTER `AreaId`;
|
||||
ADD COLUMN `HealthStatus` TINYINT(4) UNSIGNED NOT NULL DEFAULT '1' COMMENT '1:設備正常 2:設備異常 3:設備斷線' AFTER `AreaId`;
|
||||
|
||||
-- 各電站每天日照度的平均值 20210708
|
||||
CREATE TABLE `sensor_history_day` (
|
||||
|
||||
@ -551,7 +551,7 @@ namespace SolarPower.Repository.Implement
|
||||
`CityId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '電站縣市',
|
||||
`AreaId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '電站區域',
|
||||
`Status` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '是否啟用, 0:否 1:是',
|
||||
`HealthStatus` tinyint(4) unsigned NOT NULL DEFAULT '1' COMMENT '1:設備正常 2:設備斷線 3:設備異常',
|
||||
`HealthStatus` tinyint(4) unsigned NOT NULL DEFAULT '1' COMMENT '1:設備正常 2:設備異常 3:設備斷線',
|
||||
`Address` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '電站詳細地址',
|
||||
`Name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '名稱',
|
||||
`MainDisplay` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '主要顯示圖片',
|
||||
|
||||
@ -467,10 +467,10 @@
|
||||
statusName = "設備正常";
|
||||
break;
|
||||
case 2:
|
||||
statusName = "設備斷線";
|
||||
statusName = "設備異常";
|
||||
break;
|
||||
case 3:
|
||||
statusName = "設備異常";
|
||||
statusName = "設備斷線";
|
||||
break;
|
||||
default:
|
||||
statusName = "NULL";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user