From 85ef942e7195abeb71466b7159c3ee30161e1e54 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 07 四月 2026 08:51:01 +0800
Subject: [PATCH] 2026.4.7
---
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt
index 8db8d38..f5f1c15 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt
@@ -92,6 +92,13 @@
@RequestParam date: String,
): List<ProblemListVo> = problemlistService.getProblemByScene(sceneId, date)
+ @GetMapping("/getBySceneMonth")
+ fun getBySceneMonth(
+ @RequestParam(value = "sceneId", required = true) sceneId: String,
+ @RequestParam(required = false) year: Int?,
+ @RequestParam(required = false) month: Int?,
+ ) = problemlistService.getBySceneMonth(sceneId, year, month)
+
@IgnoreResponseAdvice
@GetMapping("/month_anlysis")
fun getMonthProblemsById(
@@ -120,7 +127,7 @@
@PostMapping("/updateProblem")
fun updateProblem(
@ApiParam("闂淇℃伅json") @RequestParam("problem") problem: String,
- @ApiParam("鍒犻櫎鐨勯棶棰樺浘鐗噄d") @RequestParam("deleteImg") deleteImg: List<String>,
+ @ApiParam("鍒犻櫎鐨勯棶棰樺浘鐗噄d") @RequestParam("deleteImg", required = false) deleteImg: List<String>?,
@ApiParam("闂鍥剧墖") @RequestPart("images") images: Array<MultipartFile>,
): String {
val problemVo = ObjectMapper().readValue(problem, object : TypeReference<ProblemListVo>() {})
--
Gitblit v1.9.3