diff --git a/SolarPower/Controllers/StationReportController.cs b/SolarPower/Controllers/StationReportController.cs index 771f12b..2e19f88 100644 --- a/SolarPower/Controllers/StationReportController.cs +++ b/SolarPower/Controllers/StationReportController.cs @@ -1046,6 +1046,10 @@ namespace SolarPower.Controllers } var sheet = workbook.CreateSheet(powerstationid.Name); var Formbody = GetForm(select_Table);//取body + if(Formbody.Result.Data.Count == 0) + { + continue; + } var Formhead = GetTableHead(select_Table);//取head int RowPosition = 0;