From fe031e01cc1737c2f05a133fde7c36c7a2a7b4b4 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期三, 21 一月 2026 17:38:32 +0800
Subject: [PATCH] 2026.1.21 1. 新增完善台账复制逻辑

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/web/LedgerController.kt |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 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 4ddc139..09d4541 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/LedgerController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/LedgerController.kt
@@ -52,7 +52,7 @@
         @ApiParam("鐢ㄦ埛id") @PathVariable userId: String,
         @ApiParam(value = "鍙拌处瀛愮被鍨媔d锛� 濡傛灉涓嶄紶锛屽垯榛樿鏍规嵁鍦烘櫙绫诲瀷鑾峰彇鎵�鏈夊彴璐�", required = false) @RequestParam(value = "ledgerSubTypeId", required = false) ledgerSubTypeId: Int?,
         @ApiParam("鍦烘櫙绫诲瀷id") @RequestParam(value = "sceneType") sceneType: Int,
-        @ApiParam(value = "鏃堕棿", example = "yyyy-MM-dd") @RequestParam(value = "time") time: String
+        @ApiParam(value = "鏃堕棿", example = "yyyy-MM-dd") @RequestParam(value = "time", required = false) time: String?
     ) = ledgerService.getLedgerDetail2(userId, ledgerSubTypeId, sceneType, time)
 
     @ApiOperation(value = "涓婁紶鍙拌处淇℃伅")
@@ -62,6 +62,15 @@
         @ApiParam("鍙拌处淇℃伅json") @RequestParam("params") ledgerVoList: String,
         @ApiParam("鍙拌处鍥剧墖") @RequestPart("images") files:Array<MultipartFile>
     ) = ledgerService.uploadLedger(userId, ledgerVoList, 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 +90,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