This commit is contained in:
wr
2025-04-27 11:49:50 +08:00
parent 08bc4ffcf0
commit 4c26d825cf
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ public class MigrationInfluxDBController {
@ApiOperation(value ="获取最新数据信息文件", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
public void importDistributionAreaExcel(HttpServletResponse response) throws IOException {
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));
// 输出文件内容
OutputStream responseOutputStream = response.getOutputStream();

View File

@@ -128,7 +128,7 @@ public class MigrationServiceImpl implements MigrationService {
@Override
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();
List<DataV> lineExcel = new ArrayList<>();
map.forEach((line,value)->{