package com.wzj.soopin.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzj.soopin.order.domain.entity.OrderItem;

import java.util.List;

public interface OrderItemService extends IService<OrderItem> {

    List<OrderItem> findByOrderId(Long orderId);

    /**
     * 缓存交易量最多的商品列表到Redis
     * @param limit 查询数量限制
     */
    void cacheTopTradingProducts(int limit);
}
