一口价查询

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

@@ -98,6 +98,10 @@ public class OrderRepository {
return checkUserBuyItem(userId, 0, videoId);
}
public boolean checkUserBuyTemplate(Long userId, Long templateId) {
return checkUserBuyItem(userId, -1, templateId);
}
public void clearUserBuyItemCache(Long userId, int goodsType, Long goodsId) {
redisTemplate.delete(String.format(ORDER_USER_TYPE_BUY_ITEM_CACHE_KEY, userId, goodsType, goodsId));
}