| | |
| | | import com.whyc.charge.Fbs5100ChargeData; |
| | | import com.whyc.charge.Fbs5100DisChargeData; |
| | | import com.whyc.pojo.Response; |
| | | import com.whyc.service.ExcelExportService; |
| | | import com.whyc.service.Fbs5100AlarmDataService; |
| | | import com.whyc.service.Fbs5100ChargeDataService; |
| | | import com.whyc.service.Fbs5100DisChargeDataService; |
| | |
| | | @Autowired |
| | | private Fbs5100AlarmDataService alarmDataService; |
| | | |
| | | @Autowired |
| | | private ExcelExportService exportService; |
| | | |
| | | |
| | | @GetMapping("/readFboFile") |
| | | @ApiOperation(value = "根据文件后缀解析不同的文件") |
| | | public Response readFboFile(@RequestParam String filePath){ |
| | |
| | | return response; |
| | | } |
| | | |
| | | /*@PostMapping("/export") |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "文件导出") |
| | | public void export(HttpServletRequest req, HttpServletResponse resp ){ |
| | | String filePath = req.getParameter("filePath"); |
| | | String suffix=filePath.substring(filePath.lastIndexOf(".")+1).toLowerCase(Locale.ROOT); |
| | | switch (suffix){ |
| | | case "fbx":exportService.exportFbx(req,resp); |
| | | case "bcp":exportService.exportBcp(req,resp); |
| | | break; |
| | | case "bres":exportService.exportBres(req,resp); |
| | | case "chr":exportService.exportChr(req,resp); |
| | | break; |
| | | *//*case "alm":exportService.exportAlm(req,resp); |
| | | break;*//* |
| | | case "mcp":exportService.exportMcph(req,resp); |
| | | break; |
| | | case "mch":exportService.exportMcph(req,resp); |
| | | case "alm":exportService.exportAlm(req,resp); |
| | | break; |
| | | } |
| | | }*/ |
| | | } |
| | | } |