| | |
| | | } |
| | | } |
| | | |
| | | /** 多文件批量导入:前端一次选择多个 Excel 上传(type 为数据类型,投资类型按市州单表解析) */ |
| | | @PostMapping("/batch") |
| | | public Result<Object> importBatch(@RequestParam("type") String type, |
| | | @RequestParam("period") String period, |
| | | @RequestParam("files") List<MultipartFile> files) { |
| | | try { |
| | | Map<String, Object> result = importService.importBatchFiles(type, period, files); |
| | | return Result.ok(result); |
| | | } catch (Exception e) { |
| | | log.error("batch import error", e); |
| | | return Result.error("批量导入失败: " + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** 投资市州单表批量导入(M2):扫描 docs/投资/输入/{类别}/{X月} 目录全部市州报表,category=客运站场/物流园区 */ |
| | | @PostMapping("/investCityBatch") |
| | | public Result<Object> importInvestCityBatch(@RequestParam("period") String period, |