From c93ad66797e4830ccf4de81c1e8787ab90b22791 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 04 七月 2022 16:07:28 +0800
Subject: [PATCH] 1. 承诺书pdf生产模块

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/web/LedgerController.kt |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 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 f26771b..4ddc139 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/LedgerController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/LedgerController.kt
@@ -1,6 +1,8 @@
 package cn.flightfeather.supervision.lightshare.web
 
 import cn.flightfeather.supervision.lightshare.service.LedgerService
+import cn.flightfeather.supervision.lightshare.vo.CopyLedgerVo
+import cn.flightfeather.supervision.lightshare.vo.LedgerCheckVo
 import cn.flightfeather.supervision.lightshare.vo.LedgerVo
 import io.swagger.annotations.Api
 import io.swagger.annotations.ApiOperation
@@ -75,4 +77,20 @@
         @ApiParam("鐢ㄦ埛id") @PathVariable userId: String,
         @ApiParam("鍙拌处绫诲瀷id鏁扮粍") @RequestParam("ledgerTypes") ledgerTypes: List<Int>
     ) = ledgerService.getLedgerImgs(userId, ledgerTypes)
+
+    @ApiOperation("澶嶅埗鍦烘櫙鐨勫彴璐�")
+    @PostMapping("/copy")
+    fun copyLedger(
+        @RequestParam("userId") userId: String,
+        @RequestParam("time") time: String,
+        @RequestBody copyLedgerList: List<CopyLedgerVo>
+    ) = ledgerService.copyLedger(userId, time, copyLedgerList)
+
+    @ApiOperation("瀹℃牳鍙拌处")
+    @PostMapping("/check")
+    fun checkLedger(
+        @RequestParam("verifierId") verifierId: String,
+        @RequestParam(value = "remark", required = false) remark: String?,
+        @RequestBody recordList: List<LedgerCheckVo>
+    ) = ledgerService.checkLedger(verifierId, remark, recordList)
 }
\ No newline at end of file

--
Gitblit v1.9.3