微调
This commit is contained in:
@@ -75,7 +75,7 @@ public class MigrationInfluxDBController {
|
|||||||
@ApiOperation(value ="获取最新数据信息文件", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
|
@ApiOperation(value ="获取最新数据信息文件", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
|
||||||
public void importDistributionAreaExcel(HttpServletResponse response) throws IOException {
|
public void importDistributionAreaExcel(HttpServletResponse response) throws IOException {
|
||||||
migrationService.initializeExcel();
|
migrationService.initializeExcel();
|
||||||
FileInputStream fileInputStream = new FileInputStream("/usr/local/jar");
|
FileInputStream fileInputStream = new FileInputStream("/usr/local/jar/sj.xlsx");
|
||||||
response.setHeader("Content-Disposition", "attachment;filename="+ URLEncoder.encode("最新数据信息.xlsx", CharsetUtil.UTF_8));
|
response.setHeader("Content-Disposition", "attachment;filename="+ URLEncoder.encode("最新数据信息.xlsx", CharsetUtil.UTF_8));
|
||||||
// 输出文件内容
|
// 输出文件内容
|
||||||
OutputStream responseOutputStream = response.getOutputStream();
|
OutputStream responseOutputStream = response.getOutputStream();
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ public class MigrationServiceImpl implements MigrationService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initializeExcel() throws IOException {
|
public void initializeExcel() throws IOException {
|
||||||
File file = new File("/usr/local/jar");
|
File file = new File("/usr/local/jar/sj.xlsx");
|
||||||
Map<String, String> map = TimeUtil.getLineMap();
|
Map<String, String> map = TimeUtil.getLineMap();
|
||||||
List<DataV> lineExcel = new ArrayList<>();
|
List<DataV> lineExcel = new ArrayList<>();
|
||||||
map.forEach((line,value)->{
|
map.forEach((line,value)->{
|
||||||
|
|||||||
Reference in New Issue
Block a user