From 41c4dcea2e25f81f497fe5c7dc3cd29b57f524aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Sat, 3 Sep 2022 09:36:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(report):=E8=A1=A5=E5=85=85=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E5=8A=9F=E8=83=BD=E4=BC=A0=E9=80=92=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=A1=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/report.go b/controller/report.go index 315bf79..5456d12 100644 --- a/controller/report.go +++ b/controller/report.go @@ -188,7 +188,7 @@ func testCalculateReportSummary(c *gin.Context) { } summary.CalculatePrices() calcResults := tools.ConvertStructToMap(summary) - result.Json(http.StatusOK, "已完成园区概况的试计算。", gin.H{"result": lo.PickByKeys(calcResults, []string{"overallPrice", "criticalPrice", "peakPrice", "flat", "flatFee", "flatPrice", "valleyPrice"})}) + result.Json(http.StatusOK, "已完成园区概况的试计算。", gin.H{"result": lo.PickByKeys(calcResults, []string{"overallPrice", "criticalPrice", "peakPrice", "flat", "flatFee", "flatPrice", "valleyPrice", "consumptionFee"})}) } func progressReportSummary(c *gin.Context) {