mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
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
Block a user