打桩
This commit is contained in:
@@ -261,9 +261,6 @@ func SyncReorderCategories(ctx *jxcontext.Context, parentCatID int, isAsync bool
|
|||||||
parentVendorCatID = thingMaps[0].VendorThingID
|
parentVendorCatID = thingMaps[0].VendorThingID
|
||||||
}
|
}
|
||||||
if len(vendorCatIDList) > 0 {
|
if len(vendorCatIDList) > 0 {
|
||||||
globals.SugarLogger.Debugf("vendorInfo.OrgCode=== %s", vendorInfo.OrgCode)
|
|
||||||
globals.SugarLogger.Debugf("vendorInfo.parentVendorCatID=== %s", parentVendorCatID)
|
|
||||||
globals.SugarLogger.Debugf("vendorInfo.vendorCatIDList=== %s", vendorCatIDList)
|
|
||||||
if err = multiStoresHandler.ReorderCategories2(ctx, vendorInfo.OrgCode, parentVendorCatID, vendorCatIDList); err == nil {
|
if err = multiStoresHandler.ReorderCategories2(ctx, vendorInfo.OrgCode, parentVendorCatID, vendorCatIDList); err == nil {
|
||||||
retVal = []int{len(vendorCatIDList)}
|
retVal = []int{len(vendorCatIDList)}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,6 +108,9 @@ func (p *PurchaseHandler) DeleteCategory2(ctx *jxcontext.Context, vendorOrgCode,
|
|||||||
func (p *PurchaseHandler) ReorderCategories2(ctx *jxcontext.Context, vendorOrgCode, vendorParentCatID string, vendorCatIDList []string) (err error) {
|
func (p *PurchaseHandler) ReorderCategories2(ctx *jxcontext.Context, vendorOrgCode, vendorParentCatID string, vendorCatIDList []string) (err error) {
|
||||||
if globals.EnableJdStoreWrite {
|
if globals.EnableJdStoreWrite {
|
||||||
err = getAPI(vendorOrgCode).ChangeShopCategoryOrder(utils.Str2Int64WithDefault(vendorParentCatID, 0), utils.StringSlice2Int64(vendorCatIDList))
|
err = getAPI(vendorOrgCode).ChangeShopCategoryOrder(utils.Str2Int64WithDefault(vendorParentCatID, 0), utils.StringSlice2Int64(vendorCatIDList))
|
||||||
|
globals.SugarLogger.Debugf("vendorInfo.vendorOrgCode=== %s", vendorOrgCode)
|
||||||
|
globals.SugarLogger.Debugf("vendorInfo.vendorParentCatID=== %s", vendorParentCatID)
|
||||||
|
globals.SugarLogger.Debugf("vendorInfo.vendorCatIDList=== %s", vendorCatIDList)
|
||||||
globals.SugarLogger.Debugf("ReorderCategories2 === %v", err)
|
globals.SugarLogger.Debugf("ReorderCategories2 === %v", err)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user