diff --git a/SolarPower/Controllers/StationReportController.cs b/SolarPower/Controllers/StationReportController.cs index 6fc7b86..0f58032 100644 --- a/SolarPower/Controllers/StationReportController.cs +++ b/SolarPower/Controllers/StationReportController.cs @@ -1107,7 +1107,7 @@ namespace SolarPower.Controllers var getinvsql = k.Result[0] as IDictionary; if (getinvsql["mySelect"] == null) { - if(postObject.PowerStation.Count > 1) + if(postObject.PowerStation.Count > 1)//因為有總計 所以最少會有一筆 { continue; } @@ -1118,7 +1118,7 @@ namespace SolarPower.Controllers } var sheet = workbook.CreateSheet(powerstationid.Name); var Formbody = GetForm(select_Table);//取body - if(Formbody.Result.Data.Count == 0) + if(Formbody.Result.Data.Count <= 1) { continue; }