fix(report):补充计算功能传递的数据项。

This commit is contained in:
徐涛 2022-09-03 09:36:05 +08:00
parent 13368eace9
commit 41c4dcea2e

View File

@ -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) {