package com.whyc.controller;
|
|
import com.whyc.service.EchartPictureDowloadService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletResponse;
|
import java.util.List;
|
import java.util.Map;
|
|
@Api(tags = "在线监测-实时监控")
|
@RestController
|
@RequestMapping("EchartPictureDowload")
|
public class EchartPictureDowloadController {
|
|
@Autowired
|
private EchartPictureDowloadService service;
|
|
@ApiOperation(value = "导出excel")
|
@PostMapping(value = "exportExcel")
|
public void exportCorpLoanDemand(@RequestBody List<byte[]> bytes, HttpServletRequest req, HttpServletResponse resp){ ;
|
service.exportExcel(bytes,req,resp);
|
}
|
|
}
|