|
|
@@ -86,7 +86,7 @@ func AgentGoodsCopy(c *gin.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
var goodsSku = make([]model.CommunityTeamSku, 0) |
|
|
|
sess.Where("goods_id=?", id).Get(&goodsSku) |
|
|
|
sess.Where("goods_id=?", id).Find(&goodsSku) |
|
|
|
for k1 := range goodsSku { |
|
|
|
goodsSku[k1].SkuId = 0 |
|
|
|
goodsSku[k1].GoodsId = v.Id |
|
|
|