Commit 62388e2b authored by jiaorz's avatar jiaorz

车辆统计导出bug

parent c8646562
......@@ -372,11 +372,12 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh
// 下载本地文件
String fileName = excelParamDto.getName() + ".xlsx"; // 文件的默认保存名
// 读到流中
InputStream inStream = new FileInputStream("d:/" + fileName);// 文件的存放路径
InputStream inStream = new FileInputStream("/data/temp/" + fileName);// 文件的存放路径
// 设置输出的格式
response.reset();
response.setContentType("bin");
response.addHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\"");
fis.flush();
// 循环取出流中的数据
byte[] b = new byte[100];
int len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment