1
This commit is contained in:
@@ -521,6 +521,9 @@ func AddStoreCategoryMap(db *DaoDB, storeID, categoryID int, vendorID int, vendo
|
||||
} else if vendorID == model.VendorIDJDShop {
|
||||
storeCat.JdsID = utils.Str2Int64WithDefault(vendorCategoryID, 0)
|
||||
storeCat.JdsSyncStatus = status
|
||||
} else if vendorID == model.VendorIDDD {
|
||||
storeCat.DdID = vendorCategoryID
|
||||
storeCat.DdSyncStatus = status
|
||||
} else {
|
||||
panic("unsupported vendor")
|
||||
}
|
||||
|
||||
@@ -286,11 +286,13 @@ type StoreSkuExt struct {
|
||||
EbaiID string `orm:"column(ebai_id);index" json:"ebaiID"`
|
||||
MtwmID string `orm:"column(mtwm_id)" json:"mtwmID"` // 这个也不是必须的,只是为了DAO取数据语句一致
|
||||
YbID string `orm:"column(yb_id);index" json:"ybID"`
|
||||
DdID string `orm:"column(dd_id);index" json:"ddID"`
|
||||
JdsID string `orm:"column(jds_id);index" json:"jdsID"`
|
||||
|
||||
JdSyncStatus int8 `orm:"default(2)" json:"jdSyncStatus"`
|
||||
EbaiSyncStatus int8 `orm:"default(2)" json:"ebaiSyncStatus"`
|
||||
MtwmSyncStatus int8 `orm:"default(2)" json:"mtwmSyncStatus"`
|
||||
DdSyncStatus int8 `orm:"default(2)" json:"ddSyncStatus"`
|
||||
YbSyncStatus int8 `orm:"default(2)" json:"ybSyncStatus"`
|
||||
JdsSyncStatus int8 `orm:"default(2)" json:"jdsSyncStatus"` //京东商城
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ const (
|
||||
// FieldElmID = "ElmID"
|
||||
FieldEbaiID = "EbaiID"
|
||||
FieldMtwmID = "MtwmID"
|
||||
FieldDdID = "DdID"
|
||||
// FieldWscID = "WscID"
|
||||
// FieldWscID2 = "WscID2"
|
||||
|
||||
|
||||
@@ -58,11 +58,13 @@ type StoreSkuCategoryMap struct {
|
||||
// ElmID int64 `orm:"column(elm_id);index"`
|
||||
EbaiID int64 `orm:"column(ebai_id);index"`
|
||||
MtwmID string `orm:"column(mtwm_id);index;size(16)"`
|
||||
DdID string `orm:"column(dd_id);index;size(16)"`
|
||||
// WscID int64 `orm:"column(wsc_id);index"`
|
||||
|
||||
// ElmSyncStatus int8 `orm:"default(2)"`
|
||||
EbaiSyncStatus int8 `orm:"default(2)"`
|
||||
MtwmSyncStatus int8 `orm:"default(2)"`
|
||||
DdSyncStatus int8 `orm:"default(2)"`
|
||||
// WscSyncStatus int8 `orm:"default(2)"`
|
||||
YbID int64 `orm:"column(yb_id);index"`
|
||||
YbSyncStatus int8 `orm:"default(2)"`
|
||||
|
||||
Reference in New Issue
Block a user