refactor: 会员商品收藏

This commit is contained in:
niou233 2023-11-08 17:22:00 +08:00
parent 92be763c6f
commit 5a5a42463b

View File

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