diff --git a/SolarPower/Repository/Implement/OperationRepository.cs b/SolarPower/Repository/Implement/OperationRepository.cs index 2ba0976..df19ea0 100644 --- a/SolarPower/Repository/Implement/OperationRepository.cs +++ b/SolarPower/Repository/Implement/OperationRepository.cs @@ -219,7 +219,7 @@ namespace SolarPower.Repository.Implement try { string where = ""; - if (filter.Status == 2) + if (filter.Status == 2) //狀態 0:未完成 1:完成 2:未完成-過期 3:完成-過期 { where = $"opr.Deleted = 1 "; } @@ -247,7 +247,7 @@ namespace SolarPower.Repository.Implement sql += " AND opr.EndTime >= @StartDate"; } - if (filter.WorkType > 0) + if (filter.WorkType > 0)//工作項目, 0:清洗 1:巡檢 2:維修 { filter.WorkType -= 1; sql += @" AND opr.WorkType = @WorkType"; diff --git a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml index af188e6..7736323 100644 --- a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml +++ b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml @@ -162,7 +162,7 @@