| | |
| | | } |
| | | } |
| | | |
| | | /** City third-party track mileage, merged from all selected files. */ |
| | | @PostMapping("/trackMileageCity") |
| | | public Result<String> importTrackMileageCity(@RequestParam("files") List<MultipartFile> files, |
| | | @RequestParam("period") String period, |
| | | @RequestParam("city") String city) { |
| | | try { |
| | | int count = importService.importCityTrackMileage(files, period, city); |
| | | return Result.ok(city + "第三方轨迹里程导入成功, 共 " + count + " 条记录"); |
| | | } catch (Exception e) { |
| | | log.error("trackMileageCity import error", e); |
| | | return Result.error("导入失败: " + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** 模板_货运量周转量.xlsx(每月导入:左半今年1-N月,右半去年1-12月) */ |
| | | @PostMapping("/freightTurnover") |
| | | public Result<String> importFreightTurnover(@RequestParam("file") MultipartFile file, |