diff --git a/internal/v2/logic/third/supply.go b/internal/v2/logic/third/supply.go index 5cd193b..446e082 100644 --- a/internal/v2/logic/third/supply.go +++ b/internal/v2/logic/third/supply.go @@ -334,7 +334,7 @@ func (s *supplyLogic) Adopt(data AdoptSkuInfo) error { return errors.New("入库失败") } // 原数据处理 - if tx.Updates(map[string]interface{}{ + if tx.Model(&manage.RecookThirdPartySupply{}).Where("id = ?", thirdPartySupply.Id).Updates(map[string]interface{}{ "status": manage.RecookThirdPartySupplyStatusAdopt, "goods_id": recookGoodsSkuModels[0].GoodsId, }).Error != nil { @@ -472,7 +472,7 @@ func (s *supplyLogic) Adopt(data AdoptSkuInfo) error { return errors.New("入库失败") } // 原数据处理 - if tx.Updates(map[string]interface{}{ + if tx.Model(&manage.RecookThirdPartySupply{}).Where("id = ?", thirdPartySupply.Id).Updates(map[string]interface{}{ "status": manage.RecookThirdPartySupplyStatusAdopt, "goods_id": recookGoodsInfoModel.Id, }).Error != nil {