enhance(report):基本完成报表部分的数据库查询操作。

This commit is contained in:
徐涛
2023-06-20 16:50:34 +08:00
parent b2e4fb809f
commit fbe4036389
2 changed files with 868 additions and 0 deletions

View File

@@ -1 +1,42 @@
package vo
import (
"electricity_bill_calc/types"
"github.com/shopspring/decimal"
)
type ReportCreationForm struct {
Park string `json:"parkId"`
PeriodBegin types.Date `json:"periodBegin"`
PeriodEnd types.Date `json:"periodEnd"`
Overall decimal.Decimal `json:"overall"`
OverallFee decimal.Decimal `json:"overallFee"`
Critical decimal.Decimal `json:"critical"`
CriticalFee decimal.Decimal `json:"criticalFee"`
Peak decimal.Decimal `json:"peak"`
PeakFee decimal.Decimal `json:"peakFee"`
Flat decimal.Decimal `json:"flat,omitempty"`
FlatFee decimal.Decimal `json:"flatFee,omitempty"`
Valley decimal.Decimal `json:"valley"`
ValleyFee decimal.Decimal `json:"valleyFee"`
BasicFee decimal.Decimal `json:"basicFee"`
AdjustFee decimal.Decimal `json:"adjustFee"`
}
type ReportModifyForm struct {
PeriodBegin types.Date `json:"periodBegin"`
PeriodEnd types.Date `json:"periodEnd"`
Overall decimal.Decimal `json:"overall"`
OverallFee decimal.Decimal `json:"overallFee"`
Critical decimal.Decimal `json:"critical"`
CriticalFee decimal.Decimal `json:"criticalFee"`
Peak decimal.Decimal `json:"peak"`
PeakFee decimal.Decimal `json:"peakFee"`
Flat decimal.Decimal `json:"flat,omitempty"`
FlatFee decimal.Decimal `json:"flatFee,omitempty"`
Valley decimal.Decimal `json:"valley"`
ValleyFee decimal.Decimal `json:"valleyFee"`
BasicFee decimal.Decimal `json:"basicFee"`
AdjustFee decimal.Decimal `json:"adjustFee"`
}