huangjiajun 1 周之前
父節點
當前提交
67ce979586
共有 2 個檔案被更改,包括 3 行新增0 行删除
  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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存