From c7ade647e7f00a4061af9f52c6042e811d8dad40 Mon Sep 17 00:00:00 2001 From: b110212000 Date: Wed, 8 Sep 2021 18:56:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=BE=A9=E5=A0=B1=E8=A1=A8=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E7=99=BC=E9=80=81=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Controllers/StationReportController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SolarPower/Controllers/StationReportController.cs b/SolarPower/Controllers/StationReportController.cs index dc286a0..8633c11 100644 --- a/SolarPower/Controllers/StationReportController.cs +++ b/SolarPower/Controllers/StationReportController.cs @@ -1696,14 +1696,15 @@ 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); } }