From cafbb586e85904c7596315eea66be99bb48cda31 Mon Sep 17 00:00:00 2001 From: b110212000 Date: Thu, 9 Sep 2021 09:16:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=BE=A9bug=20=E7=B6=9C=E5=90=88?= =?UTF-8?q?=E5=A0=B1=E8=A1=A8=20=E6=94=B9=20=E7=A7=9F=E9=87=91=E7=82=BA?= =?UTF-8?q?=E6=B5=AE=E9=BB=9E=E6=95=B8=E8=A8=88=E7=AE=97?= 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 8633c11..53934b0 100644 --- a/SolarPower/Controllers/StationReportController.cs +++ b/SolarPower/Controllers/StationReportController.cs @@ -1351,14 +1351,14 @@ namespace SolarPower.Controllers PowerstationId = form.PowerstationId, SiteDB = form.PowerstationDB }; - var LeaseRate = 0; + Double LeaseRate = 0; if(form.PowerstationType == 1) { var Hire = GetHireInfo(psIdAndSiteDB); foreach (var a in Hire.Result.Data) { - LeaseRate += Convert.ToInt32(a.LeaseRate); + LeaseRate += Convert.ToDouble(a.LeaseRate); } }