diff --git a/business/jxstore/cms/system_store_sku.go b/business/jxstore/cms/system_store_sku.go index c347e7e1e..b68afc5aa 100644 --- a/business/jxstore/cms/system_store_sku.go +++ b/business/jxstore/cms/system_store_sku.go @@ -263,6 +263,9 @@ func BatchInitSkuMT2MT(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi if v.SkuId == "" { v.SkuId = storeSku.AppFoodCode } + if v.SkuId == "" { + v.SkuId = utils.Int2Str(storeSku.Ctime + int(k*3)) + } // salesCycle, _ := json.Marshal(v.AvailableTimes) mapSkuList := utils.Struct2MapByJson(v) if v.BoxNum == "" {