一口价查询

This commit is contained in:
2025-09-21 00:15:08 +08:00
parent b7d3e20c46
commit 18cb459320
4 changed files with 62 additions and 6 deletions

View File

@@ -360,4 +360,12 @@ public class OrderBiz {
orderRepository.clearOrderCache(orderId); // 更新完了,清理下
profitSharingBiz.revokeProfitSharing(order.getScenicId(), orderId, "订单已退款");
}
/**
* 检查用户是否购买了指定商品
* 提供给PriceBiz使用,避免循环调用
*/
public boolean checkUserBuyItem(Long userId, int goodsType, Long goodsId) {
return orderRepository.checkUserBuyItem(userId, goodsType, goodsId);
}
}