增加价格排序

This commit is contained in:
qiyunfanbo126.com 2024-08-05 16:10:20 +08:00
parent 393e774ba6
commit 68b10ddadd
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@ type Orders struct {
ProductName string `xorm:"'product_name' varchar(50)"`
Price string `xorm:"'price' decimal(10,2)"`
State int `xorm:"'state' UNSIGNED TINYINT"`
VoucherId int `xorm:"'voucher_id' int(0)"`
VoucherId string `xorm:"'voucher_id' int(0)"`
VoucherLink string `xorm:"'voucher_link' varchar(255)"`
RefundOrderNo string `xorm:"'refundOrderNo' varchar(255)"`
RefundOrderSta string `xorm:"'refundOrderSta' varchar(20)"`
@ -52,6 +52,7 @@ type OrdersModel struct {
func GetInstance() *OrdersModel {
once.Do(func() {
m = new(OrdersModel)
m.GetDb().ShowSQL(true)
//m.DiName = "" //设置数据库实例连接默认db.SingletonMain
})
return m