取消收藏 执行sql drop index uid on yx_store_product_relation;

This commit is contained in:
LIONCITYS\lioncity
2020-11-27 16:27:02 +08:00
parent 46f05999ae
commit adf74cdc3b

View File

@ -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());
}