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