package com.fs.crm.controller;

import com.fs.common.core.controller.BaseController;
import com.fs.common.core.page.TableDataInfo;
import com.fs.crm.domain.CrmCustomerHisOrder;
import com.fs.crm.service.ICrmCustomerHisOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 客户历史订单Controller
 *
 * @author yzx
 * @date 2023-04-21
 */
@RestController
@RequestMapping("/crm/customerHisOrder")
public class CrmCustomerHisOrderController extends BaseController
{
    @Autowired
    private ICrmCustomerHisOrderService crmCustomerHisOrderService;

    /**
     * 查询客户历史订单列表
     */
    @GetMapping("/list")
    public TableDataInfo list(CrmCustomerHisOrder crmCustomerHisOrder)
    {
        startPage();
        List<CrmCustomerHisOrder> list = crmCustomerHisOrderService.selectCrmCustomerHisOrderList(crmCustomerHisOrder);
        return getDataTable(list);
    }


}
