From 9de446b0b83610055437fbc5172d216bb374900f Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 21 十一月 2024 09:22:19 +0800 Subject: [PATCH] 1. 2024.11.21 修复部分bug --- src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 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 8baf3fa..0c01066 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt @@ -104,7 +104,7 @@ @ApiOperation("鏇存柊涓�涓棶棰�") @PostMapping("/updateProblem") - fun updateDeviceLocation( + fun updateProblem( @ApiParam("闂淇℃伅json") @RequestParam("problem") problem: String, @ApiParam("鍒犻櫎鐨勯棶棰樺浘鐗噄d") @RequestParam("deleteImg") deleteImg: List<String>, @ApiParam("闂鍥剧墖") @RequestPart("images") images: Array<MultipartFile>, @@ -119,6 +119,14 @@ @RequestParam("problemId") problemId: String, @RequestPart("images") files: Array<MultipartFile>, ) = problemlistService.changeProblem(problemId, files) + + @ApiOperation("鏇存柊涓�涓棶棰樻暣鏀�") + @PostMapping("/updateChange") + fun updateChange( + @ApiParam("闂id") @RequestParam problemId: String, + @ApiParam("鍒犻櫎鐨勬暣鏀瑰浘鐗噄d") @RequestParam("deleteImg") deleteImg: List<String>, + @ApiParam("鏂板鏁存敼鍥剧墖") @RequestPart("images") images: Array<MultipartFile>, + ) = resPack { problemlistService.updateChange(problemId, deleteImg, images) } @ApiOperation(value = "閫氳繃浠诲姟鏌ユ壘闂") @GetMapping("/subtask") @@ -138,8 +146,7 @@ @PostMapping("/summary/scene") fun getSceneProSummary( @RequestBody areaVo: AreaVo, - @ApiParam(value = "鎺掑簭瀛楁", allowableValues = "pro, changePer") @RequestParam sortBy: String, @ApiParam(value = "椤电爜") @RequestParam(value = "page") page: Int, @ApiParam(value = "鍗曢〉鏁版嵁閲�") @RequestParam(value = "per_page") perPage: Int, - ) = resPack { problemlistService.getSceneProSummary(areaVo, sortBy, page, perPage) } + ) = resPack { problemlistService.getSceneProSummary(areaVo, page, perPage) } } \ No newline at end of file -- Gitblit v1.9.3