package com.huigou.topsun.customer.application.Impl;

import com.huigou.topsun.customer.application.CustomerOrderApplication;
import com.huigou.topsun.customer.domain.CustomerOrder;
import com.huigou.topsun.customer.repository.CustomerOrderRepository;
import com.huigou.uasp.bmp.common.application.BaseApplication;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CustomerOrderApplicationImpl extends BaseApplication implements CustomerOrderApplication {
    @Autowired
    private CustomerOrderRepository customerOrderRepository;


    @Override
    public CustomerOrder getCustomerOrderByCustomerId(String customerId) {
        CustomerOrder customerOrder = customerOrderRepository.findCustomerOrderByCustomerId(customerId);
        return customerOrder;
    }
}
