lxw
2023-05-17 a35734f1233a670d20c70a7f64e7ef16ba725e2f
src/main/java/com/whyc/controller/AnalysisController.java
@@ -4,6 +4,7 @@
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;
@@ -29,6 +30,10 @@
    @Autowired
    private Fbs5100AlarmDataService alarmDataService;
    @Autowired
    private ExcelExportService exportService;
    @GetMapping("/readFboFile")
    @ApiOperation(value = "根据文件后缀解析不同的文件")
    public Response readFboFile(@RequestParam String filePath){
@@ -53,22 +58,18 @@
        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;
        }
    }*/
    }
}