From 6ddb5fd02b309caa81e9294cae320e0ab2e79ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 31 Jan 2023 14:32:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=AC=E4=B8=9C=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sku.go | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index 606dfb579..50eb81d43 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -379,19 +379,9 @@ func ReorderCategories(ctx *jxcontext.Context, parentID int, categoryIDs []int, } dao.Commit(db, txDB) // 同步平台分类排序 - if _, err := CurVendorSync.SyncReorderCategories(ctx, db, parentID, false, userName); err != nil { - return err - } - + SetStoreCategorySyncStatus2(db, nil, categoryIDs, model.SyncFlagModifiedMask) // 只排序,不创建分类 - if onlySort == model.YES { - return nil - } - - if _, err = SetStoreCategorySyncStatus2(db, nil, categoryIDs, model.SyncFlagModifiedMask); err != nil { - return err - } - + _, err = CurVendorSync.SyncReorderCategories(ctx, db, parentID, false, userName) // 同步门店分类 CurVendorSync.SyncStoresCategory(ctx, db, nil, nil, false, true, true) }