日月報表: 修正報表信件沒有加入notice_schedule資料表,導致無法寄信

This commit is contained in:
wanling040@gmail.com 2022-08-12 16:03:55 +08:00
parent c4137ecfa6
commit 7798e9f5f8

View File

@ -1107,7 +1107,7 @@ namespace SolarPower.Controllers
var getinvsql = k.Result[0] as IDictionary<string, object>;
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;
}