- 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 Elemeorder2 struct {
|
||||
Id int `orm:"column(id);auto"`
|
||||
Orderid string `orm:"column(orderid);size(50);null;unique"`
|
||||
@@ -11,5 +13,5 @@ type Elemeorder2 struct {
|
||||
}
|
||||
|
||||
func (t *Elemeorder2) TableName() string {
|
||||
return "elemeorder2"
|
||||
return globals.ElemeorderTableName
|
||||
}
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
package legacyorder
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
)
|
||||
|
||||
type Jdorder2 struct {
|
||||
Id int `orm:"column(id);auto"`
|
||||
Code string `orm:"column(code);size(2);null"`
|
||||
@@ -13,5 +17,5 @@ type Jdorder2 struct {
|
||||
}
|
||||
|
||||
func (t *Jdorder2) TableName() string {
|
||||
return "jdorder2"
|
||||
return globals.JdorderTableName
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package legacyorder
|
||||
|
||||
import "git.rosy.net.cn/jx-callback/globals"
|
||||
|
||||
type Jxordersku2 struct {
|
||||
Id int `orm:"column(id);auto"`
|
||||
VenderId int8 `orm:"column(vender_id);null"`
|
||||
@@ -17,5 +19,5 @@ type Jxordersku2 struct {
|
||||
}
|
||||
|
||||
func (t *Jxordersku2) TableName() string {
|
||||
return "jxordersku2"
|
||||
return globals.JxorderskuTableName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user