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)