增加价格排序
This commit is contained in:
parent
393e774ba6
commit
68b10ddadd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue