refactor: 会员商品收藏
This commit is contained in:
parent
92be763c6f
commit
5a5a42463b
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue