package com.fdkankan.order.service.impl;

import com.fdkankan.order.entity.OrderItem;
import com.fdkankan.order.mapper.IOrderItemMapper;
import com.fdkankan.order.service.IOrderItemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fdkankan.user.vo.ResponseOrderItem;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 订单项表 服务实现类
 * </p>
 *
 * @author 
 * @since 2021-12-24
 */
@Service
public class OrderItemServiceImpl extends ServiceImpl<IOrderItemMapper, OrderItem> implements IOrderItemService {

    @Resource
    private IOrderItemMapper orderItemMapper;

    @Override
    public List<ResponseOrderItem> getByOrderId(Long orderId) {
        return orderItemMapper.getByOrderId(orderId);
    }
}
