From ae056f612a23bef723f059259d466f6085a05a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Tue, 6 Sep 2022 11:24:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(calculate):=E4=BF=AE=E6=AD=A3=E5=9B=AD?= =?UTF-8?q?=E5=8C=BA=E6=80=BB=E7=94=B5=E9=87=8F=E5=9C=A8=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=90=8E=E7=94=B5=E5=BA=A6=E7=94=B5=E8=B4=B9=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/report.go b/service/report.go index b5fbc6d..b130f19 100644 --- a/service/report.go +++ b/service/report.go @@ -299,7 +299,7 @@ func (_ReportService) CalculateSummaryAndFinishStep(reportId string) error { } defer tx.Close() summary.CalculatePrices() - _, err = tx.ID(summary.ReportId).Cols("overall_price", "critical_price", "peak_price", "flat", "flat_fee", "flat_price", "valley_price").Update(summary) + _, err = tx.ID(summary.ReportId).Cols("overall_price", "critical_price", "peak_price", "flat", "flat_fee", "flat_price", "valley_price", "consumption_fee").Update(summary) if err != nil { tx.Rollback() return err