diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index e5f05b439..7fd3f6be9 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -5692,6 +5692,9 @@ func CopyMtToJd(ctx *jxcontext.Context, mtStoreID, mtOrgCode, jdStoreID, jdOrgCo func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { mtSku := batchItemList[0].(*mtwmapi.AppFood) catMaps, _ := dao.GetMtJdCategoryMap(db, utils.Int2Str(mtSku.TagID), "") + if len(catMaps) == 0 { + return retVal, fmt.Errorf("该商品美团分类还未映射到京东,美团分类:[%v]。", mtSku.TagID) + } param := &jdapi.OpSkuParam{ TraceID: ctx.GetTrackInfo(), OutSkuID: mtSku.AppFoodCode,