huangjiajun 1 month ago
parent
commit
6bfe70a415
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/store/svc/svc_agent_goods.go

+ 1
- 0
app/store/svc/svc_agent_goods.go View File

@@ -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)


Loading…
Cancel
Save