package com.sifang.modules.customer.controller;

import com.sifang.modules.customer.Service.ExcelService;
import com.sifang.modules.sys.web.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Map;

@Controller
@RequestMapping("${adminPath}/excel")
public class ExcelController extends BaseController {


    @Autowired
    private ExcelService excelService;


    @RequestMapping("doExportUserExcel")
    public void doExportUserExcel(HttpServletResponse response, HttpServletRequest request) {

        Map<String, String> map = getParams(request);

        excelService.exportExcel(map, response);


    }

}
