From fdb15a97864b0ac704451ce82556f2daf02b8fab Mon Sep 17 00:00:00 2001 From: "jay.chang" Date: Mon, 17 Nov 2025 12:03:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=9B=BB=E7=AB=99=E7=8B=80?= =?UTF-8?q?=E6=85=8B=E7=9A=84=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/DBSchema/solar_power_schema.sql | 2 +- SolarPower/Repository/Implement/CompanyRepository.cs | 2 +- SolarPower/Views/StationOverview/Index.cshtml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SolarPower/DBSchema/solar_power_schema.sql b/SolarPower/DBSchema/solar_power_schema.sql index 53cb416..b219ee1 100644 --- a/SolarPower/DBSchema/solar_power_schema.sql +++ b/SolarPower/DBSchema/solar_power_schema.sql @@ -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` ( diff --git a/SolarPower/Repository/Implement/CompanyRepository.cs b/SolarPower/Repository/Implement/CompanyRepository.cs index ff22bf6..e201b03 100644 --- a/SolarPower/Repository/Implement/CompanyRepository.cs +++ b/SolarPower/Repository/Implement/CompanyRepository.cs @@ -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 '主要顯示圖片', diff --git a/SolarPower/Views/StationOverview/Index.cshtml b/SolarPower/Views/StationOverview/Index.cshtml index ed54d4b..c459d23 100644 --- a/SolarPower/Views/StationOverview/Index.cshtml +++ b/SolarPower/Views/StationOverview/Index.cshtml @@ -467,10 +467,10 @@ statusName = "設備正常"; break; case 2: - statusName = "設備斷線"; + statusName = "設備異常"; break; case 3: - statusName = "設備異常"; + statusName = "設備斷線"; break; default: statusName = "NULL";