From 6bfe70a4157b8e054fd6c8693b708ed7a9ebcba4 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 27 Sep 2024 11:16:10 +0800 Subject: [PATCH] 1 --- app/store/svc/svc_agent_goods.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/store/svc/svc_agent_goods.go b/app/store/svc/svc_agent_goods.go index 63ceb53..a37d60b 100644 --- a/app/store/svc/svc_agent_goods.go +++ b/app/store/svc/svc_agent_goods.go @@ -89,6 +89,7 @@ func AgentGoodsCopy(c *gin.Context) { sess.Where("goods_id=?", id).Get(&goodsSku) for k1 := range goodsSku { goodsSku[k1].SkuId = 0 + goodsSku[k1].GoodsId = v.Id goodsSku[k1].Stock = 0 } _, err = sess.Insert(&goodsSku)