:
This commit is contained in:
@@ -703,6 +703,9 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, isBySku, isQueryMidPric
|
||||
if v.VendorID == model.VendorIDJDShop {
|
||||
skuName.JdsCategoryID = v.VendorCategoryID
|
||||
}
|
||||
if v.VendorID == model.VendorIDDD {
|
||||
skuName.DdCategoryID = v.VendorCategoryID
|
||||
}
|
||||
}
|
||||
}
|
||||
var (
|
||||
@@ -1143,6 +1146,10 @@ func updateOrCreateSkuVendorCategoryMap(db *dao.DaoDB, ctx *jxcontext.Context, n
|
||||
updateOrCreate(model.VendorIDMTWM, nameID, skuNameExt.MtwmCategoryID)
|
||||
flag = true
|
||||
}
|
||||
if skuNameExt.DdCategoryID != "" {
|
||||
updateOrCreate(model.VendorIDDD, nameID, skuNameExt.DdCategoryID)
|
||||
flag = true
|
||||
}
|
||||
} else {
|
||||
if payload["jdCategoryID"] != nil {
|
||||
updateOrCreate(model.VendorIDJD, nameID, payload["jdCategoryID"].(string))
|
||||
@@ -1160,6 +1167,10 @@ func updateOrCreateSkuVendorCategoryMap(db *dao.DaoDB, ctx *jxcontext.Context, n
|
||||
updateOrCreate(model.VendorIDMTWM, nameID, payload["mtwmCategoryID"].(string))
|
||||
flag = true
|
||||
}
|
||||
if payload["ddCategoryID"] != nil {
|
||||
updateOrCreate(model.VendorIDDD, nameID, payload["ddCategoryID"].(string))
|
||||
flag = true
|
||||
}
|
||||
}
|
||||
}
|
||||
return flag
|
||||
|
||||
@@ -302,6 +302,7 @@ type SkuNameExt struct {
|
||||
JdsCategoryID string `json:"jdsCategoryID"`
|
||||
EbaiCategoryID string `json:"ebaiCategoryID"`
|
||||
MtwmCategoryID string `json:"mtwmCategoryID"`
|
||||
DdCategoryID string `json:"ddCategoryID"`
|
||||
}
|
||||
|
||||
type SkuExinfoMap struct {
|
||||
|
||||
Reference in New Issue
Block a user