fix(calculate):修正园区总电量在保存后电度电费不显示的问题。

This commit is contained in:
徐涛 2022-09-06 11:24:39 +08:00
parent a512773f11
commit ae056f612a

View File

@ -299,7 +299,7 @@ func (_ReportService) CalculateSummaryAndFinishStep(reportId string) error {
} }
defer tx.Close() defer tx.Close()
summary.CalculatePrices() 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 { if err != nil {
tx.Rollback() tx.Rollback()
return err return err