| | |
| | | import com.ruoyi.order.mapper.OrderGoodMapper; |
| | | import com.ruoyi.order.model.OrderGood; |
| | | import com.ruoyi.order.service.OrderGoodService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @since 2024-11-21 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class OrderGoodServiceImpl extends ServiceImpl<OrderGoodMapper, OrderGood> implements OrderGoodService { |
| | | private final OrderGoodMapper orderGoodMapper; |
| | | |
| | | @Override |
| | | public List<OrderGood> getOrderListByUserIdAndGoodsId(Long userId, Long goodsId) { |
| | | return orderGoodMapper.getOrderListByUserIdAndGoodsId(userId, goodsId); |
| | | } |
| | | } |