refactor: 会员商品收藏

plp
niou233 2 years ago
parent 92be763c6f
commit 5a5a42463b

@ -34,6 +34,7 @@ public class ProductFavoriteServiceImpl implements ProductFavoriteService {
if (favorite != null) {
throw exception(FAVORITE_EXISTS);
}
ProductFavoriteDO entity = ProductFavoriteConvert.INSTANCE.convert(userId, spuId);
productFavoriteMapper.insert(entity);
return entity.getId();

Loading…
Cancel
Save