From ae04c5d925b0094e1a1ba1f2ce0bf6da0a6fee04 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 22 一月 2026 17:27:55 +0800
Subject: [PATCH] 2026.1.22 1. 新增台账上传office文档功能; 2. 新增office文档存储原始文档名字功能

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/web/LedgerController.kt |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/LedgerController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/LedgerController.kt
index 172a37d..cddd932 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/LedgerController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/LedgerController.kt
@@ -60,8 +60,19 @@
     fun uploadLedger(
         @ApiParam("鐢ㄦ埛id") @PathVariable userId: String,
         @ApiParam("鍙拌处淇℃伅json") @RequestParam("params") ledgerVoList: String,
-        @ApiParam("鍙拌处鍥剧墖") @RequestPart("images") files:Array<MultipartFile>
-    ) = ledgerService.uploadLedger(userId, ledgerVoList, files)
+        @ApiParam("涓存椂鏂囦欢鍚嶅拰鍘熷鏂囦欢鍚嶇О鐨勫搴斿垪琛�") @RequestParam("fileNames", required = false)
+        fileNames: String?,
+        @ApiParam("鍙拌处鍥剧墖") @RequestPart("images") files: Array<MultipartFile>,
+    ) = ledgerService.uploadLedger(userId, ledgerVoList, fileNames, files)
+
+    @ApiOperation("涓婁紶涓嶆秹鍙婂彴璐�")
+    @PostMapping("/upload/noLedger")
+    fun uploadNoLedger(
+        @RequestParam("userId") userId: String,
+        @RequestParam("time") time: String,
+        @RequestParam(required = false) remark: String?,
+        @RequestBody ledgerIdList: List<Int>
+    ) = ledgerService.uploadNoLedger(userId, time, remark, ledgerIdList)
 
     @ApiOperation(value = "鑾峰彇鏌愪釜鍙拌处鏄剧ず鍥炬爣url")
     @GetMapping("/{userId}/img")
@@ -81,9 +92,9 @@
     @ApiOperation("澶嶅埗鍦烘櫙鐨勫彴璐�")
     @PostMapping("/copy")
     fun copyLedger(
-        @RequestParam("userId") userId: String,
-        @RequestParam("time") time: String,
-        @RequestBody copyLedgerList: List<CopyLedgerVo>
+        @ApiParam("鐢ㄦ埛id") @RequestParam("userId") userId: String,
+        @ApiParam("澶嶅埗鐨勭洰鏍囨湀浠�") @RequestParam("time") time: String,
+        @ApiParam("闇�瑕佸鍒剁殑婧愬彴璐�") @RequestBody copyLedgerList: List<CopyLedgerVo>
     ) = ledgerService.copyLedger(userId, time, copyLedgerList)
 
     @ApiOperation("瀹℃牳鍙拌处")

--
Gitblit v1.9.3