diff --git a/internal/logic/invoiceLogic.go b/internal/logic/invoiceLogic.go index a9b6c25..e5f27dd 100644 --- a/internal/logic/invoiceLogic.go +++ b/internal/logic/invoiceLogic.go @@ -101,7 +101,7 @@ func GetInvoiceInfoByOrderNo(req *bundle.GetInvoiceInfoByOrderNoReq) (*bundle.Ge BundleName: m.BundleName, AmountType: m.AmountType, TotalAmount: strconv.FormatFloat(float64(m.TotalAmount), 'f', -1, 64), - PayTime: m.PayTime.Format("2006-01-02 15:04:05"), + PayTime: m.PayTime, PaperInvocieStatus: m.PaperInvocieStatus, } }) diff --git a/internal/model/invoice.go b/internal/model/invoice.go index cf78789..ef57155 100644 --- a/internal/model/invoice.go +++ b/internal/model/invoice.go @@ -81,12 +81,12 @@ type InvoiceOrderInfo struct { } type InvoiceInfoByOrderNo struct { - OrderNo string `gorm:"column:order_no;comment:订单编号"` - InvoiceNo string `gorm:"column:invoice_no;comment:发票编号"` - InvoiceUrl string `gorm:"column:invoice_url;comment:发票URL"` - BundleName string `gorm:"column:bundle_name;comment:套餐名称"` - AmountType int64 `gorm:"column:amount_type;comment:金额类型 1:人民币 2:美元"` - TotalAmount float32 `gorm:"column:total_amount;comment:总金额"` - PayTime time.Time `gorm:"column:pay_time;comment:支付时间"` - PaperInvocieStatus int64 `gorm:"column:paper_invocie_status;comment:纸质发票状态 1:未申请 2:已申请 3:已邮寄"` + OrderNo string `gorm:"column:order_no;comment:订单编号"` + InvoiceNo string `gorm:"column:invoice_no;comment:发票编号"` + InvoiceUrl string `gorm:"column:invoice_url;comment:发票URL"` + BundleName string `gorm:"column:bundle_name;comment:套餐名称"` + AmountType int64 `gorm:"column:amount_type;comment:金额类型 1:人民币 2:美元"` + TotalAmount float32 `gorm:"column:total_amount;comment:总金额"` + PayTime string `gorm:"column:pay_time;comment:支付时间"` + PaperInvocieStatus int64 `gorm:"column:paper_invocie_status;comment:纸质发票状态 1:未申请 2:已申请 3:已邮寄"` }