修正電站狀態的描述

This commit is contained in:
張家睿 2025-11-17 12:03:00 +08:00
parent e647e6196b
commit fdb15a9786
3 changed files with 4 additions and 4 deletions

View File

@ -995,7 +995,7 @@ ALTER TABLE `power_station`
CHANGE COLUMN `UpdatedAt` `UpdatedAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP COMMENT '修改時間' AFTER `UpdatedBy`; CHANGE COLUMN `UpdatedAt` `UpdatedAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP COMMENT '修改時間' AFTER `UpdatedBy`;
-- 新增欄位 電站資料 電站狀態 -- 新增欄位 電站資料 電站狀態
ALTER TABLE `power_station` 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 -- 各電站每天日照度的平均值 20210708
CREATE TABLE `sensor_history_day` ( CREATE TABLE `sensor_history_day` (

View File

@ -551,7 +551,7 @@ namespace SolarPower.Repository.Implement
`CityId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '', `CityId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '',
`AreaId` 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:', `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 '', `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 '', `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 '', `MainDisplay` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '',

View File

@ -467,10 +467,10 @@
statusName = "設備正常"; statusName = "設備正常";
break; break;
case 2: case 2:
statusName = "設備斷線"; statusName = "設備異常";
break; break;
case 3: case 3:
statusName = "設備異常"; statusName = "設備斷線";
break; break;
default: default:
statusName = "NULL"; statusName = "NULL";