- fixed a bug in defsch.init, replace LoadOrder with GetOrder.
- dynamic table name for legacy order related table.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package legacyorder
|
||||
|
||||
import "git.rosy.net.cn/jx-callback/globals"
|
||||
|
||||
type Jxorder2 struct {
|
||||
Id int `orm:"column(id);auto"`
|
||||
VenderId int8 `orm:"column(vender_id);null"`
|
||||
@@ -55,5 +57,5 @@ type Jxorder2 struct {
|
||||
}
|
||||
|
||||
func (t *Jxorder2) TableName() string {
|
||||
return "jxorder2"
|
||||
return globals.JxorderTableName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user