fix(calculate):修正园区总电量在保存后电度电费不显示的问题。
This commit is contained in:
parent
a512773f11
commit
ae056f612a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user