From 7798e9f5f8fc68db3dee11e3c8121e2d4d9f9ef3 Mon Sep 17 00:00:00 2001 From: "wanling040@gmail.com" Date: Fri, 12 Aug 2022 16:03:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=88=E5=A0=B1=E8=A1=A8:=20?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=A0=B1=E8=A1=A8=E4=BF=A1=E4=BB=B6=E6=B2=92?= =?UTF-8?q?=E6=9C=89=E5=8A=A0=E5=85=A5notice=5Fschedule=E8=B3=87=E6=96=99?= =?UTF-8?q?=E8=A1=A8=EF=BC=8C=E5=B0=8E=E8=87=B4=E7=84=A1=E6=B3=95=E5=AF=84?= =?UTF-8?q?=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Controllers/StationReportController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }