From 5b41c8896ef7850be2672e45b69bb58e149729ec Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期二, 01 十二月 2026 09:03:48 +0800
Subject: [PATCH] feat(货运统计): 完善台账核查与轨迹里程管理功能

---
 traffic-audit-server/src/main/java/com/trafficaudit/dataimport/controller/DataImportController.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/traffic-audit-server/src/main/java/com/trafficaudit/dataimport/controller/DataImportController.java b/traffic-audit-server/src/main/java/com/trafficaudit/dataimport/controller/DataImportController.java
index 672845c..26b1346 100644
--- a/traffic-audit-server/src/main/java/com/trafficaudit/dataimport/controller/DataImportController.java
+++ b/traffic-audit-server/src/main/java/com/trafficaudit/dataimport/controller/DataImportController.java
@@ -402,6 +402,20 @@
         }
     }
 
+    /** 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,

--
Gitblit v1.9.1