| | |
| | | package com.ruoyi.order.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.order.mapper.OrderMapper; |
| | | import com.ruoyi.order.service.OrderService; |
| | | import com.ruoyi.order.vo.OrderDetailVO; |
| | | import com.ruoyi.order.vo.OrderVO; |
| | | import model.Order; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService { |
| | | |
| | | @Override |
| | | public boolean check(Integer orderId, Integer shopId) { |
| | | return false; |
| | | public List<OrderVO> getOrderList(Integer status) { |
| | | // TODO 待实现 |
| | | return Collections.emptyList(); |
| | | } |
| | | |
| | | @Override |
| | | public OrderDetailVO getOrderDetail(Long orderId) { |
| | | // TODO 待实现 |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public boolean check(String orderNumber, Long shopId) { |
| | | Order order = getOne(new LambdaQueryWrapper<Order>() |
| | | .eq(Order::getOrderNumber, orderNumber) |
| | | .eq(Order::getShopId, shopId)); |
| | | return order != null; |
| | | } |
| | | } |