package com.fs.crm.controller;

import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.fs.common.annotation.Log;
import com.fs.common.core.controller.BaseController;
import com.fs.common.core.domain.AjaxResult;
import com.fs.common.enums.BusinessType;
import com.fs.crm.domain.CrmCustomerHisOrder;
import com.fs.crm.service.ICrmCustomerHisOrderService;
import com.fs.common.utils.poi.ExcelUtil;
import com.fs.common.core.page.TableDataInfo;

/**
 * 客户历史订单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);
    }


}
