取消收藏 执行sql drop index uid on yx_store_product_relation;
This commit is contained in:
@ -101,13 +101,11 @@ public class YxStoreProductRelationServiceImpl extends BaseServiceImpl<YxStorePr
|
||||
YxStoreProductRelation productRelation = this.lambdaQuery()
|
||||
.eq(YxStoreProductRelation::getProductId,productId)
|
||||
.eq(YxStoreProductRelation::getUid,uid)
|
||||
.eq(YxStoreProductRelation::getCategory,category)
|
||||
.eq(YxStoreProductRelation::getType,category)
|
||||
.one();
|
||||
if(productRelation == null) {
|
||||
throw new YshopException("已取消");
|
||||
}
|
||||
|
||||
|
||||
this.removeById(productRelation.getId());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user