From 1a677d2b4a4bc615602f8c2a22bc07ec1356e5be Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 16 十月 2025 17:39:06 +0800
Subject: [PATCH] 2025.10.16 1. 根据全局响应增强器GlobalResponseAdvice,将原先的BaseResPack接口包装函数统一去除; 2. 新增三种类型的数据产品数据库实体 3. 新增典型问题场景清单中间数据产品接口

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/web/NightConstructionController.kt |   33 ++++++++++++++++++++-------------
 1 files changed, 20 insertions(+), 13 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/NightConstructionController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/NightConstructionController.kt
index 59d5bbb..3a93d95 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/NightConstructionController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/NightConstructionController.kt
@@ -11,30 +11,37 @@
 
     @GetMapping("/record/all")
     fun getRecord(
-            @RequestParam(value = "cityCode", required = false) cityCode: String?,
-            @RequestParam("districtCode") districtCode: String,
-            @RequestParam("page") page: Int,
-            @RequestParam("perPage") perPage: Int
+        @RequestParam(value = "cityCode", required = false) cityCode: String?,
+        @RequestParam("districtCode") districtCode: String,
+        @RequestParam("page") page: Int,
+        @RequestParam("perPage") perPage: Int,
     ) = nightConstructionService.getRecord(cityCode, districtCode, page, perPage)
 
     @GetMapping("/record")
     fun getNightWorkFile(
-            @RequestParam("userId") userId: String,
-            @RequestParam(value = "isRead", required = false) isRead: Boolean?,
-            @RequestParam("page") page: Int,
-            @RequestParam("perPage") perPage: Int
+        @RequestParam("userId") userId: String,
+        @RequestParam(value = "isRead", required = false) isRead: Boolean?,
+        @RequestParam("page") page: Int,
+        @RequestParam("perPage") perPage: Int,
     ) = nightConstructionService.getNightWorkFile(userId, isRead, page, perPage)
 
     @PostMapping("/sign")
     fun signFile(
-            @RequestParam("userId") userId: String,
-            @RequestParam("fileNum") fileNum: String,
-            @RequestParam("id") id: Int
+        @RequestParam("userId") userId: String,
+        @RequestParam("fileNum") fileNum: String,
+        @RequestParam("id") id: Int,
     ) = nightConstructionService.signFile(userId, fileNum, id)
+
+    @PostMapping("/record")
+    fun updateRecord(
+        @RequestParam recordId: Int,
+        @RequestParam(required = false) userId: String?,
+        @RequestParam(required = false) sceneId: String?,
+    ) = nightConstructionService.updateRecord(recordId, userId, sceneId)
 
     @GetMapping("/summary")
     fun getSummary(
-            @RequestParam(value = "cityCode", required = false) cityCode: String?,
-            @RequestParam("districtCode") districtCode: String
+        @RequestParam(value = "cityCode", required = false) cityCode: String?,
+        @RequestParam("districtCode") districtCode: String,
     ) = nightConstructionService.getSummary(cityCode, districtCode)
 }
\ No newline at end of file

--
Gitblit v1.9.3