日月報表: 修正報表信件沒有加入notice_schedule資料表,導致無法寄信
This commit is contained in:
parent
c4137ecfa6
commit
7798e9f5f8
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user