From 072aecb4931b8bb3d3b2413354f578f7554e9a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 8 Apr 2024 11:31:46 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/system_store_sku.go | 3 +++ 1 file changed, 3 insertions(+) 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 == "" {