This commit is contained in:
邹宗楠
2025-02-12 14:28:41 +08:00
parent 7541b55603
commit edac266c42

View File

@@ -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}...)