修復報表不能發送問題

This commit is contained in:
b110212000 2021-09-08 18:56:29 +08:00
parent f64badab88
commit c7ade647e7

View File

@ -1696,14 +1696,15 @@ namespace SolarPower.Controllers
PowerstationId = form.PowerstationId, PowerstationId = form.PowerstationId,
SiteDB = form.PowerstationDB SiteDB = form.PowerstationDB
}; };
var LeaseRate = 0; double LeaseRate = 0;
if (form.PowerstationType == 1) if (form.PowerstationType == 1)
{ {
var Hire = GetHireInfo(psIdAndSiteDB); var Hire = GetHireInfo(psIdAndSiteDB);
foreach (var a in Hire.Result.Data) foreach (var a in Hire.Result.Data)
{ {
LeaseRate += Convert.ToInt32(a.LeaseRate);
LeaseRate += Convert.ToDouble(a.LeaseRate);
} }
} }