修復bug 綜合報表 改 租金為浮點數計算

This commit is contained in:
b110212000 2021-09-09 09:16:23 +08:00
parent e5e2f7880a
commit cafbb586e8

View File

@ -1351,14 +1351,14 @@ 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);
} }
} }