huangjiajun 1 week ago
parent
commit
67ce979586
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      app/agent/svc/svc_goods.go
  2. +1
    -0
      app/store/svc/svc_goods.go

+ 2
- 0
app/agent/svc/svc_goods.go View File

@@ -252,6 +252,8 @@ func GoodsSave(c *gin.Context) {
return
}
}
sess.Where("goods_id=?", goods.Id).Delete(&model.CommunityTeamSku{})

skuModelList := make([]*model.CommunityTeamSku, 0, len(args.SkuList))
for _, item := range args.SkuList {
skuModelList = append(skuModelList, &model.CommunityTeamSku{


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

@@ -252,6 +252,7 @@ func GoodsSave(c *gin.Context) {
return
}
}
sess.Where("goods_id=?", goods.Id).Delete(&model.CommunityTeamSku{})
skuModelList := make([]*model.CommunityTeamSku, 0, len(args.SkuList))
for _, item := range args.SkuList {
skuModelList = append(skuModelList, &model.CommunityTeamSku{


Loading…
Cancel
Save