package com.izouma.dingdong.service.merchant;

import com.izouma.dingdong.domain.OrderInfo;
import com.izouma.dingdong.domain.merchant.MerchantSettings;
import com.izouma.dingdong.enums.MerchantStatus;
import com.izouma.dingdong.exception.BusinessException;
import com.izouma.dingdong.repo.OrderInfoRepo;
import com.izouma.dingdong.repo.merchant.MerchantSettingsRepo;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
public class MerchantSettingsService {

    private MerchantSettingsRepo merchantSettingsRepo;

    private OrderInfoRepo orderInfoRepo;

    /*
    显示所有订单
     */
    public List<OrderInfo> allOrder(Long id) {
        return orderInfoRepo.findAllByMerchantId(id);
    }



}
