Updata:更新字段类型
This commit is contained in:
parent
24423900d3
commit
c25d7dbdb0
@ -101,7 +101,7 @@ func GetInvoiceInfoByOrderNo(req *bundle.GetInvoiceInfoByOrderNoReq) (*bundle.Ge
|
|||||||
BundleName: m.BundleName,
|
BundleName: m.BundleName,
|
||||||
AmountType: m.AmountType,
|
AmountType: m.AmountType,
|
||||||
TotalAmount: strconv.FormatFloat(float64(m.TotalAmount), 'f', -1, 64),
|
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,
|
PaperInvocieStatus: m.PaperInvocieStatus,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -81,12 +81,12 @@ type InvoiceOrderInfo struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type InvoiceInfoByOrderNo struct {
|
type InvoiceInfoByOrderNo struct {
|
||||||
OrderNo string `gorm:"column:order_no;comment:订单编号"`
|
OrderNo string `gorm:"column:order_no;comment:订单编号"`
|
||||||
InvoiceNo string `gorm:"column:invoice_no;comment:发票编号"`
|
InvoiceNo string `gorm:"column:invoice_no;comment:发票编号"`
|
||||||
InvoiceUrl string `gorm:"column:invoice_url;comment:发票URL"`
|
InvoiceUrl string `gorm:"column:invoice_url;comment:发票URL"`
|
||||||
BundleName string `gorm:"column:bundle_name;comment:套餐名称"`
|
BundleName string `gorm:"column:bundle_name;comment:套餐名称"`
|
||||||
AmountType int64 `gorm:"column:amount_type;comment:金额类型 1:人民币 2:美元"`
|
AmountType int64 `gorm:"column:amount_type;comment:金额类型 1:人民币 2:美元"`
|
||||||
TotalAmount float32 `gorm:"column:total_amount;comment:总金额"`
|
TotalAmount float32 `gorm:"column:total_amount;comment:总金额"`
|
||||||
PayTime time.Time `gorm:"column:pay_time;comment:支付时间"`
|
PayTime string `gorm:"column:pay_time;comment:支付时间"`
|
||||||
PaperInvocieStatus int64 `gorm:"column:paper_invocie_status;comment:纸质发票状态 1:未申请 2:已申请 3:已邮寄"`
|
PaperInvocieStatus int64 `gorm:"column:paper_invocie_status;comment:纸质发票状态 1:未申请 2:已申请 3:已邮寄"`
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user