1
This commit is contained in:
@@ -1287,6 +1287,7 @@ func updateOrCreateSkuVendorCategoryMap(db *dao.DaoDB, ctx *jxcontext.Context, n
|
||||
}
|
||||
}
|
||||
|
||||
globals.SugarLogger.Debugf("------jdCategoryId := %s", jdCategoryId)
|
||||
if payload["jdsCategoryID"] != nil {
|
||||
value, ok := payload["jdCategoryID"].(string)
|
||||
if ok && value != "" && value != "0" {
|
||||
@@ -1386,6 +1387,7 @@ func updateOrCreateSkuVendorCategoryMap(db *dao.DaoDB, ctx *jxcontext.Context, n
|
||||
updateOrCreate(model.VendorIDJD, nameID, jdCategoryId)
|
||||
flag = true
|
||||
payload["jdCategoryID"] = jdCategoryId
|
||||
globals.SugarLogger.Debugf("------jdCategoryId := %s", jdCategoryId)
|
||||
}
|
||||
if jxCategoryID != 0 && jxCategoryID != 291 {
|
||||
dao.ExecuteSQL(dao.GetDB(), `UPDATE sku_name SET category_id = ? WHERE id = ?`, []interface{}{jxCategoryID, nameID}...)
|
||||
|
||||
Reference in New Issue
Block a user