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